From 072220d917a537b944d14cac2c0b7ddfcf160f97 Mon Sep 17 00:00:00 2001 From: Kush Sharma Date: Sun, 3 Dec 2023 18:10:16 +0530 Subject: [PATCH] build: on frontier v0.8.2 - commit df8151fb7b24a0c2f2072257bd82516b816cdd30 Signed-off-by: Kush Sharma --- .github/workflows/python.yml | 38 + .gitignore | 2 - .openapi-generator/FILES | 1377 +-- .openapi-generator/VERSION | 2 +- Makefile | 2 +- README.md | 836 +- docs/AuditLogApi.md | 275 + docs/AuthnApi.md | 687 ++ docs/AuthzApi.md | 424 + docs/BillingAccountAddress.md | 33 + docs/BillingAccountBalance.md | 30 + docs/BillingApi.md | 531 ++ docs/CheckoutApi.md | 185 + docs/EntitlementApi.md | 98 + docs/FeatureApi.md | 348 + docs/FrontierServiceAddGroupUsersRequest.md | 28 + ...ntierServiceAddOrganizationUsersRequest.md | 28 + docs/FrontierServiceAuthenticate2Request.md | 31 + ...erServiceCheckFeatureEntitlementRequest.md | 28 + ...ntierServiceCreateBillingAccountRequest.md | 28 + ...rontierServiceCreateBillingUsageRequest.md | 28 + docs/FrontierServiceCreateCheckoutRequest.md | 31 + ...ierServiceCreateGroupPreferencesRequest.md | 28 + ...rviceCreateOrganizationAuditLogsRequest.md | 28 + ...rServiceCreateOrganizationDomainRequest.md | 28 + ...viceCreateOrganizationInvitationRequest.md | 30 + ...ntierServiceCreateServiceUserKeyRequest.md | 28 + docs/FrontierServiceUpdateFeatureRequest.md | 28 + docs/FrontierServiceUpdatePlanRequest.md | 28 + ...rontierServiceUpdateSubscriptionRequest.md | 28 + docs/GroupApi.md | 977 +++ docs/MetaSchemaApi.md | 432 + docs/NamespaceApi.md | 174 + docs/OrganizationApi.md | 2165 +++++ docs/PermissionApi.md | 428 + docs/PlanApi.md | 348 + docs/PlatformApi.md | 93 + docs/PolicyApi.md | 444 + docs/PreferenceApi.md | 1115 +++ docs/ProjectApi.md | 952 +++ docs/ProtobufAny.md | 28 + docs/ProtobufNullValue.md | 11 + docs/RelationApi.md | 344 + docs/ResourceApi.md | 537 ++ docs/RoleApi.md | 793 ++ docs/RpcStatus.md | 30 + docs/ServiceUserApi.md | 957 +++ docs/SubscriptionApi.md | 364 + docs/TransactionApi.md | 97 + docs/UsageApi.md | 97 + docs/UserApi.md | 1543 ++++ docs/V1beta1AddPlatformUserRequest.md | 30 + docs/V1beta1AuditLog.md | 34 + docs/V1beta1AuditLogActor.md | 30 + docs/V1beta1AuditLogTarget.md | 30 + docs/V1beta1AuthCallbackRequest.md | 31 + docs/V1beta1AuthStrategy.md | 29 + docs/V1beta1AuthTokenRequest.md | 31 + docs/V1beta1AuthTokenResponse.md | 29 + docs/V1beta1AuthenticateResponse.md | 30 + docs/V1beta1BatchCheckPermissionBody.md | 29 + docs/V1beta1BatchCheckPermissionRequest.md | 28 + docs/V1beta1BatchCheckPermissionResponse.md | 28 + ...V1beta1BatchCheckPermissionResponsePair.md | 29 + docs/V1beta1BillingAccount.md | 40 + docs/V1beta1BillingAccountRequestBody.md | 33 + docs/V1beta1BillingTransaction.md | 36 + .../V1beta1CheckFeatureEntitlementResponse.md | 28 + ...CheckFederatedResourcePermissionRequest.md | 30 + ...heckFederatedResourcePermissionResponse.md | 28 + docs/V1beta1CheckResourcePermissionRequest.md | 31 + .../V1beta1CheckResourcePermissionResponse.md | 28 + docs/V1beta1CheckoutFeatureBody.md | 28 + docs/V1beta1CheckoutSession.md | 36 + docs/V1beta1CheckoutSubscriptionBody.md | 29 + docs/V1beta1CreateBillingAccountResponse.md | 28 + docs/V1beta1CreateCheckoutResponse.md | 28 + ...eta1CreateCurrentUserPreferencesRequest.md | 28 + ...ta1CreateCurrentUserPreferencesResponse.md | 28 + docs/V1beta1CreateFeatureRequest.md | 28 + docs/V1beta1CreateFeatureResponse.md | 28 + docs/V1beta1CreateGroupPreferencesResponse.md | 28 + docs/V1beta1CreateGroupResponse.md | 28 + docs/V1beta1CreateMetaSchemaResponse.md | 28 + ...V1beta1CreateOrganizationDomainResponse.md | 28 + ...ta1CreateOrganizationInvitationResponse.md | 28 + ...a1CreateOrganizationPreferencesResponse.md | 28 + docs/V1beta1CreateOrganizationResponse.md | 28 + docs/V1beta1CreateOrganizationRoleResponse.md | 28 + docs/V1beta1CreatePermissionRequest.md | 28 + docs/V1beta1CreatePermissionResponse.md | 28 + docs/V1beta1CreatePlanRequest.md | 28 + docs/V1beta1CreatePlanResponse.md | 28 + docs/V1beta1CreatePolicyResponse.md | 28 + docs/V1beta1CreatePreferencesRequest.md | 28 + docs/V1beta1CreatePreferencesResponse.md | 28 + ...V1beta1CreateProjectPreferencesResponse.md | 28 + docs/V1beta1CreateProjectResourceResponse.md | 28 + docs/V1beta1CreateProjectResponse.md | 28 + docs/V1beta1CreateRelationResponse.md | 28 + docs/V1beta1CreateRoleResponse.md | 28 + docs/V1beta1CreateServiceUserKeyResponse.md | 28 + docs/V1beta1CreateServiceUserRequest.md | 29 + docs/V1beta1CreateServiceUserResponse.md | 28 + .../V1beta1CreateServiceUserSecretResponse.md | 28 + docs/V1beta1CreateUserPreferencesResponse.md | 28 + docs/V1beta1CreateUserResponse.md | 28 + docs/V1beta1DescribePreferencesResponse.md | 28 + docs/V1beta1Domain.md | 34 + docs/V1beta1Feature.md | 38 + docs/V1beta1FeatureRequestBody.md | 34 + docs/V1beta1GetBillingAccountResponse.md | 28 + docs/V1beta1GetBillingBalanceResponse.md | 28 + docs/V1beta1GetCurrentUserResponse.md | 29 + docs/V1beta1GetFeatureResponse.md | 28 + docs/V1beta1GetGroupResponse.md | 28 + docs/V1beta1GetJWKsResponse.md | 28 + docs/V1beta1GetMetaSchemaResponse.md | 28 + docs/V1beta1GetNamespaceResponse.md | 28 + .../V1beta1GetOrganizationAuditLogResponse.md | 28 + docs/V1beta1GetOrganizationDomainResponse.md | 28 + ...1beta1GetOrganizationInvitationResponse.md | 28 + docs/V1beta1GetOrganizationResponse.md | 28 + docs/V1beta1GetOrganizationRoleResponse.md | 28 + docs/V1beta1GetPermissionResponse.md | 28 + docs/V1beta1GetPlanResponse.md | 28 + docs/V1beta1GetPolicyResponse.md | 28 + docs/V1beta1GetProjectResourceResponse.md | 28 + docs/V1beta1GetProjectResponse.md | 28 + docs/V1beta1GetRelationResponse.md | 28 + docs/V1beta1GetServiceUserKeyResponse.md | 28 + docs/V1beta1GetServiceUserResponse.md | 28 + docs/V1beta1GetSubscriptionResponse.md | 28 + docs/V1beta1GetUserResponse.md | 28 + docs/V1beta1Group.md | 35 + docs/V1beta1GroupRequestBody.md | 30 + docs/V1beta1Invitation.md | 35 + docs/V1beta1JSONWebKey.md | 36 + docs/V1beta1KeyCredential.md | 31 + docs/V1beta1ListAllOrganizationsResponse.md | 28 + docs/V1beta1ListAllUsersResponse.md | 29 + docs/V1beta1ListAuthStrategiesResponse.md | 28 + docs/V1beta1ListBillingAccountsResponse.md | 28 + .../V1beta1ListBillingTransactionsResponse.md | 28 + docs/V1beta1ListCheckoutsResponse.md | 28 + docs/V1beta1ListCurrentUserGroupsResponse.md | 29 + ...ListCurrentUserGroupsResponseAccessPair.md | 29 + ...beta1ListCurrentUserInvitationsResponse.md | 29 + ...beta1ListCurrentUserPreferencesResponse.md | 28 + docs/V1beta1ListFeaturesResponse.md | 28 + docs/V1beta1ListGroupPreferencesResponse.md | 28 + docs/V1beta1ListGroupUsersResponse.md | 29 + docs/V1beta1ListGroupUsersResponseRolePair.md | 29 + docs/V1beta1ListGroupsResponse.md | 28 + docs/V1beta1ListMetaSchemasResponse.md | 28 + docs/V1beta1ListNamespacesResponse.md | 28 + docs/V1beta1ListOrganizationAdminsResponse.md | 28 + ...1beta1ListOrganizationAuditLogsResponse.md | 28 + .../V1beta1ListOrganizationDomainsResponse.md | 28 + docs/V1beta1ListOrganizationGroupsResponse.md | 28 + ...eta1ListOrganizationInvitationsResponse.md | 28 + ...eta1ListOrganizationPreferencesResponse.md | 28 + ...V1beta1ListOrganizationProjectsResponse.md | 28 + docs/V1beta1ListOrganizationRolesResponse.md | 28 + ...ta1ListOrganizationServiceUsersResponse.md | 28 + docs/V1beta1ListOrganizationUsersResponse.md | 29 + ...a1ListOrganizationUsersResponseRolePair.md | 29 + ...1ListOrganizationsByCurrentUserResponse.md | 29 + .../V1beta1ListOrganizationsByUserResponse.md | 29 + docs/V1beta1ListOrganizationsResponse.md | 28 + docs/V1beta1ListPermissionsResponse.md | 28 + docs/V1beta1ListPlansResponse.md | 28 + docs/V1beta1ListPoliciesResponse.md | 28 + docs/V1beta1ListPreferencesResponse.md | 28 + docs/V1beta1ListProjectAdminsResponse.md | 28 + docs/V1beta1ListProjectGroupsResponse.md | 29 + ...1beta1ListProjectGroupsResponseRolePair.md | 29 + docs/V1beta1ListProjectPreferencesResponse.md | 28 + docs/V1beta1ListProjectResourcesResponse.md | 28 + .../V1beta1ListProjectServiceUsersResponse.md | 29 + ...ListProjectServiceUsersResponseRolePair.md | 29 + docs/V1beta1ListProjectUsersResponse.md | 29 + ...V1beta1ListProjectUsersResponseRolePair.md | 29 + ...1beta1ListProjectsByCurrentUserResponse.md | 29 + ...ProjectsByCurrentUserResponseAccessPair.md | 29 + docs/V1beta1ListProjectsByUserResponse.md | 28 + docs/V1beta1ListProjectsResponse.md | 28 + docs/V1beta1ListRelationsResponse.md | 28 + docs/V1beta1ListResourcesResponse.md | 28 + docs/V1beta1ListRolesResponse.md | 28 + docs/V1beta1ListServiceUserKeysResponse.md | 28 + docs/V1beta1ListServiceUserSecretsResponse.md | 28 + docs/V1beta1ListServiceUsersResponse.md | 28 + docs/V1beta1ListSubscriptionsResponse.md | 28 + docs/V1beta1ListUserGroupsResponse.md | 28 + docs/V1beta1ListUserInvitationsResponse.md | 28 + docs/V1beta1ListUserPreferencesResponse.md | 28 + docs/V1beta1ListUsersResponse.md | 29 + docs/V1beta1MetaSchema.md | 32 + docs/V1beta1MetaSchemaRequestBody.md | 29 + docs/V1beta1Namespace.md | 32 + docs/V1beta1Organization.md | 35 + docs/V1beta1OrganizationRequestBody.md | 31 + docs/V1beta1Permission.md | 35 + docs/V1beta1PermissionRequestBody.md | 32 + docs/V1beta1Plan.md | 36 + docs/V1beta1PlanRequestBody.md | 33 + docs/V1beta1Policy.md | 35 + docs/V1beta1PolicyRequestBody.md | 32 + docs/V1beta1Preference.md | 34 + docs/V1beta1PreferenceRequestBody.md | 29 + docs/V1beta1PreferenceTrait.md | 44 + docs/V1beta1Price.md | 42 + docs/V1beta1Project.md | 34 + docs/V1beta1ProjectRequestBody.md | 31 + docs/V1beta1Relation.md | 34 + docs/V1beta1RelationRequestBody.md | 31 + docs/V1beta1Resource.md | 37 + docs/V1beta1ResourceRequestBody.md | 32 + docs/V1beta1Role.md | 37 + docs/V1beta1RoleRequestBody.md | 32 + docs/V1beta1SecretCredential.md | 31 + docs/V1beta1ServiceUser.md | 34 + docs/V1beta1ServiceUserKey.md | 32 + docs/V1beta1ServiceUserRequestBody.md | 29 + docs/V1beta1Subscription.md | 38 + docs/V1beta1UpdateBillingAccountResponse.md | 28 + docs/V1beta1UpdateCurrentUserResponse.md | 28 + docs/V1beta1UpdateFeatureResponse.md | 28 + docs/V1beta1UpdateGroupResponse.md | 28 + docs/V1beta1UpdateMetaSchemaResponse.md | 28 + docs/V1beta1UpdateOrganizationResponse.md | 28 + docs/V1beta1UpdateOrganizationRoleResponse.md | 28 + docs/V1beta1UpdatePermissionResponse.md | 28 + docs/V1beta1UpdatePlanResponse.md | 28 + docs/V1beta1UpdatePolicyResponse.md | 28 + docs/V1beta1UpdateProjectResourceResponse.md | 28 + docs/V1beta1UpdateProjectResponse.md | 28 + docs/V1beta1UpdateRoleResponse.md | 28 + docs/V1beta1UpdateSubscriptionResponse.md | 28 + docs/V1beta1UpdateUserResponse.md | 28 + docs/V1beta1Usage.md | 36 + docs/V1beta1User.md | 36 + docs/V1beta1UserRequestBody.md | 32 + ...V1beta1VerifyOrganizationDomainResponse.md | 28 + docs/apis/tags/AuditLogApi.md | 688 -- docs/apis/tags/AuthnApi.md | 1520 ---- docs/apis/tags/AuthzApi.md | 696 -- docs/apis/tags/GroupApi.md | 2309 ----- docs/apis/tags/MetaSchemaApi.md | 925 -- docs/apis/tags/NamespaceApi.md | 354 - docs/apis/tags/OrganizationApi.md | 5066 ----------- docs/apis/tags/PermissionApi.md | 931 -- docs/apis/tags/PolicyApi.md | 994 --- docs/apis/tags/PreferenceApi.md | 2506 ------ docs/apis/tags/ProjectApi.md | 1996 ----- docs/apis/tags/RelationApi.md | 739 -- docs/apis/tags/ResourceApi.md | 1295 --- docs/apis/tags/RoleApi.md | 1807 ---- docs/apis/tags/ServiceUserApi.md | 2182 ----- docs/apis/tags/UserApi.md | 3317 -------- docs/models/ProtobufAny.md | 22 - docs/models/ProtobufNullValue.md | 11 - docs/models/RpcStatus.md | 29 - docs/models/V1beta1AuditLog.md | 33 - docs/models/V1beta1AuditLogActor.md | 17 - docs/models/V1beta1AuditLogTarget.md | 17 - docs/models/V1beta1AuthCallbackRequest.md | 17 - docs/models/V1beta1AuthStrategy.md | 23 - docs/models/V1beta1AuthTokenRequest.md | 18 - docs/models/V1beta1AuthTokenResponse.md | 16 - docs/models/V1beta1AuthenticateResponse.md | 16 - .../models/V1beta1BatchCheckPermissionBody.md | 16 - .../V1beta1BatchCheckPermissionRequest.md | 27 - .../V1beta1BatchCheckPermissionResponse.md | 27 - ...V1beta1BatchCheckPermissionResponsePair.md | 16 - .../V1beta1CheckResourcePermissionRequest.md | 18 - .../V1beta1CheckResourcePermissionResponse.md | 15 - ...eta1CreateCurrentUserPreferencesRequest.md | 27 - ...ta1CreateCurrentUserPreferencesResponse.md | 27 - .../V1beta1CreateGroupPreferencesResponse.md | 27 - docs/models/V1beta1CreateGroupResponse.md | 15 - .../models/V1beta1CreateMetaSchemaResponse.md | 15 - ...V1beta1CreateOrganizationDomainResponse.md | 15 - ...ta1CreateOrganizationInvitationResponse.md | 27 - ...a1CreateOrganizationPreferencesResponse.md | 27 - .../V1beta1CreateOrganizationResponse.md | 15 - .../V1beta1CreateOrganizationRoleResponse.md | 15 - docs/models/V1beta1CreatePermissionRequest.md | 27 - .../models/V1beta1CreatePermissionResponse.md | 27 - docs/models/V1beta1CreatePolicyResponse.md | 15 - .../models/V1beta1CreatePreferencesRequest.md | 27 - .../V1beta1CreatePreferencesResponse.md | 27 - ...V1beta1CreateProjectPreferencesResponse.md | 27 - .../V1beta1CreateProjectResourceResponse.md | 15 - docs/models/V1beta1CreateProjectResponse.md | 15 - docs/models/V1beta1CreateRelationResponse.md | 15 - docs/models/V1beta1CreateRoleResponse.md | 15 - .../V1beta1CreateServiceUserKeyResponse.md | 15 - .../models/V1beta1CreateServiceUserRequest.md | 16 - .../V1beta1CreateServiceUserResponse.md | 15 - .../V1beta1CreateServiceUserSecretResponse.md | 15 - .../V1beta1CreateUserPreferencesResponse.md | 27 - docs/models/V1beta1CreateUserResponse.md | 15 - .../V1beta1DescribePreferencesResponse.md | 27 - docs/models/V1beta1Domain.md | 21 - docs/models/V1beta1GetCurrentUserResponse.md | 16 - docs/models/V1beta1GetGroupResponse.md | 15 - docs/models/V1beta1GetJWKsResponse.md | 27 - docs/models/V1beta1GetMetaSchemaResponse.md | 15 - docs/models/V1beta1GetNamespaceResponse.md | 15 - .../V1beta1GetOrganizationAuditLogResponse.md | 15 - .../V1beta1GetOrganizationDomainResponse.md | 15 - ...1beta1GetOrganizationInvitationResponse.md | 15 - docs/models/V1beta1GetOrganizationResponse.md | 15 - .../V1beta1GetOrganizationRoleResponse.md | 15 - docs/models/V1beta1GetPermissionResponse.md | 15 - docs/models/V1beta1GetPolicyResponse.md | 15 - .../V1beta1GetProjectResourceResponse.md | 15 - docs/models/V1beta1GetProjectResponse.md | 15 - docs/models/V1beta1GetRelationResponse.md | 15 - .../V1beta1GetServiceUserKeyResponse.md | 27 - docs/models/V1beta1GetServiceUserResponse.md | 15 - docs/models/V1beta1GetUserResponse.md | 15 - docs/models/V1beta1Group.md | 28 - docs/models/V1beta1GroupRequestBody.md | 26 - docs/models/V1beta1Invitation.md | 59 - docs/models/V1beta1JSONWebKey.md | 23 - docs/models/V1beta1KeyCredential.md | 18 - .../V1beta1ListAllOrganizationsResponse.md | 27 - docs/models/V1beta1ListAllUsersResponse.md | 28 - .../V1beta1ListAuthStrategiesResponse.md | 27 - .../V1beta1ListCurrentUserGroupsResponse.md | 40 - ...ListCurrentUserGroupsResponseAccessPair.md | 28 - ...beta1ListCurrentUserPreferencesResponse.md | 27 - .../V1beta1ListGroupPreferencesResponse.md | 27 - docs/models/V1beta1ListGroupUsersResponse.md | 40 - .../V1beta1ListGroupUsersResponseRolePair.md | 28 - docs/models/V1beta1ListGroupsResponse.md | 27 - docs/models/V1beta1ListMetaSchemasResponse.md | 27 - docs/models/V1beta1ListNamespacesResponse.md | 27 - .../V1beta1ListOrganizationAdminsResponse.md | 27 - ...1beta1ListOrganizationAuditLogsResponse.md | 27 - .../V1beta1ListOrganizationDomainsResponse.md | 27 - .../V1beta1ListOrganizationGroupsResponse.md | 27 - ...eta1ListOrganizationInvitationsResponse.md | 27 - ...eta1ListOrganizationPreferencesResponse.md | 27 - ...V1beta1ListOrganizationProjectsResponse.md | 27 - .../V1beta1ListOrganizationRolesResponse.md | 27 - ...ta1ListOrganizationServiceUsersResponse.md | 27 - .../V1beta1ListOrganizationUsersResponse.md | 27 - ...1ListOrganizationsByCurrentUserResponse.md | 40 - .../V1beta1ListOrganizationsByUserResponse.md | 40 - .../V1beta1ListOrganizationsResponse.md | 27 - docs/models/V1beta1ListPermissionsResponse.md | 27 - docs/models/V1beta1ListPoliciesResponse.md | 27 - docs/models/V1beta1ListPreferencesResponse.md | 27 - .../V1beta1ListProjectAdminsResponse.md | 27 - .../V1beta1ListProjectPreferencesResponse.md | 27 - .../V1beta1ListProjectResourcesResponse.md | 27 - .../V1beta1ListProjectServiceUsersResponse.md | 40 - ...ListProjectServiceUsersResponseRolePair.md | 28 - .../models/V1beta1ListProjectUsersResponse.md | 40 - ...V1beta1ListProjectUsersResponseRolePair.md | 28 - ...1beta1ListProjectsByCurrentUserResponse.md | 40 - ...ProjectsByCurrentUserResponseAccessPair.md | 28 - .../V1beta1ListProjectsByUserResponse.md | 27 - docs/models/V1beta1ListProjectsResponse.md | 27 - docs/models/V1beta1ListRelationsResponse.md | 27 - docs/models/V1beta1ListResourcesResponse.md | 27 - docs/models/V1beta1ListRolesResponse.md | 27 - .../V1beta1ListServiceUserKeysResponse.md | 27 - .../V1beta1ListServiceUserSecretsResponse.md | 27 - .../models/V1beta1ListServiceUsersResponse.md | 27 - docs/models/V1beta1ListUserGroupsResponse.md | 27 - .../V1beta1ListUserInvitationsResponse.md | 27 - .../V1beta1ListUserPreferencesResponse.md | 27 - docs/models/V1beta1ListUsersResponse.md | 28 - docs/models/V1beta1MetaSchema.md | 19 - docs/models/V1beta1MetaSchemaRequestBody.md | 16 - docs/models/V1beta1Namespace.md | 26 - docs/models/V1beta1Organization.md | 29 - docs/models/V1beta1OrganizationRequestBody.md | 27 - docs/models/V1beta1Permission.md | 29 - docs/models/V1beta1PermissionRequestBody.md | 28 - docs/models/V1beta1Policy.md | 29 - docs/models/V1beta1PolicyRequestBody.md | 28 - docs/models/V1beta1Preference.md | 21 - docs/models/V1beta1PreferenceRequestBody.md | 16 - docs/models/V1beta1PreferenceTrait.md | 30 - docs/models/V1beta1Project.md | 28 - docs/models/V1beta1ProjectRequestBody.md | 27 - docs/models/V1beta1Relation.md | 21 - docs/models/V1beta1RelationRequestBody.md | 18 - docs/models/V1beta1Resource.md | 30 - docs/models/V1beta1ResourceRequestBody.md | 26 - docs/models/V1beta1Role.md | 42 - docs/models/V1beta1RoleRequestBody.md | 37 - docs/models/V1beta1SecretCredential.md | 18 - docs/models/V1beta1ServiceUser.md | 28 - docs/models/V1beta1ServiceUserKey.md | 19 - docs/models/V1beta1ServiceUserRequestBody.md | 23 - .../V1beta1UpdateCurrentUserResponse.md | 15 - docs/models/V1beta1UpdateGroupResponse.md | 15 - .../models/V1beta1UpdateMetaSchemaResponse.md | 15 - .../V1beta1UpdateOrganizationResponse.md | 15 - .../V1beta1UpdateOrganizationRoleResponse.md | 15 - .../models/V1beta1UpdatePermissionResponse.md | 15 - docs/models/V1beta1UpdatePolicyResponse.md | 27 - .../V1beta1UpdateProjectResourceResponse.md | 15 - docs/models/V1beta1UpdateProjectResponse.md | 15 - docs/models/V1beta1UpdateRoleResponse.md | 15 - docs/models/V1beta1UpdateUserResponse.md | 15 - docs/models/V1beta1User.md | 30 - docs/models/V1beta1UserRequestBody.md | 28 - ...V1beta1VerifyOrganizationDomainResponse.md | 15 - frontier_api/__init__.py | 259 +- frontier_api/api/__init__.py | 29 + frontier_api/api/audit_log_api.py | 1023 +++ frontier_api/api/authn_api.py | 2419 ++++++ frontier_api/api/authz_api.py | 1453 ++++ frontier_api/api/billing_api.py | 1851 ++++ frontier_api/api/checkout_api.py | 668 ++ frontier_api/api/entitlement_api.py | 372 + frontier_api/api/feature_api.py | 1199 +++ frontier_api/api/group_api.py | 3511 ++++++++ frontier_api/api/meta_schema_api.py | 1478 ++++ frontier_api/api/namespace_api.py | 592 ++ frontier_api/api/organization_api.py | 7497 +++++++++++++++++ frontier_api/api/permission_api.py | 1473 ++++ frontier_api/api/plan_api.py | 1199 +++ frontier_api/api/platform_api.py | 339 + frontier_api/api/policy_api.py | 1565 ++++ frontier_api/api/preference_api.py | 3794 +++++++++ frontier_api/api/project_api.py | 3313 ++++++++ frontier_api/api/relation_api.py | 1195 +++ frontier_api/api/resource_api.py | 1920 +++++ frontier_api/api/role_api.py | 2774 ++++++ frontier_api/api/service_user_api.py | 3289 ++++++++ frontier_api/api/subscription_api.py | 1306 +++ frontier_api/api/transaction_api.py | 375 + frontier_api/api/usage_api.py | 373 + frontier_api/api/user_api.py | 5405 ++++++++++++ frontier_api/api_client.py | 1970 ++--- frontier_api/api_response.py | 21 + frontier_api/apis/__init__.py | 3 - frontier_api/apis/path_to_api.py | 278 - frontier_api/apis/paths/__init__.py | 3 - .../apis/paths/v1beta1_admin_groups.py | 7 - .../apis/paths/v1beta1_admin_organizations.py | 7 - .../apis/paths/v1beta1_admin_projects.py | 7 - .../apis/paths/v1beta1_admin_relations.py | 7 - .../apis/paths/v1beta1_admin_resources.py | 7 - .../apis/paths/v1beta1_admin_users.py | 7 - frontier_api/apis/paths/v1beta1_auth.py | 7 - .../apis/paths/v1beta1_auth_callback.py | 9 - frontier_api/apis/paths/v1beta1_auth_jwks.py | 7 - .../apis/paths/v1beta1_auth_logout.py | 9 - .../v1beta1_auth_register_strategy_name.py | 9 - frontier_api/apis/paths/v1beta1_auth_token.py | 7 - frontier_api/apis/paths/v1beta1_batchcheck.py | 7 - frontier_api/apis/paths/v1beta1_check.py | 7 - .../paths/v1beta1_groups_id_preferences.py | 9 - .../apis/paths/v1beta1_meta_schemas.py | 9 - .../apis/paths/v1beta1_meta_schemas_id.py | 11 - frontier_api/apis/paths/v1beta1_namespaces.py | 7 - .../apis/paths/v1beta1_namespaces_id.py | 7 - .../v1beta1_organization_org_id_auditlogs.py | 9 - ...1beta1_organization_org_id_auditlogs_id.py | 7 - .../apis/paths/v1beta1_organizations.py | 9 - .../apis/paths/v1beta1_organizations_id.py | 11 - .../paths/v1beta1_organizations_id_admins.py | 7 - .../paths/v1beta1_organizations_id_disable.py | 7 - .../paths/v1beta1_organizations_id_enable.py | 7 - .../v1beta1_organizations_id_preferences.py | 9 - .../v1beta1_organizations_id_projects.py | 7 - .../v1beta1_organizations_id_serviceusers.py | 7 - .../paths/v1beta1_organizations_id_users.py | 9 - .../v1beta1_organizations_id_users_user_id.py | 7 - .../v1beta1_organizations_org_id_domains.py | 9 - ...v1beta1_organizations_org_id_domains_id.py | 9 - ..._organizations_org_id_domains_id_verify.py | 7 - .../v1beta1_organizations_org_id_groups.py | 9 - .../v1beta1_organizations_org_id_groups_id.py | 11 - ..._organizations_org_id_groups_id_disable.py | 7 - ...1_organizations_org_id_groups_id_enable.py | 7 - ...a1_organizations_org_id_groups_id_users.py | 9 - ...izations_org_id_groups_id_users_user_id.py | 7 - ...1beta1_organizations_org_id_invitations.py | 9 - ...ta1_organizations_org_id_invitations_id.py | 9 - ...anizations_org_id_invitations_id_accept.py | 7 - .../v1beta1_organizations_org_id_join.py | 7 - .../v1beta1_organizations_org_id_roles.py | 9 - .../v1beta1_organizations_org_id_roles_id.py | 11 - .../apis/paths/v1beta1_permissions.py | 9 - .../apis/paths/v1beta1_permissions_id.py | 11 - frontier_api/apis/paths/v1beta1_policies.py | 9 - .../apis/paths/v1beta1_policies_id.py | 11 - .../apis/paths/v1beta1_preferences.py | 9 - .../apis/paths/v1beta1_preferences_traits.py | 7 - frontier_api/apis/paths/v1beta1_projects.py | 7 - .../apis/paths/v1beta1_projects_id.py | 11 - .../apis/paths/v1beta1_projects_id_admins.py | 7 - .../apis/paths/v1beta1_projects_id_disable.py | 7 - .../apis/paths/v1beta1_projects_id_enable.py | 7 - .../paths/v1beta1_projects_id_preferences.py | 9 - .../paths/v1beta1_projects_id_serviceusers.py | 7 - .../apis/paths/v1beta1_projects_id_users.py | 7 - .../v1beta1_projects_project_id_resources.py | 9 - ...1beta1_projects_project_id_resources_id.py | 11 - frontier_api/apis/paths/v1beta1_relations.py | 7 - .../apis/paths/v1beta1_relations_id.py | 7 - ..._relation_object_object_subject_subject.py | 7 - frontier_api/apis/paths/v1beta1_roles.py | 9 - frontier_api/apis/paths/v1beta1_roles_id.py | 9 - .../apis/paths/v1beta1_serviceusers.py | 9 - .../apis/paths/v1beta1_serviceusers_id.py | 9 - .../paths/v1beta1_serviceusers_id_keys.py | 9 - .../v1beta1_serviceusers_id_keys_key_id.py | 9 - .../paths/v1beta1_serviceusers_id_secrets.py | 9 - ...beta1_serviceusers_id_secrets_secret_id.py | 7 - frontier_api/apis/paths/v1beta1_users.py | 9 - frontier_api/apis/paths/v1beta1_users_id.py | 11 - .../apis/paths/v1beta1_users_id_disable.py | 7 - .../apis/paths/v1beta1_users_id_enable.py | 7 - .../apis/paths/v1beta1_users_id_groups.py | 7 - .../paths/v1beta1_users_id_invitations.py | 7 - .../paths/v1beta1_users_id_organizations.py | 7 - .../paths/v1beta1_users_id_preferences.py | 9 - .../apis/paths/v1beta1_users_id_projects.py | 7 - frontier_api/apis/paths/v1beta1_users_self.py | 9 - .../apis/paths/v1beta1_users_self_groups.py | 7 - .../paths/v1beta1_users_self_organizations.py | 7 - .../paths/v1beta1_users_self_preferences.py | 9 - .../apis/paths/v1beta1_users_self_projects.py | 7 - .../apis/paths/well_known_jwks_json.py | 7 - frontier_api/apis/tag_to_api.py | 68 - frontier_api/apis/tags/__init__.py | 26 - frontier_api/apis/tags/audit_log_api.py | 28 - frontier_api/apis/tags/authn_api.py | 38 - frontier_api/apis/tags/authz_api.py | 30 - frontier_api/apis/tags/group_api.py | 44 - frontier_api/apis/tags/meta_schema_api.py | 32 - frontier_api/apis/tags/namespace_api.py | 26 - frontier_api/apis/tags/organization_api.py | 72 - frontier_api/apis/tags/permission_api.py | 32 - frontier_api/apis/tags/policy_api.py | 32 - frontier_api/apis/tags/preference_api.py | 48 - frontier_api/apis/tags/project_api.py | 42 - frontier_api/apis/tags/relation_api.py | 30 - frontier_api/apis/tags/resource_api.py | 34 - frontier_api/apis/tags/role_api.py | 40 - frontier_api/apis/tags/service_user_api.py | 44 - frontier_api/apis/tags/user_api.py | 56 - frontier_api/configuration.py | 157 +- frontier_api/exceptions.py | 77 +- frontier_api/model/__init__.py | 5 - frontier_api/model/protobuf_any.py | 76 - frontier_api/model/protobuf_any.pyi | 76 - frontier_api/model/protobuf_null_value.py | 52 - frontier_api/model/rpc_status.py | 126 - frontier_api/model/rpc_status.pyi | 126 - frontier_api/model/v1beta1_audit_log.py | 183 - frontier_api/model/v1beta1_audit_log.pyi | 183 - frontier_api/model/v1beta1_audit_log_actor.py | 99 - .../model/v1beta1_audit_log_actor.pyi | 99 - .../model/v1beta1_audit_log_target.py | 99 - .../model/v1beta1_audit_log_target.pyi | 99 - .../model/v1beta1_auth_callback_request.py | 99 - .../model/v1beta1_auth_callback_request.pyi | 99 - frontier_api/model/v1beta1_auth_strategy.py | 89 - frontier_api/model/v1beta1_auth_strategy.pyi | 89 - .../model/v1beta1_auth_token_request.py | 109 - .../model/v1beta1_auth_token_request.pyi | 109 - .../model/v1beta1_auth_token_response.py | 89 - .../model/v1beta1_auth_token_response.pyi | 89 - .../model/v1beta1_authenticate_response.py | 89 - .../model/v1beta1_authenticate_response.pyi | 89 - .../v1beta1_batch_check_permission_body.py | 94 - .../v1beta1_batch_check_permission_body.pyi | 94 - .../v1beta1_batch_check_permission_request.py | 106 - ...v1beta1_batch_check_permission_request.pyi | 106 - ...v1beta1_batch_check_permission_response.py | 106 - ...1beta1_batch_check_permission_response.pyi | 106 - ...a1_batch_check_permission_response_pair.py | 94 - ...1_batch_check_permission_response_pair.pyi | 94 - ...beta1_check_resource_permission_request.py | 114 - ...eta1_check_resource_permission_request.pyi | 114 - ...eta1_check_resource_permission_response.py | 79 - ...ta1_check_resource_permission_response.pyi | 79 - ...create_current_user_preferences_request.py | 106 - ...reate_current_user_preferences_request.pyi | 106 - ...reate_current_user_preferences_response.py | 106 - ...eate_current_user_preferences_response.pyi | 106 - ...beta1_create_group_preferences_response.py | 106 - ...eta1_create_group_preferences_response.pyi | 106 - .../model/v1beta1_create_group_response.py | 84 - .../model/v1beta1_create_group_response.pyi | 84 - .../v1beta1_create_meta_schema_response.py | 84 - .../v1beta1_create_meta_schema_response.pyi | 84 - ...ta1_create_organization_domain_response.py | 84 - ...a1_create_organization_domain_response.pyi | 84 - ...create_organization_invitation_response.py | 106 - ...reate_organization_invitation_response.pyi | 106 - ...reate_organization_preferences_response.py | 106 - ...eate_organization_preferences_response.pyi | 106 - .../v1beta1_create_organization_response.py | 84 - .../v1beta1_create_organization_response.pyi | 84 - ...beta1_create_organization_role_response.py | 84 - ...eta1_create_organization_role_response.pyi | 84 - .../v1beta1_create_permission_request.py | 106 - .../v1beta1_create_permission_request.pyi | 106 - .../v1beta1_create_permission_response.py | 106 - .../v1beta1_create_permission_response.pyi | 106 - .../model/v1beta1_create_policy_response.py | 84 - .../model/v1beta1_create_policy_response.pyi | 84 - .../v1beta1_create_preferences_request.py | 106 - .../v1beta1_create_preferences_request.pyi | 106 - .../v1beta1_create_preferences_response.py | 106 - .../v1beta1_create_preferences_response.pyi | 106 - ...ta1_create_project_preferences_response.py | 106 - ...a1_create_project_preferences_response.pyi | 106 - ...1beta1_create_project_resource_response.py | 84 - ...beta1_create_project_resource_response.pyi | 84 - .../model/v1beta1_create_project_response.py | 84 - .../model/v1beta1_create_project_response.pyi | 84 - .../model/v1beta1_create_relation_response.py | 84 - .../v1beta1_create_relation_response.pyi | 84 - .../model/v1beta1_create_role_response.py | 84 - .../model/v1beta1_create_role_response.pyi | 84 - ...1beta1_create_service_user_key_response.py | 84 - ...beta1_create_service_user_key_response.pyi | 84 - .../v1beta1_create_service_user_request.py | 99 - .../v1beta1_create_service_user_request.pyi | 99 - .../v1beta1_create_service_user_response.py | 84 - .../v1beta1_create_service_user_response.pyi | 84 - ...ta1_create_service_user_secret_response.py | 84 - ...a1_create_service_user_secret_response.pyi | 84 - ...1beta1_create_user_preferences_response.py | 106 - ...beta1_create_user_preferences_response.pyi | 106 - .../model/v1beta1_create_user_response.py | 84 - .../model/v1beta1_create_user_response.pyi | 84 - .../v1beta1_describe_preferences_response.py | 106 - .../v1beta1_describe_preferences_response.pyi | 106 - frontier_api/model/v1beta1_domain.py | 139 - frontier_api/model/v1beta1_domain.pyi | 139 - .../v1beta1_get_current_user_response.py | 98 - .../v1beta1_get_current_user_response.pyi | 98 - .../model/v1beta1_get_group_response.py | 84 - .../model/v1beta1_get_group_response.pyi | 84 - .../model/v1beta1_get_jwks_response.py | 106 - .../model/v1beta1_get_jwks_response.pyi | 106 - .../model/v1beta1_get_meta_schema_response.py | 84 - .../v1beta1_get_meta_schema_response.pyi | 84 - .../model/v1beta1_get_namespace_response.py | 84 - .../model/v1beta1_get_namespace_response.pyi | 84 - ...ta1_get_organization_audit_log_response.py | 84 - ...a1_get_organization_audit_log_response.pyi | 84 - ...1beta1_get_organization_domain_response.py | 84 - ...beta1_get_organization_domain_response.pyi | 84 - ...a1_get_organization_invitation_response.py | 84 - ...1_get_organization_invitation_response.pyi | 84 - .../v1beta1_get_organization_response.py | 84 - .../v1beta1_get_organization_response.pyi | 84 - .../v1beta1_get_organization_role_response.py | 84 - ...v1beta1_get_organization_role_response.pyi | 84 - .../model/v1beta1_get_permission_response.py | 84 - .../model/v1beta1_get_permission_response.pyi | 84 - .../model/v1beta1_get_policy_response.py | 84 - .../model/v1beta1_get_policy_response.pyi | 84 - .../v1beta1_get_project_resource_response.py | 84 - .../v1beta1_get_project_resource_response.pyi | 84 - .../model/v1beta1_get_project_response.py | 84 - .../model/v1beta1_get_project_response.pyi | 84 - .../model/v1beta1_get_relation_response.py | 84 - .../model/v1beta1_get_relation_response.pyi | 84 - .../v1beta1_get_service_user_key_response.py | 106 - .../v1beta1_get_service_user_key_response.pyi | 106 - .../v1beta1_get_service_user_response.py | 84 - .../v1beta1_get_service_user_response.pyi | 84 - .../model/v1beta1_get_user_response.py | 84 - .../model/v1beta1_get_user_response.pyi | 84 - frontier_api/model/v1beta1_group.py | 139 - frontier_api/model/v1beta1_group.pyi | 139 - .../model/v1beta1_group_request_body.py | 104 - .../model/v1beta1_group_request_body.pyi | 104 - frontier_api/model/v1beta1_invitation.py | 193 - frontier_api/model/v1beta1_invitation.pyi | 193 - frontier_api/model/v1beta1_json_web_key.py | 159 - frontier_api/model/v1beta1_json_web_key.pyi | 159 - frontier_api/model/v1beta1_key_credential.py | 109 - frontier_api/model/v1beta1_key_credential.pyi | 109 - ...v1beta1_list_all_organizations_response.py | 106 - ...1beta1_list_all_organizations_response.pyi | 106 - .../model/v1beta1_list_all_users_response.py | 116 - .../model/v1beta1_list_all_users_response.pyi | 116 - .../v1beta1_list_auth_strategies_response.py | 106 - .../v1beta1_list_auth_strategies_response.pyi | 106 - ...beta1_list_current_user_groups_response.py | 142 - ...eta1_list_current_user_groups_response.pyi | 142 - ...urrent_user_groups_response_access_pair.py | 111 - ...rrent_user_groups_response_access_pair.pyi | 111 - ..._list_current_user_preferences_response.py | 106 - ...list_current_user_preferences_response.pyi | 106 - ...v1beta1_list_group_preferences_response.py | 106 - ...1beta1_list_group_preferences_response.pyi | 106 - .../v1beta1_list_group_users_response.py | 142 - .../v1beta1_list_group_users_response.pyi | 142 - ...ta1_list_group_users_response_role_pair.py | 116 - ...a1_list_group_users_response_role_pair.pyi | 116 - .../model/v1beta1_list_groups_response.py | 106 - .../model/v1beta1_list_groups_response.pyi | 106 - .../v1beta1_list_meta_schemas_response.py | 106 - .../v1beta1_list_meta_schemas_response.pyi | 106 - .../model/v1beta1_list_namespaces_response.py | 106 - .../v1beta1_list_namespaces_response.pyi | 106 - ...beta1_list_organization_admins_response.py | 106 - ...eta1_list_organization_admins_response.pyi | 106 - ...1_list_organization_audit_logs_response.py | 106 - ..._list_organization_audit_logs_response.pyi | 106 - ...eta1_list_organization_domains_response.py | 106 - ...ta1_list_organization_domains_response.pyi | 106 - ...beta1_list_organization_groups_response.py | 106 - ...eta1_list_organization_groups_response.pyi | 106 - ..._list_organization_invitations_response.py | 106 - ...list_organization_invitations_response.pyi | 106 - ..._list_organization_preferences_response.py | 106 - ...list_organization_preferences_response.pyi | 106 - ...ta1_list_organization_projects_response.py | 106 - ...a1_list_organization_projects_response.pyi | 106 - ...1beta1_list_organization_roles_response.py | 106 - ...beta1_list_organization_roles_response.pyi | 106 - ...ist_organization_service_users_response.py | 106 - ...st_organization_service_users_response.pyi | 106 - ...1beta1_list_organization_users_response.py | 106 - ...beta1_list_organization_users_response.pyi | 106 - ..._organizations_by_current_user_response.py | 141 - ...organizations_by_current_user_response.pyi | 141 - ...ta1_list_organizations_by_user_response.py | 141 - ...a1_list_organizations_by_user_response.pyi | 141 - .../v1beta1_list_organizations_response.py | 106 - .../v1beta1_list_organizations_response.pyi | 106 - .../v1beta1_list_permissions_response.py | 106 - .../v1beta1_list_permissions_response.pyi | 106 - .../model/v1beta1_list_policies_response.py | 106 - .../model/v1beta1_list_policies_response.pyi | 106 - .../v1beta1_list_preferences_response.py | 106 - .../v1beta1_list_preferences_response.pyi | 106 - .../v1beta1_list_project_admins_response.py | 106 - .../v1beta1_list_project_admins_response.pyi | 106 - ...beta1_list_project_preferences_response.py | 106 - ...eta1_list_project_preferences_response.pyi | 106 - ...v1beta1_list_project_resources_response.py | 106 - ...1beta1_list_project_resources_response.pyi | 106 - ...ta1_list_project_service_users_response.py | 142 - ...a1_list_project_service_users_response.pyi | 142 - ...roject_service_users_response_role_pair.py | 116 - ...oject_service_users_response_role_pair.pyi | 116 - .../v1beta1_list_project_users_response.py | 142 - .../v1beta1_list_project_users_response.pyi | 142 - ...1_list_project_users_response_role_pair.py | 116 - ..._list_project_users_response_role_pair.pyi | 116 - ..._list_projects_by_current_user_response.py | 142 - ...list_projects_by_current_user_response.pyi | 142 - ...ts_by_current_user_response_access_pair.py | 111 - ...s_by_current_user_response_access_pair.pyi | 111 - .../v1beta1_list_projects_by_user_response.py | 106 - ...v1beta1_list_projects_by_user_response.pyi | 106 - .../model/v1beta1_list_projects_response.py | 106 - .../model/v1beta1_list_projects_response.pyi | 106 - .../model/v1beta1_list_relations_response.py | 106 - .../model/v1beta1_list_relations_response.pyi | 106 - .../model/v1beta1_list_resources_response.py | 106 - .../model/v1beta1_list_resources_response.pyi | 106 - .../model/v1beta1_list_roles_response.py | 106 - .../model/v1beta1_list_roles_response.pyi | 106 - ...v1beta1_list_service_user_keys_response.py | 106 - ...1beta1_list_service_user_keys_response.pyi | 106 - ...eta1_list_service_user_secrets_response.py | 106 - ...ta1_list_service_user_secrets_response.pyi | 106 - .../v1beta1_list_service_users_response.py | 106 - .../v1beta1_list_service_users_response.pyi | 106 - .../v1beta1_list_user_groups_response.py | 106 - .../v1beta1_list_user_groups_response.pyi | 106 - .../v1beta1_list_user_invitations_response.py | 106 - ...v1beta1_list_user_invitations_response.pyi | 106 - .../v1beta1_list_user_preferences_response.py | 106 - ...v1beta1_list_user_preferences_response.pyi | 106 - .../model/v1beta1_list_users_response.py | 116 - .../model/v1beta1_list_users_response.pyi | 116 - frontier_api/model/v1beta1_meta_schema.py | 119 - frontier_api/model/v1beta1_meta_schema.pyi | 119 - .../model/v1beta1_meta_schema_request_body.py | 96 - .../v1beta1_meta_schema_request_body.pyi | 96 - frontier_api/model/v1beta1_namespace.py | 119 - frontier_api/model/v1beta1_namespace.pyi | 119 - frontier_api/model/v1beta1_organization.py | 149 - frontier_api/model/v1beta1_organization.pyi | 149 - .../v1beta1_organization_request_body.py | 114 - .../v1beta1_organization_request_body.pyi | 114 - frontier_api/model/v1beta1_permission.py | 149 - frontier_api/model/v1beta1_permission.pyi | 149 - .../model/v1beta1_permission_request_body.py | 119 - .../model/v1beta1_permission_request_body.pyi | 119 - frontier_api/model/v1beta1_policy.py | 149 - frontier_api/model/v1beta1_policy.pyi | 149 - .../model/v1beta1_policy_request_body.py | 128 - .../model/v1beta1_policy_request_body.pyi | 128 - frontier_api/model/v1beta1_preference.py | 139 - frontier_api/model/v1beta1_preference.pyi | 139 - .../model/v1beta1_preference_request_body.py | 89 - .../model/v1beta1_preference_request_body.pyi | 89 - .../model/v1beta1_preference_trait.py | 229 - .../model/v1beta1_preference_trait.pyi | 229 - frontier_api/model/v1beta1_project.py | 139 - frontier_api/model/v1beta1_project.pyi | 139 - .../model/v1beta1_project_request_body.py | 116 - .../model/v1beta1_project_request_body.pyi | 116 - frontier_api/model/v1beta1_relation.py | 139 - frontier_api/model/v1beta1_relation.pyi | 139 - .../model/v1beta1_relation_request_body.py | 109 - .../model/v1beta1_relation_request_body.pyi | 109 - frontier_api/model/v1beta1_resource.py | 159 - frontier_api/model/v1beta1_resource.pyi | 159 - .../model/v1beta1_resource_request_body.py | 126 - .../model/v1beta1_resource_request_body.pyi | 126 - frontier_api/model/v1beta1_role.py | 181 - frontier_api/model/v1beta1_role.pyi | 181 - .../model/v1beta1_role_request_body.py | 131 - .../model/v1beta1_role_request_body.pyi | 131 - .../model/v1beta1_secret_credential.py | 109 - .../model/v1beta1_secret_credential.pyi | 109 - frontier_api/model/v1beta1_service_user.py | 139 - frontier_api/model/v1beta1_service_user.pyi | 139 - .../model/v1beta1_service_user_key.py | 119 - .../model/v1beta1_service_user_key.pyi | 119 - .../v1beta1_service_user_request_body.py | 89 - .../v1beta1_service_user_request_body.pyi | 89 - .../v1beta1_update_current_user_response.py | 84 - .../v1beta1_update_current_user_response.pyi | 84 - .../model/v1beta1_update_group_response.py | 84 - .../model/v1beta1_update_group_response.pyi | 84 - .../v1beta1_update_meta_schema_response.py | 84 - .../v1beta1_update_meta_schema_response.pyi | 84 - .../v1beta1_update_organization_response.py | 84 - .../v1beta1_update_organization_response.pyi | 84 - ...beta1_update_organization_role_response.py | 84 - ...eta1_update_organization_role_response.pyi | 84 - .../v1beta1_update_permission_response.py | 84 - .../v1beta1_update_permission_response.pyi | 84 - .../model/v1beta1_update_policy_response.py | 106 - .../model/v1beta1_update_policy_response.pyi | 106 - ...1beta1_update_project_resource_response.py | 84 - ...beta1_update_project_resource_response.pyi | 84 - .../model/v1beta1_update_project_response.py | 84 - .../model/v1beta1_update_project_response.pyi | 84 - .../model/v1beta1_update_role_response.py | 84 - .../model/v1beta1_update_role_response.pyi | 84 - .../model/v1beta1_update_user_response.py | 84 - .../model/v1beta1_update_user_response.pyi | 84 - frontier_api/model/v1beta1_user.py | 159 - frontier_api/model/v1beta1_user.pyi | 159 - .../model/v1beta1_user_request_body.py | 124 - .../model/v1beta1_user_request_body.pyi | 124 - ...ta1_verify_organization_domain_response.py | 79 - ...a1_verify_organization_domain_response.pyi | 79 - frontier_api/models/__init__.py | 389 +- .../models/billing_account_address.py | 99 + .../models/billing_account_balance.py | 93 + ...rontier_service_add_group_users_request.py | 89 + ..._service_add_organization_users_request.py | 89 + .../frontier_service_authenticate2_request.py | 95 + ...rvice_check_feature_entitlement_request.py | 88 + ..._service_create_billing_account_request.py | 92 + ...er_service_create_billing_usage_request.py | 96 + ...rontier_service_create_checkout_request.py | 103 + ...ervice_create_group_preferences_request.py | 96 + ..._create_organization_audit_logs_request.py | 96 + ...vice_create_organization_domain_request.py | 89 + ..._create_organization_invitation_request.py | 93 + ...service_create_service_user_key_request.py | 88 + ...frontier_service_update_feature_request.py | 92 + .../frontier_service_update_plan_request.py | 92 + ...ier_service_update_subscription_request.py | 88 + frontier_api/models/protobuf_any.py | 102 + .../protobuf_null_value.py} | 55 +- frontier_api/models/rpc_status.py | 100 + .../v1beta1_add_platform_user_request.py | 93 + frontier_api/models/v1beta1_audit_log.py | 109 + .../models/v1beta1_audit_log_actor.py | 92 + .../models/v1beta1_audit_log_target.py | 92 + .../models/v1beta1_auth_callback_request.py | 95 + frontier_api/models/v1beta1_auth_strategy.py | 90 + .../models/v1beta1_auth_token_request.py | 95 + .../models/v1beta1_auth_token_response.py | 91 + .../models/v1beta1_authenticate_response.py | 93 + .../v1beta1_batch_check_permission_body.py | 91 + .../v1beta1_batch_check_permission_request.py | 96 + ...v1beta1_batch_check_permission_response.py | 96 + ...a1_batch_check_permission_response_pair.py | 94 + .../models/v1beta1_billing_account.py | 117 + .../v1beta1_billing_account_request_body.py | 102 + .../models/v1beta1_billing_transaction.py | 105 + ...eta1_check_feature_entitlement_response.py | 88 + ...k_federated_resource_permission_request.py | 93 + ..._federated_resource_permission_response.py | 88 + ...beta1_check_resource_permission_request.py | 95 + ...eta1_check_resource_permission_response.py | 88 + .../models/v1beta1_checkout_feature_body.py | 88 + .../models/v1beta1_checkout_session.py | 105 + .../v1beta1_checkout_subscription_body.py | 91 + ...v1beta1_create_billing_account_response.py | 93 + .../v1beta1_create_checkout_response.py | 93 + ...create_current_user_preferences_request.py | 96 + ...reate_current_user_preferences_response.py | 96 + .../models/v1beta1_create_feature_request.py | 92 + .../models/v1beta1_create_feature_response.py | 92 + ...beta1_create_group_preferences_response.py | 96 + .../models/v1beta1_create_group_response.py | 92 + .../v1beta1_create_meta_schema_response.py | 92 + ...ta1_create_organization_domain_response.py | 92 + ...create_organization_invitation_response.py | 96 + ...reate_organization_preferences_response.py | 96 + .../v1beta1_create_organization_response.py | 92 + ...beta1_create_organization_role_response.py | 92 + .../v1beta1_create_permission_request.py | 96 + .../v1beta1_create_permission_response.py | 96 + .../models/v1beta1_create_plan_request.py | 92 + .../models/v1beta1_create_plan_response.py | 92 + .../models/v1beta1_create_policy_response.py | 92 + .../v1beta1_create_preferences_request.py | 96 + .../v1beta1_create_preferences_response.py | 96 + ...ta1_create_project_preferences_response.py | 96 + ...1beta1_create_project_resource_response.py | 92 + .../models/v1beta1_create_project_response.py | 92 + .../v1beta1_create_relation_response.py | 92 + .../models/v1beta1_create_role_response.py | 92 + ...1beta1_create_service_user_key_response.py | 92 + .../v1beta1_create_service_user_request.py | 95 + .../v1beta1_create_service_user_response.py | 92 + ...ta1_create_service_user_secret_response.py | 92 + ...1beta1_create_user_preferences_response.py | 96 + .../models/v1beta1_create_user_response.py | 92 + .../v1beta1_describe_preferences_response.py | 96 + frontier_api/models/v1beta1_domain.py | 101 + frontier_api/models/v1beta1_feature.py | 117 + .../models/v1beta1_feature_request_body.py | 109 + .../v1beta1_get_billing_account_response.py | 93 + .../v1beta1_get_billing_balance_response.py | 92 + .../v1beta1_get_current_user_response.py | 98 + .../models/v1beta1_get_feature_response.py | 92 + .../models/v1beta1_get_group_response.py | 92 + .../models/v1beta1_get_jwks_response.py | 96 + .../v1beta1_get_meta_schema_response.py | 92 + .../models/v1beta1_get_namespace_response.py | 92 + ...ta1_get_organization_audit_log_response.py | 92 + ...1beta1_get_organization_domain_response.py | 92 + ...a1_get_organization_invitation_response.py | 92 + .../v1beta1_get_organization_response.py | 92 + .../v1beta1_get_organization_role_response.py | 92 + .../models/v1beta1_get_permission_response.py | 92 + .../models/v1beta1_get_plan_response.py | 92 + .../models/v1beta1_get_policy_response.py | 92 + .../v1beta1_get_project_resource_response.py | 92 + .../models/v1beta1_get_project_response.py | 92 + .../models/v1beta1_get_relation_response.py | 92 + .../v1beta1_get_service_user_key_response.py | 96 + .../v1beta1_get_service_user_response.py | 92 + .../v1beta1_get_subscription_response.py | 92 + .../models/v1beta1_get_user_response.py | 92 + frontier_api/models/v1beta1_group.py | 113 + .../models/v1beta1_group_request_body.py | 93 + frontier_api/models/v1beta1_invitation.py | 103 + frontier_api/models/v1beta1_json_web_key.py | 105 + frontier_api/models/v1beta1_key_credential.py | 97 + ...v1beta1_list_all_organizations_response.py | 96 + .../models/v1beta1_list_all_users_response.py | 98 + .../v1beta1_list_auth_strategies_response.py | 96 + .../v1beta1_list_billing_accounts_response.py | 97 + ...eta1_list_billing_transactions_response.py | 96 + .../models/v1beta1_list_checkouts_response.py | 97 + ...beta1_list_current_user_groups_response.py | 107 + ...urrent_user_groups_response_access_pair.py | 91 + ..._list_current_user_invitations_response.py | 106 + ..._list_current_user_preferences_response.py | 96 + .../models/v1beta1_list_features_response.py | 96 + ...v1beta1_list_group_preferences_response.py | 96 + .../v1beta1_list_group_users_response.py | 107 + ...ta1_list_group_users_response_role_pair.py | 99 + .../models/v1beta1_list_groups_response.py | 96 + .../v1beta1_list_meta_schemas_response.py | 96 + .../v1beta1_list_namespaces_response.py | 96 + ...beta1_list_organization_admins_response.py | 96 + ...1_list_organization_audit_logs_response.py | 96 + ...eta1_list_organization_domains_response.py | 96 + ...beta1_list_organization_groups_response.py | 96 + ..._list_organization_invitations_response.py | 96 + ..._list_organization_preferences_response.py | 96 + ...ta1_list_organization_projects_response.py | 96 + ...1beta1_list_organization_roles_response.py | 96 + ...ist_organization_service_users_response.py | 96 + ...1beta1_list_organization_users_response.py | 107 + ...t_organization_users_response_role_pair.py | 99 + ..._organizations_by_current_user_response.py | 106 + ...ta1_list_organizations_by_user_response.py | 106 + .../v1beta1_list_organizations_response.py | 96 + .../v1beta1_list_permissions_response.py | 96 + .../models/v1beta1_list_plans_response.py | 96 + .../models/v1beta1_list_policies_response.py | 96 + .../v1beta1_list_preferences_response.py | 96 + .../v1beta1_list_project_admins_response.py | 96 + .../v1beta1_list_project_groups_response.py | 107 + ..._list_project_groups_response_role_pair.py | 99 + ...beta1_list_project_preferences_response.py | 96 + ...v1beta1_list_project_resources_response.py | 96 + ...ta1_list_project_service_users_response.py | 107 + ...roject_service_users_response_role_pair.py | 99 + .../v1beta1_list_project_users_response.py | 107 + ...1_list_project_users_response_role_pair.py | 99 + ..._list_projects_by_current_user_response.py | 107 + ...ts_by_current_user_response_access_pair.py | 91 + .../v1beta1_list_projects_by_user_response.py | 96 + .../models/v1beta1_list_projects_response.py | 96 + .../models/v1beta1_list_relations_response.py | 96 + .../models/v1beta1_list_resources_response.py | 96 + .../models/v1beta1_list_roles_response.py | 96 + ...v1beta1_list_service_user_keys_response.py | 96 + ...eta1_list_service_user_secrets_response.py | 96 + .../v1beta1_list_service_users_response.py | 96 + .../v1beta1_list_subscriptions_response.py | 96 + .../v1beta1_list_user_groups_response.py | 96 + .../v1beta1_list_user_invitations_response.py | 96 + .../v1beta1_list_user_preferences_response.py | 96 + .../models/v1beta1_list_users_response.py | 98 + frontier_api/models/v1beta1_meta_schema.py | 97 + .../v1beta1_meta_schema_request_body.py | 91 + frontier_api/models/v1beta1_namespace.py | 97 + frontier_api/models/v1beta1_organization.py | 103 + .../v1beta1_organization_request_body.py | 95 + frontier_api/models/v1beta1_permission.py | 103 + .../models/v1beta1_permission_request_body.py | 97 + frontier_api/models/v1beta1_plan.py | 113 + .../models/v1beta1_plan_request_body.py | 106 + frontier_api/models/v1beta1_policy.py | 103 + .../models/v1beta1_policy_request_body.py | 97 + frontier_api/models/v1beta1_preference.py | 101 + .../models/v1beta1_preference_request_body.py | 90 + .../models/v1beta1_preference_trait.py | 121 + frontier_api/models/v1beta1_price.py | 117 + frontier_api/models/v1beta1_project.py | 101 + .../models/v1beta1_project_request_body.py | 95 + frontier_api/models/v1beta1_relation.py | 101 + .../models/v1beta1_relation_request_body.py | 95 + frontier_api/models/v1beta1_resource.py | 107 + .../models/v1beta1_resource_request_body.py | 97 + frontier_api/models/v1beta1_role.py | 107 + .../models/v1beta1_role_request_body.py | 96 + .../models/v1beta1_secret_credential.py | 97 + frontier_api/models/v1beta1_service_user.py | 101 + .../models/v1beta1_service_user_key.py | 99 + .../v1beta1_service_user_request_body.py | 91 + frontier_api/models/v1beta1_subscription.py | 109 + ...v1beta1_update_billing_account_response.py | 93 + .../v1beta1_update_current_user_response.py | 92 + .../models/v1beta1_update_feature_response.py | 92 + .../models/v1beta1_update_group_response.py | 92 + .../v1beta1_update_meta_schema_response.py | 92 + .../v1beta1_update_organization_response.py | 92 + ...beta1_update_organization_role_response.py | 92 + .../v1beta1_update_permission_response.py | 92 + .../models/v1beta1_update_plan_response.py | 92 + .../models/v1beta1_update_policy_response.py | 96 + ...1beta1_update_project_resource_response.py | 92 + .../models/v1beta1_update_project_response.py | 92 + .../models/v1beta1_update_role_response.py | 92 + .../v1beta1_update_subscription_response.py | 92 + .../models/v1beta1_update_user_response.py | 92 + frontier_api/models/v1beta1_usage.py | 105 + frontier_api/models/v1beta1_user.py | 105 + .../models/v1beta1_user_request_body.py | 97 + ...ta1_verify_organization_domain_response.py | 88 + frontier_api/paths/__init__.py | 96 - .../paths/v1beta1_admin_groups/__init__.py | 7 - .../paths/v1beta1_admin_groups/get.py | 437 - .../paths/v1beta1_admin_groups/get.pyi | 423 - .../v1beta1_admin_organizations/__init__.py | 7 - .../paths/v1beta1_admin_organizations/get.py | 437 - .../paths/v1beta1_admin_organizations/get.pyi | 423 - .../paths/v1beta1_admin_projects/__init__.py | 7 - .../paths/v1beta1_admin_projects/get.py | 437 - .../paths/v1beta1_admin_projects/get.pyi | 423 - .../paths/v1beta1_admin_relations/__init__.py | 7 - .../paths/v1beta1_admin_relations/get.py | 374 - .../paths/v1beta1_admin_relations/get.pyi | 360 - .../paths/v1beta1_admin_resources/__init__.py | 7 - .../paths/v1beta1_admin_resources/get.py | 455 - .../paths/v1beta1_admin_resources/get.pyi | 441 - .../paths/v1beta1_admin_users/__init__.py | 7 - frontier_api/paths/v1beta1_admin_users/get.py | 473 -- .../paths/v1beta1_admin_users/get.pyi | 459 - frontier_api/paths/v1beta1_auth/__init__.py | 7 - frontier_api/paths/v1beta1_auth/get.py | 374 - frontier_api/paths/v1beta1_auth/get.pyi | 360 - .../paths/v1beta1_auth_callback/__init__.py | 7 - .../paths/v1beta1_auth_callback/get.py | 445 - .../paths/v1beta1_auth_callback/get.pyi | 431 - .../paths/v1beta1_auth_callback/post.py | 471 -- .../paths/v1beta1_auth_callback/post.pyi | 457 - .../paths/v1beta1_auth_jwks/__init__.py | 7 - frontier_api/paths/v1beta1_auth_jwks/get.py | 374 - frontier_api/paths/v1beta1_auth_jwks/get.pyi | 360 - .../paths/v1beta1_auth_logout/__init__.py | 7 - .../paths/v1beta1_auth_logout/delete.py | 373 - .../paths/v1beta1_auth_logout/delete.pyi | 359 - frontier_api/paths/v1beta1_auth_logout/get.py | 373 - .../paths/v1beta1_auth_logout/get.pyi | 359 - .../__init__.py | 7 - .../get.py | 509 -- .../get.pyi | 495 -- .../post.py | 607 -- .../post.pyi | 593 -- .../paths/v1beta1_auth_token/__init__.py | 7 - frontier_api/paths/v1beta1_auth_token/post.py | 472 -- .../paths/v1beta1_auth_token/post.pyi | 458 - .../paths/v1beta1_batchcheck/__init__.py | 7 - frontier_api/paths/v1beta1_batchcheck/post.py | 472 -- .../paths/v1beta1_batchcheck/post.pyi | 458 - frontier_api/paths/v1beta1_check/__init__.py | 7 - frontier_api/paths/v1beta1_check/post.py | 472 -- frontier_api/paths/v1beta1_check/post.pyi | 458 - .../v1beta1_groups_id_preferences/__init__.py | 7 - .../v1beta1_groups_id_preferences/get.py | 428 - .../v1beta1_groups_id_preferences/get.pyi | 414 - .../v1beta1_groups_id_preferences/post.py | 603 -- .../v1beta1_groups_id_preferences/post.pyi | 589 -- .../paths/v1beta1_meta_schemas/__init__.py | 7 - .../paths/v1beta1_meta_schemas/get.py | 374 - .../paths/v1beta1_meta_schemas/get.pyi | 360 - .../paths/v1beta1_meta_schemas/post.py | 472 -- .../paths/v1beta1_meta_schemas/post.pyi | 458 - .../paths/v1beta1_meta_schemas_id/__init__.py | 7 - .../paths/v1beta1_meta_schemas_id/delete.py | 427 - .../paths/v1beta1_meta_schemas_id/delete.pyi | 413 - .../paths/v1beta1_meta_schemas_id/get.py | 428 - .../paths/v1beta1_meta_schemas_id/get.pyi | 414 - .../paths/v1beta1_meta_schemas_id/put.py | 529 -- .../paths/v1beta1_meta_schemas_id/put.pyi | 515 -- .../paths/v1beta1_namespaces/__init__.py | 7 - frontier_api/paths/v1beta1_namespaces/get.py | 374 - frontier_api/paths/v1beta1_namespaces/get.pyi | 360 - .../paths/v1beta1_namespaces_id/__init__.py | 7 - .../paths/v1beta1_namespaces_id/get.py | 428 - .../paths/v1beta1_namespaces_id/get.pyi | 414 - .../__init__.py | 7 - .../get.py | 509 -- .../get.pyi | 495 -- .../post.py | 602 -- .../post.pyi | 588 -- .../__init__.py | 7 - .../get.py | 437 - .../get.pyi | 423 - .../paths/v1beta1_organizations/__init__.py | 7 - .../paths/v1beta1_organizations/get.py | 437 - .../paths/v1beta1_organizations/get.pyi | 423 - .../paths/v1beta1_organizations/post.py | 472 -- .../paths/v1beta1_organizations/post.pyi | 458 - .../v1beta1_organizations_id/__init__.py | 7 - .../paths/v1beta1_organizations_id/delete.py | 427 - .../paths/v1beta1_organizations_id/delete.pyi | 413 - .../paths/v1beta1_organizations_id/get.py | 428 - .../paths/v1beta1_organizations_id/get.pyi | 414 - .../paths/v1beta1_organizations_id/put.py | 529 -- .../paths/v1beta1_organizations_id/put.pyi | 515 -- .../__init__.py | 7 - .../v1beta1_organizations_id_admins/get.py | 428 - .../v1beta1_organizations_id_admins/get.pyi | 414 - .../__init__.py | 7 - .../v1beta1_organizations_id_disable/post.py | 527 -- .../v1beta1_organizations_id_disable/post.pyi | 513 -- .../__init__.py | 7 - .../v1beta1_organizations_id_enable/post.py | 527 -- .../v1beta1_organizations_id_enable/post.pyi | 513 -- .../__init__.py | 7 - .../get.py | 428 - .../get.pyi | 414 - .../post.py | 603 -- .../post.pyi | 589 -- .../__init__.py | 7 - .../v1beta1_organizations_id_projects/get.py | 482 -- .../v1beta1_organizations_id_projects/get.pyi | 468 - .../__init__.py | 7 - .../get.py | 428 - .../get.pyi | 414 - .../__init__.py | 7 - .../v1beta1_organizations_id_users/get.py | 482 -- .../v1beta1_organizations_id_users/get.pyi | 468 - .../v1beta1_organizations_id_users/post.py | 598 -- .../v1beta1_organizations_id_users/post.pyi | 584 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../__init__.py | 7 - .../get.py | 482 -- .../get.pyi | 468 - .../post.py | 582 -- .../post.pyi | 568 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../get.py | 437 - .../get.pyi | 423 - .../__init__.py | 7 - .../post.py | 537 -- .../post.pyi | 523 -- .../__init__.py | 7 - .../get.py | 482 -- .../get.pyi | 468 - .../post.py | 529 -- .../post.pyi | 515 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../get.py | 437 - .../get.pyi | 423 - .../put.py | 538 -- .../put.pyi | 524 -- .../__init__.py | 7 - .../post.py | 536 -- .../post.pyi | 522 -- .../__init__.py | 7 - .../post.py | 536 -- .../post.pyi | 522 -- .../__init__.py | 7 - .../get.py | 491 -- .../get.pyi | 477 -- .../post.py | 607 -- .../post.pyi | 593 -- .../__init__.py | 7 - .../delete.py | 445 - .../delete.pyi | 431 - .../__init__.py | 7 - .../get.py | 482 -- .../get.pyi | 468 - .../post.py | 668 -- .../post.pyi | 654 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../get.py | 437 - .../get.pyi | 423 - .../__init__.py | 7 - .../post.py | 436 - .../post.pyi | 422 - .../__init__.py | 7 - .../v1beta1_organizations_org_id_join/post.py | 427 - .../post.pyi | 413 - .../__init__.py | 7 - .../v1beta1_organizations_org_id_roles/get.py | 482 -- .../get.pyi | 468 - .../post.py | 529 -- .../post.pyi | 515 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../get.py | 437 - .../get.pyi | 423 - .../put.py | 538 -- .../put.pyi | 524 -- .../paths/v1beta1_permissions/__init__.py | 7 - frontier_api/paths/v1beta1_permissions/get.py | 374 - .../paths/v1beta1_permissions/get.pyi | 360 - .../paths/v1beta1_permissions/post.py | 472 -- .../paths/v1beta1_permissions/post.pyi | 458 - .../paths/v1beta1_permissions_id/__init__.py | 7 - .../paths/v1beta1_permissions_id/delete.py | 427 - .../paths/v1beta1_permissions_id/delete.pyi | 413 - .../paths/v1beta1_permissions_id/get.py | 428 - .../paths/v1beta1_permissions_id/get.pyi | 414 - .../paths/v1beta1_permissions_id/put.py | 529 -- .../paths/v1beta1_permissions_id/put.pyi | 515 -- .../paths/v1beta1_policies/__init__.py | 7 - frontier_api/paths/v1beta1_policies/get.py | 464 - frontier_api/paths/v1beta1_policies/get.pyi | 450 - frontier_api/paths/v1beta1_policies/post.py | 472 -- frontier_api/paths/v1beta1_policies/post.pyi | 458 - .../paths/v1beta1_policies_id/__init__.py | 7 - .../paths/v1beta1_policies_id/delete.py | 427 - .../paths/v1beta1_policies_id/delete.pyi | 413 - frontier_api/paths/v1beta1_policies_id/get.py | 428 - .../paths/v1beta1_policies_id/get.pyi | 414 - frontier_api/paths/v1beta1_policies_id/put.py | 529 -- .../paths/v1beta1_policies_id/put.pyi | 515 -- .../paths/v1beta1_preferences/__init__.py | 7 - frontier_api/paths/v1beta1_preferences/get.py | 374 - .../paths/v1beta1_preferences/get.pyi | 360 - .../paths/v1beta1_preferences/post.py | 472 -- .../paths/v1beta1_preferences/post.pyi | 458 - .../v1beta1_preferences_traits/__init__.py | 7 - .../paths/v1beta1_preferences_traits/get.py | 374 - .../paths/v1beta1_preferences_traits/get.pyi | 360 - .../paths/v1beta1_projects/__init__.py | 7 - frontier_api/paths/v1beta1_projects/post.py | 472 -- frontier_api/paths/v1beta1_projects/post.pyi | 458 - .../paths/v1beta1_projects_id/__init__.py | 7 - .../paths/v1beta1_projects_id/delete.py | 427 - .../paths/v1beta1_projects_id/delete.pyi | 413 - frontier_api/paths/v1beta1_projects_id/get.py | 428 - .../paths/v1beta1_projects_id/get.pyi | 414 - frontier_api/paths/v1beta1_projects_id/put.py | 529 -- .../paths/v1beta1_projects_id/put.pyi | 515 -- .../v1beta1_projects_id_admins/__init__.py | 7 - .../paths/v1beta1_projects_id_admins/get.py | 428 - .../paths/v1beta1_projects_id_admins/get.pyi | 414 - .../v1beta1_projects_id_disable/__init__.py | 7 - .../paths/v1beta1_projects_id_disable/post.py | 527 -- .../v1beta1_projects_id_disable/post.pyi | 513 -- .../v1beta1_projects_id_enable/__init__.py | 7 - .../paths/v1beta1_projects_id_enable/post.py | 527 -- .../paths/v1beta1_projects_id_enable/post.pyi | 513 -- .../__init__.py | 7 - .../v1beta1_projects_id_preferences/get.py | 428 - .../v1beta1_projects_id_preferences/get.pyi | 414 - .../v1beta1_projects_id_preferences/post.py | 603 -- .../v1beta1_projects_id_preferences/post.pyi | 589 -- .../__init__.py | 7 - .../v1beta1_projects_id_serviceusers/get.py | 482 -- .../v1beta1_projects_id_serviceusers/get.pyi | 468 - .../v1beta1_projects_id_users/__init__.py | 7 - .../paths/v1beta1_projects_id_users/get.py | 491 -- .../paths/v1beta1_projects_id_users/get.pyi | 477 -- .../__init__.py | 7 - .../get.py | 482 -- .../get.pyi | 468 - .../post.py | 586 -- .../post.pyi | 572 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../get.py | 437 - .../get.pyi | 423 - .../put.py | 538 -- .../put.pyi | 524 -- .../paths/v1beta1_relations/__init__.py | 7 - frontier_api/paths/v1beta1_relations/post.py | 472 -- frontier_api/paths/v1beta1_relations/post.pyi | 458 - .../paths/v1beta1_relations_id/__init__.py | 7 - .../paths/v1beta1_relations_id/get.py | 428 - .../paths/v1beta1_relations_id/get.pyi | 414 - .../__init__.py | 7 - .../delete.py | 445 - .../delete.pyi | 431 - frontier_api/paths/v1beta1_roles/__init__.py | 7 - frontier_api/paths/v1beta1_roles/get.py | 428 - frontier_api/paths/v1beta1_roles/get.pyi | 414 - frontier_api/paths/v1beta1_roles/post.py | 472 -- frontier_api/paths/v1beta1_roles/post.pyi | 458 - .../paths/v1beta1_roles_id/__init__.py | 7 - frontier_api/paths/v1beta1_roles_id/delete.py | 427 - .../paths/v1beta1_roles_id/delete.pyi | 413 - frontier_api/paths/v1beta1_roles_id/put.py | 529 -- frontier_api/paths/v1beta1_roles_id/put.pyi | 515 -- .../paths/v1beta1_serviceusers/__init__.py | 7 - .../paths/v1beta1_serviceusers/get.py | 438 - .../paths/v1beta1_serviceusers/get.pyi | 424 - .../paths/v1beta1_serviceusers/post.py | 472 -- .../paths/v1beta1_serviceusers/post.pyi | 458 - .../paths/v1beta1_serviceusers_id/__init__.py | 7 - .../paths/v1beta1_serviceusers_id/delete.py | 481 -- .../paths/v1beta1_serviceusers_id/delete.pyi | 467 - .../paths/v1beta1_serviceusers_id/get.py | 428 - .../paths/v1beta1_serviceusers_id/get.pyi | 414 - .../v1beta1_serviceusers_id_keys/__init__.py | 7 - .../paths/v1beta1_serviceusers_id_keys/get.py | 428 - .../v1beta1_serviceusers_id_keys/get.pyi | 414 - .../v1beta1_serviceusers_id_keys/post.py | 577 -- .../v1beta1_serviceusers_id_keys/post.pyi | 563 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - .../get.py | 437 - .../get.pyi | 423 - .../__init__.py | 7 - .../v1beta1_serviceusers_id_secrets/get.py | 428 - .../v1beta1_serviceusers_id_secrets/get.pyi | 414 - .../v1beta1_serviceusers_id_secrets/post.py | 577 -- .../v1beta1_serviceusers_id_secrets/post.pyi | 563 -- .../__init__.py | 7 - .../delete.py | 436 - .../delete.pyi | 422 - frontier_api/paths/v1beta1_users/__init__.py | 7 - frontier_api/paths/v1beta1_users/get.py | 473 -- frontier_api/paths/v1beta1_users/get.pyi | 459 - frontier_api/paths/v1beta1_users/post.py | 472 -- frontier_api/paths/v1beta1_users/post.pyi | 458 - .../paths/v1beta1_users_id/__init__.py | 7 - frontier_api/paths/v1beta1_users_id/delete.py | 427 - .../paths/v1beta1_users_id/delete.pyi | 413 - frontier_api/paths/v1beta1_users_id/get.py | 428 - frontier_api/paths/v1beta1_users_id/get.pyi | 414 - frontier_api/paths/v1beta1_users_id/put.py | 529 -- frontier_api/paths/v1beta1_users_id/put.pyi | 515 -- .../v1beta1_users_id_disable/__init__.py | 7 - .../paths/v1beta1_users_id_disable/post.py | 527 -- .../paths/v1beta1_users_id_disable/post.pyi | 513 -- .../paths/v1beta1_users_id_enable/__init__.py | 7 - .../paths/v1beta1_users_id_enable/post.py | 527 -- .../paths/v1beta1_users_id_enable/post.pyi | 513 -- .../paths/v1beta1_users_id_groups/__init__.py | 7 - .../paths/v1beta1_users_id_groups/get.py | 482 -- .../paths/v1beta1_users_id_groups/get.pyi | 468 - .../v1beta1_users_id_invitations/__init__.py | 7 - .../paths/v1beta1_users_id_invitations/get.py | 428 - .../v1beta1_users_id_invitations/get.pyi | 414 - .../__init__.py | 7 - .../v1beta1_users_id_organizations/get.py | 428 - .../v1beta1_users_id_organizations/get.pyi | 414 - .../v1beta1_users_id_preferences/__init__.py | 7 - .../paths/v1beta1_users_id_preferences/get.py | 428 - .../v1beta1_users_id_preferences/get.pyi | 414 - .../v1beta1_users_id_preferences/post.py | 603 -- .../v1beta1_users_id_preferences/post.pyi | 589 -- .../v1beta1_users_id_projects/__init__.py | 7 - .../paths/v1beta1_users_id_projects/get.py | 428 - .../paths/v1beta1_users_id_projects/get.pyi | 414 - .../paths/v1beta1_users_self/__init__.py | 7 - frontier_api/paths/v1beta1_users_self/get.py | 374 - frontier_api/paths/v1beta1_users_self/get.pyi | 360 - frontier_api/paths/v1beta1_users_self/put.py | 472 -- frontier_api/paths/v1beta1_users_self/put.pyi | 458 - .../v1beta1_users_self_groups/__init__.py | 7 - .../paths/v1beta1_users_self_groups/get.py | 459 - .../paths/v1beta1_users_self_groups/get.pyi | 445 - .../__init__.py | 7 - .../v1beta1_users_self_organizations/get.py | 374 - .../v1beta1_users_self_organizations/get.pyi | 360 - .../__init__.py | 7 - .../v1beta1_users_self_preferences/get.py | 374 - .../v1beta1_users_self_preferences/get.pyi | 360 - .../v1beta1_users_self_preferences/post.py | 472 -- .../v1beta1_users_self_preferences/post.pyi | 458 - .../v1beta1_users_self_projects/__init__.py | 7 - .../paths/v1beta1_users_self_projects/get.py | 459 - .../paths/v1beta1_users_self_projects/get.pyi | 445 - .../paths/well_known_jwks_json/__init__.py | 7 - .../paths/well_known_jwks_json/get.py | 374 - .../paths/well_known_jwks_json/get.pyi | 360 - .../__init__.py => frontier_api/py.typed | 0 frontier_api/rest.py | 266 +- frontier_api/schemas.py | 2476 ------ git_push.sh | 5 +- pyproject.toml | 2 +- requirements.txt | 9 +- setup.py | 32 +- temp/list.py | 33 + test-requirements.txt | 4 +- test/test_audit_log_api.py | 53 + test/test_authn_api.py | 88 + test/test_authz_api.py | 67 + test/test_billing_account_address.py | 58 + test/test_billing_account_balance.py | 55 + test/test_billing_api.py | 74 + test/test_checkout_api.py | 46 + ...ion_request.py => test_entitlement_api.py} | 31 +- test/test_feature_api.py | 60 + ...rontier_service_add_group_users_request.py | 55 + ..._service_add_organization_users_request.py | 55 + ..._frontier_service_authenticate2_request.py | 56 + ...rvice_check_feature_entitlement_request.py | 53 + ..._service_create_billing_account_request.py | 65 + ...er_service_create_billing_usage_request.py | 64 + ...rontier_service_create_checkout_request.py | 59 + ...ervice_create_group_preferences_request.py | 57 + ..._create_organization_audit_logs_request.py | 70 + ...vice_create_organization_domain_request.py | 54 + ..._create_organization_invitation_request.py | 64 + ...service_create_service_user_key_request.py | 53 + ...frontier_service_update_feature_request.py | 77 + ...st_frontier_service_update_plan_request.py | 91 + ...ier_service_update_subscription_request.py | 53 + test/test_group_api.py | 109 + test/test_meta_schema_api.py | 67 + test/test_models/test_protobuf_any.py | 26 - test/test_models/test_rpc_status.py | 26 - .../test_v1beta1_audit_log_actor.py | 26 - .../test_v1beta1_audit_log_target.py | 26 - .../test_v1beta1_auth_callback_request.py | 26 - .../test_models/test_v1beta1_auth_strategy.py | 26 - .../test_v1beta1_auth_token_request.py | 26 - .../test_v1beta1_auth_token_response.py | 26 - .../test_v1beta1_authenticate_response.py | 26 - ...est_v1beta1_batch_check_permission_body.py | 26 - ...v1beta1_batch_check_permission_response.py | 26 - ...a1_batch_check_permission_response_pair.py | 26 - ...beta1_check_resource_permission_request.py | 26 - ...create_current_user_preferences_request.py | 26 - ...reate_current_user_preferences_response.py | 26 - ...beta1_create_group_preferences_response.py | 26 - .../test_v1beta1_create_group_response.py | 26 - ...est_v1beta1_create_meta_schema_response.py | 26 - ...ta1_create_organization_domain_response.py | 26 - ...create_organization_invitation_response.py | 26 - ...reate_organization_preferences_response.py | 26 - ...st_v1beta1_create_organization_response.py | 26 - ...beta1_create_organization_role_response.py | 26 - .../test_v1beta1_create_permission_request.py | 26 - ...test_v1beta1_create_permission_response.py | 26 - .../test_v1beta1_create_policy_response.py | 26 - ...test_v1beta1_create_preferences_request.py | 26 - ...est_v1beta1_create_preferences_response.py | 26 - ...ta1_create_project_preferences_response.py | 26 - ...1beta1_create_project_resource_response.py | 26 - .../test_v1beta1_create_project_response.py | 26 - .../test_v1beta1_create_relation_response.py | 26 - .../test_v1beta1_create_role_response.py | 26 - ...est_v1beta1_create_service_user_request.py | 26 - ...st_v1beta1_create_service_user_response.py | 26 - ...1beta1_create_user_preferences_response.py | 26 - .../test_v1beta1_create_user_response.py | 26 - ...t_v1beta1_describe_preferences_response.py | 26 - test/test_models/test_v1beta1_domain.py | 26 - .../test_v1beta1_get_current_user_response.py | 26 - .../test_v1beta1_get_group_response.py | 26 - .../test_v1beta1_get_jwks_response.py | 26 - .../test_v1beta1_get_meta_schema_response.py | 26 - .../test_v1beta1_get_namespace_response.py | 26 - ...ta1_get_organization_audit_log_response.py | 26 - ...1beta1_get_organization_domain_response.py | 26 - ...a1_get_organization_invitation_response.py | 26 - .../test_v1beta1_get_organization_response.py | 26 - ..._v1beta1_get_organization_role_response.py | 26 - .../test_v1beta1_get_permission_response.py | 26 - .../test_v1beta1_get_policy_response.py | 26 - ...t_v1beta1_get_project_resource_response.py | 26 - .../test_v1beta1_get_project_response.py | 26 - .../test_v1beta1_get_relation_response.py | 26 - ...t_v1beta1_get_service_user_key_response.py | 26 - .../test_v1beta1_get_service_user_response.py | 26 - .../test_v1beta1_get_user_response.py | 26 - test/test_models/test_v1beta1_group.py | 26 - .../test_v1beta1_group_request_body.py | 26 - test/test_models/test_v1beta1_invitation.py | 26 - test/test_models/test_v1beta1_json_web_key.py | 26 - .../test_v1beta1_key_credential.py | 26 - ...v1beta1_list_all_organizations_response.py | 26 - .../test_v1beta1_list_all_users_response.py | 26 - ...t_v1beta1_list_auth_strategies_response.py | 26 - ...beta1_list_current_user_groups_response.py | 26 - ...urrent_user_groups_response_access_pair.py | 26 - ..._list_current_user_preferences_response.py | 26 - ...v1beta1_list_group_preferences_response.py | 26 - .../test_v1beta1_list_group_users_response.py | 26 - ...ta1_list_group_users_response_role_pair.py | 26 - .../test_v1beta1_list_groups_response.py | 26 - ...test_v1beta1_list_meta_schemas_response.py | 26 - .../test_v1beta1_list_namespaces_response.py | 26 - ...beta1_list_organization_admins_response.py | 26 - ...1_list_organization_audit_logs_response.py | 26 - ...eta1_list_organization_domains_response.py | 26 - ...beta1_list_organization_groups_response.py | 26 - ..._list_organization_invitations_response.py | 26 - ..._list_organization_preferences_response.py | 26 - ...ta1_list_organization_projects_response.py | 26 - ...1beta1_list_organization_roles_response.py | 26 - ...ist_organization_service_users_response.py | 26 - ...1beta1_list_organization_users_response.py | 26 - ..._organizations_by_current_user_response.py | 26 - ...ta1_list_organizations_by_user_response.py | 26 - ...est_v1beta1_list_organizations_response.py | 26 - .../test_v1beta1_list_permissions_response.py | 26 - .../test_v1beta1_list_policies_response.py | 26 - .../test_v1beta1_list_preferences_response.py | 26 - ...st_v1beta1_list_project_admins_response.py | 26 - ...beta1_list_project_preferences_response.py | 26 - ...v1beta1_list_project_resources_response.py | 26 - ...ta1_list_project_service_users_response.py | 26 - ...roject_service_users_response_role_pair.py | 26 - ...est_v1beta1_list_project_users_response.py | 26 - ...1_list_project_users_response_role_pair.py | 26 - ..._list_projects_by_current_user_response.py | 26 - ...ts_by_current_user_response_access_pair.py | 26 - ..._v1beta1_list_projects_by_user_response.py | 26 - .../test_v1beta1_list_projects_response.py | 26 - .../test_v1beta1_list_relations_response.py | 26 - .../test_v1beta1_list_resources_response.py | 26 - .../test_v1beta1_list_roles_response.py | 26 - ...v1beta1_list_service_user_keys_response.py | 26 - ...eta1_list_service_user_secrets_response.py | 26 - ...est_v1beta1_list_service_users_response.py | 26 - .../test_v1beta1_list_user_groups_response.py | 26 - ..._v1beta1_list_user_invitations_response.py | 26 - ..._v1beta1_list_user_preferences_response.py | 26 - .../test_v1beta1_list_users_response.py | 26 - test/test_models/test_v1beta1_meta_schema.py | 26 - .../test_v1beta1_meta_schema_request_body.py | 26 - test/test_models/test_v1beta1_namespace.py | 26 - test/test_models/test_v1beta1_organization.py | 26 - .../test_v1beta1_organization_request_body.py | 26 - test/test_models/test_v1beta1_permission.py | 26 - .../test_v1beta1_permission_request_body.py | 26 - test/test_models/test_v1beta1_policy.py | 26 - .../test_v1beta1_policy_request_body.py | 26 - test/test_models/test_v1beta1_preference.py | 26 - .../test_v1beta1_preference_request_body.py | 26 - .../test_v1beta1_preference_trait.py | 26 - test/test_models/test_v1beta1_project.py | 26 - .../test_v1beta1_project_request_body.py | 26 - test/test_models/test_v1beta1_relation.py | 26 - .../test_v1beta1_relation_request_body.py | 26 - test/test_models/test_v1beta1_resource.py | 26 - .../test_v1beta1_resource_request_body.py | 26 - test/test_models/test_v1beta1_role.py | 26 - .../test_v1beta1_role_request_body.py | 26 - .../test_v1beta1_secret_credential.py | 26 - test/test_models/test_v1beta1_service_user.py | 26 - .../test_v1beta1_service_user_key.py | 26 - .../test_v1beta1_service_user_request_body.py | 26 - ...st_v1beta1_update_current_user_response.py | 26 - .../test_v1beta1_update_group_response.py | 26 - ...est_v1beta1_update_meta_schema_response.py | 26 - ...st_v1beta1_update_organization_response.py | 26 - ...beta1_update_organization_role_response.py | 26 - ...test_v1beta1_update_permission_response.py | 26 - .../test_v1beta1_update_policy_response.py | 26 - ...1beta1_update_project_resource_response.py | 26 - .../test_v1beta1_update_project_response.py | 26 - .../test_v1beta1_update_role_response.py | 26 - .../test_v1beta1_update_user_response.py | 26 - test/test_models/test_v1beta1_user.py | 26 - .../test_v1beta1_user_request_body.py | 26 - ...ta1_verify_organization_domain_response.py | 26 - ...cret_response.py => test_namespace_api.py} | 38 +- test/test_organization_api.py | 207 + test/test_paths/__init__.py | 68 - .../test_v1beta1_admin_groups/__init__.py | 0 .../test_v1beta1_admin_groups/test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_v1beta1_admin_projects/__init__.py | 0 .../test_v1beta1_admin_projects/test_get.py | 41 - .../test_v1beta1_admin_relations/__init__.py | 0 .../test_v1beta1_admin_relations/test_get.py | 41 - .../test_v1beta1_admin_resources/__init__.py | 0 .../test_v1beta1_admin_resources/test_get.py | 41 - .../test_v1beta1_admin_users/__init__.py | 0 .../test_v1beta1_admin_users/test_get.py | 41 - test/test_paths/test_v1beta1_auth/__init__.py | 0 test/test_paths/test_v1beta1_auth/test_get.py | 41 - .../test_v1beta1_auth_callback/__init__.py | 0 .../test_v1beta1_auth_callback/test_get.py | 41 - .../test_v1beta1_auth_callback/test_post.py | 43 - .../test_v1beta1_auth_jwks/__init__.py | 0 .../test_v1beta1_auth_jwks/test_get.py | 41 - .../test_v1beta1_auth_logout/__init__.py | 0 .../test_v1beta1_auth_logout/test_delete.py | 41 - .../test_v1beta1_auth_logout/test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../test_v1beta1_auth_token/__init__.py | 0 .../test_v1beta1_auth_token/test_post.py | 43 - .../test_v1beta1_batchcheck/__init__.py | 0 .../test_v1beta1_batchcheck/test_post.py | 43 - .../test_paths/test_v1beta1_check/__init__.py | 0 .../test_v1beta1_check/test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../test_v1beta1_meta_schemas/__init__.py | 0 .../test_v1beta1_meta_schemas/test_get.py | 41 - .../test_v1beta1_meta_schemas/test_post.py | 43 - .../test_v1beta1_meta_schemas_id/__init__.py | 0 .../test_delete.py | 41 - .../test_v1beta1_meta_schemas_id/test_get.py | 41 - .../test_v1beta1_meta_schemas_id/test_put.py | 43 - .../test_v1beta1_namespaces/__init__.py | 0 .../test_v1beta1_namespaces/test_get.py | 41 - .../test_v1beta1_namespaces_id/__init__.py | 0 .../test_v1beta1_namespaces_id/test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_v1beta1_organizations/__init__.py | 0 .../test_v1beta1_organizations/test_get.py | 41 - .../test_v1beta1_organizations/test_post.py | 43 - .../test_v1beta1_organizations_id/__init__.py | 0 .../test_delete.py | 41 - .../test_v1beta1_organizations_id/test_get.py | 41 - .../test_v1beta1_organizations_id/test_put.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_get.py | 41 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_get.py | 41 - .../test_put.py | 43 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_get.py | 41 - .../__init__.py | 0 .../test_post.py | 41 - .../__init__.py | 0 .../test_post.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_get.py | 41 - .../test_put.py | 43 - .../test_v1beta1_permissions/__init__.py | 0 .../test_v1beta1_permissions/test_get.py | 41 - .../test_v1beta1_permissions/test_post.py | 43 - .../test_v1beta1_permissions_id/__init__.py | 0 .../test_delete.py | 41 - .../test_v1beta1_permissions_id/test_get.py | 41 - .../test_v1beta1_permissions_id/test_put.py | 43 - .../test_v1beta1_policies/__init__.py | 0 .../test_v1beta1_policies/test_get.py | 41 - .../test_v1beta1_policies/test_post.py | 43 - .../test_v1beta1_policies_id/__init__.py | 0 .../test_v1beta1_policies_id/test_delete.py | 41 - .../test_v1beta1_policies_id/test_get.py | 41 - .../test_v1beta1_policies_id/test_put.py | 43 - .../test_v1beta1_preferences/__init__.py | 0 .../test_v1beta1_preferences/test_get.py | 41 - .../test_v1beta1_preferences/test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_v1beta1_projects/__init__.py | 0 .../test_v1beta1_projects/test_post.py | 43 - .../test_v1beta1_projects_id/__init__.py | 0 .../test_v1beta1_projects_id/test_delete.py | 41 - .../test_v1beta1_projects_id/test_get.py | 41 - .../test_v1beta1_projects_id/test_put.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_get.py | 41 - .../test_put.py | 43 - .../test_v1beta1_relations/__init__.py | 0 .../test_v1beta1_relations/test_post.py | 43 - .../test_v1beta1_relations_id/__init__.py | 0 .../test_v1beta1_relations_id/test_get.py | 41 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_paths/test_v1beta1_roles/__init__.py | 0 .../test_paths/test_v1beta1_roles/test_get.py | 41 - .../test_v1beta1_roles/test_post.py | 43 - .../test_v1beta1_roles_id/__init__.py | 0 .../test_v1beta1_roles_id/test_delete.py | 41 - .../test_v1beta1_roles_id/test_put.py | 43 - .../test_v1beta1_serviceusers/__init__.py | 0 .../test_v1beta1_serviceusers/test_get.py | 41 - .../test_v1beta1_serviceusers/test_post.py | 43 - .../test_v1beta1_serviceusers_id/__init__.py | 0 .../test_delete.py | 41 - .../test_v1beta1_serviceusers_id/test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_delete.py | 41 - .../test_paths/test_v1beta1_users/__init__.py | 0 .../test_paths/test_v1beta1_users/test_get.py | 41 - .../test_v1beta1_users/test_post.py | 43 - .../test_v1beta1_users_id/__init__.py | 0 .../test_v1beta1_users_id/test_delete.py | 41 - .../test_v1beta1_users_id/test_get.py | 41 - .../test_v1beta1_users_id/test_put.py | 43 - .../test_v1beta1_users_id_disable/__init__.py | 0 .../test_post.py | 43 - .../test_v1beta1_users_id_enable/__init__.py | 0 .../test_v1beta1_users_id_enable/test_post.py | 43 - .../test_v1beta1_users_id_groups/__init__.py | 0 .../test_v1beta1_users_id_groups/test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_v1beta1_users_self/__init__.py | 0 .../test_v1beta1_users_self/test_get.py | 41 - .../test_v1beta1_users_self/test_put.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../__init__.py | 0 .../test_get.py | 41 - .../test_post.py | 43 - .../__init__.py | 0 .../test_get.py | 41 - .../test_well_known_jwks_json/__init__.py | 0 .../test_well_known_jwks_json/test_get.py | 41 - test/test_permission_api.py | 67 + test/test_plan_api.py | 60 + ...eta1_audit_log.py => test_platform_api.py} | 31 +- test/test_policy_api.py | 67 + test/test_preference_api.py | 123 + test/test_project_api.py | 109 + test/test_protobuf_any.py | 53 + .../test_protobuf_null_value.py | 25 +- test/test_relation_api.py | 60 + test/test_resource_api.py | 74 + test/test_role_api.py | 95 + test/test_rpc_status.py | 59 + test/test_service_user_api.py | 109 + test/test_subscription_api.py | 60 + ...on_response.py => test_transaction_api.py} | 31 +- ...user_key_response.py => test_usage_api.py} | 31 +- test/test_user_api.py | 158 + .../test_v1beta1_add_platform_user_request.py | 56 + test/test_v1beta1_audit_log.py | 69 + test/test_v1beta1_audit_log_actor.py | 55 + test/test_v1beta1_audit_log_target.py | 55 + test/test_v1beta1_auth_callback_request.py | 58 + test/test_v1beta1_auth_strategy.py | 54 + test/test_v1beta1_auth_token_request.py | 56 + test/test_v1beta1_auth_token_response.py | 54 + test/test_v1beta1_authenticate_response.py | 55 + ...est_v1beta1_batch_check_permission_body.py | 55 + ..._v1beta1_batch_check_permission_request.py | 57 + ...v1beta1_batch_check_permission_response.py | 59 + ...a1_batch_check_permission_response_pair.py | 56 + test/test_v1beta1_billing_account.py | 71 + ...st_v1beta1_billing_account_request_body.py | 64 + test/test_v1beta1_billing_transaction.py | 61 + ...eta1_check_feature_entitlement_response.py | 53 + ...k_federated_resource_permission_request.py | 58 + ..._federated_resource_permission_response.py | 53 + ...beta1_check_resource_permission_request.py | 57 + ...eta1_check_resource_permission_response.py | 53 + test/test_v1beta1_checkout_feature_body.py | 53 + test/test_v1beta1_checkout_session.py | 61 + ...test_v1beta1_checkout_subscription_body.py | 54 + ...v1beta1_create_billing_account_response.py | 72 + test/test_v1beta1_create_checkout_response.py | 62 + ...create_current_user_preferences_request.py | 57 + ...reate_current_user_preferences_response.py | 62 + test/test_v1beta1_create_feature_request.py | 77 + test/test_v1beta1_create_feature_response.py | 83 + ...beta1_create_group_preferences_response.py | 62 + test/test_v1beta1_create_group_response.py | 72 + ...est_v1beta1_create_meta_schema_response.py | 58 + ...ta1_create_organization_domain_response.py | 60 + ...create_organization_invitation_response.py | 63 + ...reate_organization_preferences_response.py | 62 + ...st_v1beta1_create_organization_response.py | 61 + ...beta1_create_organization_role_response.py | 67 + .../test_v1beta1_create_permission_request.py | 60 + ...test_v1beta1_create_permission_response.py | 63 + test/test_v1beta1_create_plan_request.py | 91 + test/test_v1beta1_create_plan_response.py | 94 + test/test_v1beta1_create_policy_response.py | 61 + ...test_v1beta1_create_preferences_request.py | 57 + ...est_v1beta1_create_preferences_response.py | 62 + ...ta1_create_project_preferences_response.py | 62 + ...1beta1_create_project_resource_response.py | 63 + test/test_v1beta1_create_project_response.py | 60 + test/test_v1beta1_create_relation_response.py | 60 + test/test_v1beta1_create_role_response.py | 67 + ...1beta1_create_service_user_key_response.py | 57 + ...est_v1beta1_create_service_user_request.py | 57 + ...st_v1beta1_create_service_user_response.py | 60 + ...ta1_create_service_user_secret_response.py | 57 + ...1beta1_create_user_preferences_response.py | 62 + test/test_v1beta1_create_user_response.py | 62 + ...t_v1beta1_describe_preferences_response.py | 74 + test/test_v1beta1_domain.py | 59 + test/test_v1beta1_feature.py | 82 + test/test_v1beta1_feature_request_body.py | 76 + ...st_v1beta1_get_billing_account_response.py | 72 + ...st_v1beta1_get_billing_balance_response.py | 56 + .../test_v1beta1_get_current_user_response.py | 70 + test/test_v1beta1_get_feature_response.py | 83 + test/test_v1beta1_get_group_response.py | 72 + test/test_v1beta1_get_jwks_response.py | 64 + test/test_v1beta1_get_meta_schema_response.py | 58 + test/test_v1beta1_get_namespace_response.py | 58 + ...ta1_get_organization_audit_log_response.py | 68 + ...1beta1_get_organization_domain_response.py | 60 + ...a1_get_organization_invitation_response.py | 61 + .../test_v1beta1_get_organization_response.py | 61 + ..._v1beta1_get_organization_role_response.py | 67 + test/test_v1beta1_get_permission_response.py | 61 + test/test_v1beta1_get_plan_response.py | 94 + test/test_v1beta1_get_policy_response.py | 61 + ...t_v1beta1_get_project_resource_response.py | 63 + test/test_v1beta1_get_project_response.py | 60 + test/test_v1beta1_get_relation_response.py | 60 + ...t_v1beta1_get_service_user_key_response.py | 64 + .../test_v1beta1_get_service_user_response.py | 60 + .../test_v1beta1_get_subscription_response.py | 64 + test/test_v1beta1_get_user_response.py | 62 + test/test_v1beta1_group.py | 71 + test/test_v1beta1_group_request_body.py | 56 + test/test_v1beta1_invitation.py | 60 + test/test_v1beta1_json_web_key.py | 61 + test/test_v1beta1_key_credential.py | 56 + ...v1beta1_list_all_organizations_response.py | 63 + test/test_v1beta1_list_all_users_response.py | 65 + ...t_v1beta1_list_auth_strategies_response.py | 57 + ..._v1beta1_list_billing_accounts_response.py | 74 + ...eta1_list_billing_transactions_response.py | 64 + test/test_v1beta1_list_checkouts_response.py | 64 + ...beta1_list_current_user_groups_response.py | 81 + ...urrent_user_groups_response_access_pair.py | 56 + ..._list_current_user_invitations_response.py | 74 + ..._list_current_user_preferences_response.py | 62 + test/test_v1beta1_list_features_response.py | 85 + ...v1beta1_list_group_preferences_response.py | 62 + .../test_v1beta1_list_group_users_response.py | 85 + ...ta1_list_group_users_response_role_pair.py | 70 + test/test_v1beta1_list_groups_response.py | 74 + ...test_v1beta1_list_meta_schemas_response.py | 60 + test/test_v1beta1_list_namespaces_response.py | 60 + ...beta1_list_organization_admins_response.py | 64 + ...1_list_organization_audit_logs_response.py | 70 + ...eta1_list_organization_domains_response.py | 62 + ...beta1_list_organization_groups_response.py | 74 + ..._list_organization_invitations_response.py | 63 + ..._list_organization_preferences_response.py | 62 + ...ta1_list_organization_projects_response.py | 62 + ...1beta1_list_organization_roles_response.py | 69 + ...ist_organization_service_users_response.py | 62 + ...1beta1_list_organization_users_response.py | 85 + ...t_organization_users_response_role_pair.py | 70 + ..._organizations_by_current_user_response.py | 74 + ...ta1_list_organizations_by_user_response.py | 74 + ...est_v1beta1_list_organizations_response.py | 63 + .../test_v1beta1_list_permissions_response.py | 63 + test/test_v1beta1_list_plans_response.py | 96 + test/test_v1beta1_list_policies_response.py | 63 + .../test_v1beta1_list_preferences_response.py | 62 + ...st_v1beta1_list_project_admins_response.py | 64 + ...st_v1beta1_list_project_groups_response.py | 95 + ..._list_project_groups_response_role_pair.py | 70 + ...beta1_list_project_preferences_response.py | 62 + ...v1beta1_list_project_resources_response.py | 65 + ...ta1_list_project_service_users_response.py | 83 + ...roject_service_users_response_role_pair.py | 70 + ...est_v1beta1_list_project_users_response.py | 85 + ...1_list_project_users_response_role_pair.py | 70 + ..._list_projects_by_current_user_response.py | 69 + ...ts_by_current_user_response_access_pair.py | 56 + ..._v1beta1_list_projects_by_user_response.py | 62 + test/test_v1beta1_list_projects_response.py | 62 + test/test_v1beta1_list_relations_response.py | 62 + test/test_v1beta1_list_resources_response.py | 65 + test/test_v1beta1_list_roles_response.py | 69 + ...v1beta1_list_service_user_keys_response.py | 60 + ...eta1_list_service_user_secrets_response.py | 59 + ...est_v1beta1_list_service_users_response.py | 62 + ...est_v1beta1_list_subscriptions_response.py | 66 + .../test_v1beta1_list_user_groups_response.py | 74 + ..._v1beta1_list_user_invitations_response.py | 63 + ..._v1beta1_list_user_preferences_response.py | 62 + test/test_v1beta1_list_users_response.py | 65 + test/test_v1beta1_meta_schema.py | 57 + test/test_v1beta1_meta_schema_request_body.py | 56 + test/test_v1beta1_namespace.py | 57 + test/test_v1beta1_organization.py | 60 + .../test_v1beta1_organization_request_body.py | 57 + test/test_v1beta1_permission.py | 60 + test/test_v1beta1_permission_request_body.py | 57 + test/test_v1beta1_plan.py | 93 + test/test_v1beta1_plan_request_body.py | 90 + test/test_v1beta1_policy.py | 60 + test/test_v1beta1_policy_request_body.py | 60 + test/test_v1beta1_preference.py | 59 + test/test_v1beta1_preference_request_body.py | 54 + test/test_v1beta1_preference_trait.py | 69 + test/test_v1beta1_price.py | 67 + test/test_v1beta1_project.py | 59 + test/test_v1beta1_project_request_body.py | 58 + test/test_v1beta1_relation.py | 59 + test/test_v1beta1_relation_request_body.py | 56 + test/test_v1beta1_resource.py | 62 + test/test_v1beta1_resource_request_body.py | 59 + test/test_v1beta1_role.py | 66 + test/test_v1beta1_role_request_body.py | 61 + test/test_v1beta1_secret_credential.py | 56 + test/test_v1beta1_service_user.py | 59 + test/test_v1beta1_service_user_key.py | 57 + .../test_v1beta1_service_user_request_body.py | 54 + test/test_v1beta1_subscription.py | 63 + ...v1beta1_update_billing_account_response.py | 72 + ...st_v1beta1_update_current_user_response.py | 62 + test/test_v1beta1_update_feature_response.py | 83 + test/test_v1beta1_update_group_response.py | 72 + ...est_v1beta1_update_meta_schema_response.py | 58 + ...st_v1beta1_update_organization_response.py | 61 + ...beta1_update_organization_role_response.py | 67 + ...test_v1beta1_update_permission_response.py | 61 + test/test_v1beta1_update_plan_response.py | 94 + test/test_v1beta1_update_policy_response.py | 63 + ...1beta1_update_project_resource_response.py | 63 + test/test_v1beta1_update_project_response.py | 60 + test/test_v1beta1_update_role_response.py | 67 + ...st_v1beta1_update_subscription_response.py | 64 + test/test_v1beta1_update_user_response.py | 62 + test/test_v1beta1_usage.py | 61 + test/test_v1beta1_user.py | 61 + test/test_v1beta1_user_request_body.py | 58 + ...ta1_verify_organization_domain_response.py | 53 + tox.ini | 3 +- 2071 files changed, 109797 insertions(+), 209226 deletions(-) create mode 100644 .github/workflows/python.yml create mode 100644 docs/AuditLogApi.md create mode 100644 docs/AuthnApi.md create mode 100644 docs/AuthzApi.md create mode 100644 docs/BillingAccountAddress.md create mode 100644 docs/BillingAccountBalance.md create mode 100644 docs/BillingApi.md create mode 100644 docs/CheckoutApi.md create mode 100644 docs/EntitlementApi.md create mode 100644 docs/FeatureApi.md create mode 100644 docs/FrontierServiceAddGroupUsersRequest.md create mode 100644 docs/FrontierServiceAddOrganizationUsersRequest.md create mode 100644 docs/FrontierServiceAuthenticate2Request.md create mode 100644 docs/FrontierServiceCheckFeatureEntitlementRequest.md create mode 100644 docs/FrontierServiceCreateBillingAccountRequest.md create mode 100644 docs/FrontierServiceCreateBillingUsageRequest.md create mode 100644 docs/FrontierServiceCreateCheckoutRequest.md create mode 100644 docs/FrontierServiceCreateGroupPreferencesRequest.md create mode 100644 docs/FrontierServiceCreateOrganizationAuditLogsRequest.md create mode 100644 docs/FrontierServiceCreateOrganizationDomainRequest.md create mode 100644 docs/FrontierServiceCreateOrganizationInvitationRequest.md create mode 100644 docs/FrontierServiceCreateServiceUserKeyRequest.md create mode 100644 docs/FrontierServiceUpdateFeatureRequest.md create mode 100644 docs/FrontierServiceUpdatePlanRequest.md create mode 100644 docs/FrontierServiceUpdateSubscriptionRequest.md create mode 100644 docs/GroupApi.md create mode 100644 docs/MetaSchemaApi.md create mode 100644 docs/NamespaceApi.md create mode 100644 docs/OrganizationApi.md create mode 100644 docs/PermissionApi.md create mode 100644 docs/PlanApi.md create mode 100644 docs/PlatformApi.md create mode 100644 docs/PolicyApi.md create mode 100644 docs/PreferenceApi.md create mode 100644 docs/ProjectApi.md create mode 100644 docs/ProtobufAny.md create mode 100644 docs/ProtobufNullValue.md create mode 100644 docs/RelationApi.md create mode 100644 docs/ResourceApi.md create mode 100644 docs/RoleApi.md create mode 100644 docs/RpcStatus.md create mode 100644 docs/ServiceUserApi.md create mode 100644 docs/SubscriptionApi.md create mode 100644 docs/TransactionApi.md create mode 100644 docs/UsageApi.md create mode 100644 docs/UserApi.md create mode 100644 docs/V1beta1AddPlatformUserRequest.md create mode 100644 docs/V1beta1AuditLog.md create mode 100644 docs/V1beta1AuditLogActor.md create mode 100644 docs/V1beta1AuditLogTarget.md create mode 100644 docs/V1beta1AuthCallbackRequest.md create mode 100644 docs/V1beta1AuthStrategy.md create mode 100644 docs/V1beta1AuthTokenRequest.md create mode 100644 docs/V1beta1AuthTokenResponse.md create mode 100644 docs/V1beta1AuthenticateResponse.md create mode 100644 docs/V1beta1BatchCheckPermissionBody.md create mode 100644 docs/V1beta1BatchCheckPermissionRequest.md create mode 100644 docs/V1beta1BatchCheckPermissionResponse.md create mode 100644 docs/V1beta1BatchCheckPermissionResponsePair.md create mode 100644 docs/V1beta1BillingAccount.md create mode 100644 docs/V1beta1BillingAccountRequestBody.md create mode 100644 docs/V1beta1BillingTransaction.md create mode 100644 docs/V1beta1CheckFeatureEntitlementResponse.md create mode 100644 docs/V1beta1CheckFederatedResourcePermissionRequest.md create mode 100644 docs/V1beta1CheckFederatedResourcePermissionResponse.md create mode 100644 docs/V1beta1CheckResourcePermissionRequest.md create mode 100644 docs/V1beta1CheckResourcePermissionResponse.md create mode 100644 docs/V1beta1CheckoutFeatureBody.md create mode 100644 docs/V1beta1CheckoutSession.md create mode 100644 docs/V1beta1CheckoutSubscriptionBody.md create mode 100644 docs/V1beta1CreateBillingAccountResponse.md create mode 100644 docs/V1beta1CreateCheckoutResponse.md create mode 100644 docs/V1beta1CreateCurrentUserPreferencesRequest.md create mode 100644 docs/V1beta1CreateCurrentUserPreferencesResponse.md create mode 100644 docs/V1beta1CreateFeatureRequest.md create mode 100644 docs/V1beta1CreateFeatureResponse.md create mode 100644 docs/V1beta1CreateGroupPreferencesResponse.md create mode 100644 docs/V1beta1CreateGroupResponse.md create mode 100644 docs/V1beta1CreateMetaSchemaResponse.md create mode 100644 docs/V1beta1CreateOrganizationDomainResponse.md create mode 100644 docs/V1beta1CreateOrganizationInvitationResponse.md create mode 100644 docs/V1beta1CreateOrganizationPreferencesResponse.md create mode 100644 docs/V1beta1CreateOrganizationResponse.md create mode 100644 docs/V1beta1CreateOrganizationRoleResponse.md create mode 100644 docs/V1beta1CreatePermissionRequest.md create mode 100644 docs/V1beta1CreatePermissionResponse.md create mode 100644 docs/V1beta1CreatePlanRequest.md create mode 100644 docs/V1beta1CreatePlanResponse.md create mode 100644 docs/V1beta1CreatePolicyResponse.md create mode 100644 docs/V1beta1CreatePreferencesRequest.md create mode 100644 docs/V1beta1CreatePreferencesResponse.md create mode 100644 docs/V1beta1CreateProjectPreferencesResponse.md create mode 100644 docs/V1beta1CreateProjectResourceResponse.md create mode 100644 docs/V1beta1CreateProjectResponse.md create mode 100644 docs/V1beta1CreateRelationResponse.md create mode 100644 docs/V1beta1CreateRoleResponse.md create mode 100644 docs/V1beta1CreateServiceUserKeyResponse.md create mode 100644 docs/V1beta1CreateServiceUserRequest.md create mode 100644 docs/V1beta1CreateServiceUserResponse.md create mode 100644 docs/V1beta1CreateServiceUserSecretResponse.md create mode 100644 docs/V1beta1CreateUserPreferencesResponse.md create mode 100644 docs/V1beta1CreateUserResponse.md create mode 100644 docs/V1beta1DescribePreferencesResponse.md create mode 100644 docs/V1beta1Domain.md create mode 100644 docs/V1beta1Feature.md create mode 100644 docs/V1beta1FeatureRequestBody.md create mode 100644 docs/V1beta1GetBillingAccountResponse.md create mode 100644 docs/V1beta1GetBillingBalanceResponse.md create mode 100644 docs/V1beta1GetCurrentUserResponse.md create mode 100644 docs/V1beta1GetFeatureResponse.md create mode 100644 docs/V1beta1GetGroupResponse.md create mode 100644 docs/V1beta1GetJWKsResponse.md create mode 100644 docs/V1beta1GetMetaSchemaResponse.md create mode 100644 docs/V1beta1GetNamespaceResponse.md create mode 100644 docs/V1beta1GetOrganizationAuditLogResponse.md create mode 100644 docs/V1beta1GetOrganizationDomainResponse.md create mode 100644 docs/V1beta1GetOrganizationInvitationResponse.md create mode 100644 docs/V1beta1GetOrganizationResponse.md create mode 100644 docs/V1beta1GetOrganizationRoleResponse.md create mode 100644 docs/V1beta1GetPermissionResponse.md create mode 100644 docs/V1beta1GetPlanResponse.md create mode 100644 docs/V1beta1GetPolicyResponse.md create mode 100644 docs/V1beta1GetProjectResourceResponse.md create mode 100644 docs/V1beta1GetProjectResponse.md create mode 100644 docs/V1beta1GetRelationResponse.md create mode 100644 docs/V1beta1GetServiceUserKeyResponse.md create mode 100644 docs/V1beta1GetServiceUserResponse.md create mode 100644 docs/V1beta1GetSubscriptionResponse.md create mode 100644 docs/V1beta1GetUserResponse.md create mode 100644 docs/V1beta1Group.md create mode 100644 docs/V1beta1GroupRequestBody.md create mode 100644 docs/V1beta1Invitation.md create mode 100644 docs/V1beta1JSONWebKey.md create mode 100644 docs/V1beta1KeyCredential.md create mode 100644 docs/V1beta1ListAllOrganizationsResponse.md create mode 100644 docs/V1beta1ListAllUsersResponse.md create mode 100644 docs/V1beta1ListAuthStrategiesResponse.md create mode 100644 docs/V1beta1ListBillingAccountsResponse.md create mode 100644 docs/V1beta1ListBillingTransactionsResponse.md create mode 100644 docs/V1beta1ListCheckoutsResponse.md create mode 100644 docs/V1beta1ListCurrentUserGroupsResponse.md create mode 100644 docs/V1beta1ListCurrentUserGroupsResponseAccessPair.md create mode 100644 docs/V1beta1ListCurrentUserInvitationsResponse.md create mode 100644 docs/V1beta1ListCurrentUserPreferencesResponse.md create mode 100644 docs/V1beta1ListFeaturesResponse.md create mode 100644 docs/V1beta1ListGroupPreferencesResponse.md create mode 100644 docs/V1beta1ListGroupUsersResponse.md create mode 100644 docs/V1beta1ListGroupUsersResponseRolePair.md create mode 100644 docs/V1beta1ListGroupsResponse.md create mode 100644 docs/V1beta1ListMetaSchemasResponse.md create mode 100644 docs/V1beta1ListNamespacesResponse.md create mode 100644 docs/V1beta1ListOrganizationAdminsResponse.md create mode 100644 docs/V1beta1ListOrganizationAuditLogsResponse.md create mode 100644 docs/V1beta1ListOrganizationDomainsResponse.md create mode 100644 docs/V1beta1ListOrganizationGroupsResponse.md create mode 100644 docs/V1beta1ListOrganizationInvitationsResponse.md create mode 100644 docs/V1beta1ListOrganizationPreferencesResponse.md create mode 100644 docs/V1beta1ListOrganizationProjectsResponse.md create mode 100644 docs/V1beta1ListOrganizationRolesResponse.md create mode 100644 docs/V1beta1ListOrganizationServiceUsersResponse.md create mode 100644 docs/V1beta1ListOrganizationUsersResponse.md create mode 100644 docs/V1beta1ListOrganizationUsersResponseRolePair.md create mode 100644 docs/V1beta1ListOrganizationsByCurrentUserResponse.md create mode 100644 docs/V1beta1ListOrganizationsByUserResponse.md create mode 100644 docs/V1beta1ListOrganizationsResponse.md create mode 100644 docs/V1beta1ListPermissionsResponse.md create mode 100644 docs/V1beta1ListPlansResponse.md create mode 100644 docs/V1beta1ListPoliciesResponse.md create mode 100644 docs/V1beta1ListPreferencesResponse.md create mode 100644 docs/V1beta1ListProjectAdminsResponse.md create mode 100644 docs/V1beta1ListProjectGroupsResponse.md create mode 100644 docs/V1beta1ListProjectGroupsResponseRolePair.md create mode 100644 docs/V1beta1ListProjectPreferencesResponse.md create mode 100644 docs/V1beta1ListProjectResourcesResponse.md create mode 100644 docs/V1beta1ListProjectServiceUsersResponse.md create mode 100644 docs/V1beta1ListProjectServiceUsersResponseRolePair.md create mode 100644 docs/V1beta1ListProjectUsersResponse.md create mode 100644 docs/V1beta1ListProjectUsersResponseRolePair.md create mode 100644 docs/V1beta1ListProjectsByCurrentUserResponse.md create mode 100644 docs/V1beta1ListProjectsByCurrentUserResponseAccessPair.md create mode 100644 docs/V1beta1ListProjectsByUserResponse.md create mode 100644 docs/V1beta1ListProjectsResponse.md create mode 100644 docs/V1beta1ListRelationsResponse.md create mode 100644 docs/V1beta1ListResourcesResponse.md create mode 100644 docs/V1beta1ListRolesResponse.md create mode 100644 docs/V1beta1ListServiceUserKeysResponse.md create mode 100644 docs/V1beta1ListServiceUserSecretsResponse.md create mode 100644 docs/V1beta1ListServiceUsersResponse.md create mode 100644 docs/V1beta1ListSubscriptionsResponse.md create mode 100644 docs/V1beta1ListUserGroupsResponse.md create mode 100644 docs/V1beta1ListUserInvitationsResponse.md create mode 100644 docs/V1beta1ListUserPreferencesResponse.md create mode 100644 docs/V1beta1ListUsersResponse.md create mode 100644 docs/V1beta1MetaSchema.md create mode 100644 docs/V1beta1MetaSchemaRequestBody.md create mode 100644 docs/V1beta1Namespace.md create mode 100644 docs/V1beta1Organization.md create mode 100644 docs/V1beta1OrganizationRequestBody.md create mode 100644 docs/V1beta1Permission.md create mode 100644 docs/V1beta1PermissionRequestBody.md create mode 100644 docs/V1beta1Plan.md create mode 100644 docs/V1beta1PlanRequestBody.md create mode 100644 docs/V1beta1Policy.md create mode 100644 docs/V1beta1PolicyRequestBody.md create mode 100644 docs/V1beta1Preference.md create mode 100644 docs/V1beta1PreferenceRequestBody.md create mode 100644 docs/V1beta1PreferenceTrait.md create mode 100644 docs/V1beta1Price.md create mode 100644 docs/V1beta1Project.md create mode 100644 docs/V1beta1ProjectRequestBody.md create mode 100644 docs/V1beta1Relation.md create mode 100644 docs/V1beta1RelationRequestBody.md create mode 100644 docs/V1beta1Resource.md create mode 100644 docs/V1beta1ResourceRequestBody.md create mode 100644 docs/V1beta1Role.md create mode 100644 docs/V1beta1RoleRequestBody.md create mode 100644 docs/V1beta1SecretCredential.md create mode 100644 docs/V1beta1ServiceUser.md create mode 100644 docs/V1beta1ServiceUserKey.md create mode 100644 docs/V1beta1ServiceUserRequestBody.md create mode 100644 docs/V1beta1Subscription.md create mode 100644 docs/V1beta1UpdateBillingAccountResponse.md create mode 100644 docs/V1beta1UpdateCurrentUserResponse.md create mode 100644 docs/V1beta1UpdateFeatureResponse.md create mode 100644 docs/V1beta1UpdateGroupResponse.md create mode 100644 docs/V1beta1UpdateMetaSchemaResponse.md create mode 100644 docs/V1beta1UpdateOrganizationResponse.md create mode 100644 docs/V1beta1UpdateOrganizationRoleResponse.md create mode 100644 docs/V1beta1UpdatePermissionResponse.md create mode 100644 docs/V1beta1UpdatePlanResponse.md create mode 100644 docs/V1beta1UpdatePolicyResponse.md create mode 100644 docs/V1beta1UpdateProjectResourceResponse.md create mode 100644 docs/V1beta1UpdateProjectResponse.md create mode 100644 docs/V1beta1UpdateRoleResponse.md create mode 100644 docs/V1beta1UpdateSubscriptionResponse.md create mode 100644 docs/V1beta1UpdateUserResponse.md create mode 100644 docs/V1beta1Usage.md create mode 100644 docs/V1beta1User.md create mode 100644 docs/V1beta1UserRequestBody.md create mode 100644 docs/V1beta1VerifyOrganizationDomainResponse.md delete mode 100644 docs/apis/tags/AuditLogApi.md delete mode 100644 docs/apis/tags/AuthnApi.md delete mode 100644 docs/apis/tags/AuthzApi.md delete mode 100644 docs/apis/tags/GroupApi.md delete mode 100644 docs/apis/tags/MetaSchemaApi.md delete mode 100644 docs/apis/tags/NamespaceApi.md delete mode 100644 docs/apis/tags/OrganizationApi.md delete mode 100644 docs/apis/tags/PermissionApi.md delete mode 100644 docs/apis/tags/PolicyApi.md delete mode 100644 docs/apis/tags/PreferenceApi.md delete mode 100644 docs/apis/tags/ProjectApi.md delete mode 100644 docs/apis/tags/RelationApi.md delete mode 100644 docs/apis/tags/ResourceApi.md delete mode 100644 docs/apis/tags/RoleApi.md delete mode 100644 docs/apis/tags/ServiceUserApi.md delete mode 100644 docs/apis/tags/UserApi.md delete mode 100644 docs/models/ProtobufAny.md delete mode 100644 docs/models/ProtobufNullValue.md delete mode 100644 docs/models/RpcStatus.md delete mode 100644 docs/models/V1beta1AuditLog.md delete mode 100644 docs/models/V1beta1AuditLogActor.md delete mode 100644 docs/models/V1beta1AuditLogTarget.md delete mode 100644 docs/models/V1beta1AuthCallbackRequest.md delete mode 100644 docs/models/V1beta1AuthStrategy.md delete mode 100644 docs/models/V1beta1AuthTokenRequest.md delete mode 100644 docs/models/V1beta1AuthTokenResponse.md delete mode 100644 docs/models/V1beta1AuthenticateResponse.md delete mode 100644 docs/models/V1beta1BatchCheckPermissionBody.md delete mode 100644 docs/models/V1beta1BatchCheckPermissionRequest.md delete mode 100644 docs/models/V1beta1BatchCheckPermissionResponse.md delete mode 100644 docs/models/V1beta1BatchCheckPermissionResponsePair.md delete mode 100644 docs/models/V1beta1CheckResourcePermissionRequest.md delete mode 100644 docs/models/V1beta1CheckResourcePermissionResponse.md delete mode 100644 docs/models/V1beta1CreateCurrentUserPreferencesRequest.md delete mode 100644 docs/models/V1beta1CreateCurrentUserPreferencesResponse.md delete mode 100644 docs/models/V1beta1CreateGroupPreferencesResponse.md delete mode 100644 docs/models/V1beta1CreateGroupResponse.md delete mode 100644 docs/models/V1beta1CreateMetaSchemaResponse.md delete mode 100644 docs/models/V1beta1CreateOrganizationDomainResponse.md delete mode 100644 docs/models/V1beta1CreateOrganizationInvitationResponse.md delete mode 100644 docs/models/V1beta1CreateOrganizationPreferencesResponse.md delete mode 100644 docs/models/V1beta1CreateOrganizationResponse.md delete mode 100644 docs/models/V1beta1CreateOrganizationRoleResponse.md delete mode 100644 docs/models/V1beta1CreatePermissionRequest.md delete mode 100644 docs/models/V1beta1CreatePermissionResponse.md delete mode 100644 docs/models/V1beta1CreatePolicyResponse.md delete mode 100644 docs/models/V1beta1CreatePreferencesRequest.md delete mode 100644 docs/models/V1beta1CreatePreferencesResponse.md delete mode 100644 docs/models/V1beta1CreateProjectPreferencesResponse.md delete mode 100644 docs/models/V1beta1CreateProjectResourceResponse.md delete mode 100644 docs/models/V1beta1CreateProjectResponse.md delete mode 100644 docs/models/V1beta1CreateRelationResponse.md delete mode 100644 docs/models/V1beta1CreateRoleResponse.md delete mode 100644 docs/models/V1beta1CreateServiceUserKeyResponse.md delete mode 100644 docs/models/V1beta1CreateServiceUserRequest.md delete mode 100644 docs/models/V1beta1CreateServiceUserResponse.md delete mode 100644 docs/models/V1beta1CreateServiceUserSecretResponse.md delete mode 100644 docs/models/V1beta1CreateUserPreferencesResponse.md delete mode 100644 docs/models/V1beta1CreateUserResponse.md delete mode 100644 docs/models/V1beta1DescribePreferencesResponse.md delete mode 100644 docs/models/V1beta1Domain.md delete mode 100644 docs/models/V1beta1GetCurrentUserResponse.md delete mode 100644 docs/models/V1beta1GetGroupResponse.md delete mode 100644 docs/models/V1beta1GetJWKsResponse.md delete mode 100644 docs/models/V1beta1GetMetaSchemaResponse.md delete mode 100644 docs/models/V1beta1GetNamespaceResponse.md delete mode 100644 docs/models/V1beta1GetOrganizationAuditLogResponse.md delete mode 100644 docs/models/V1beta1GetOrganizationDomainResponse.md delete mode 100644 docs/models/V1beta1GetOrganizationInvitationResponse.md delete mode 100644 docs/models/V1beta1GetOrganizationResponse.md delete mode 100644 docs/models/V1beta1GetOrganizationRoleResponse.md delete mode 100644 docs/models/V1beta1GetPermissionResponse.md delete mode 100644 docs/models/V1beta1GetPolicyResponse.md delete mode 100644 docs/models/V1beta1GetProjectResourceResponse.md delete mode 100644 docs/models/V1beta1GetProjectResponse.md delete mode 100644 docs/models/V1beta1GetRelationResponse.md delete mode 100644 docs/models/V1beta1GetServiceUserKeyResponse.md delete mode 100644 docs/models/V1beta1GetServiceUserResponse.md delete mode 100644 docs/models/V1beta1GetUserResponse.md delete mode 100644 docs/models/V1beta1Group.md delete mode 100644 docs/models/V1beta1GroupRequestBody.md delete mode 100644 docs/models/V1beta1Invitation.md delete mode 100644 docs/models/V1beta1JSONWebKey.md delete mode 100644 docs/models/V1beta1KeyCredential.md delete mode 100644 docs/models/V1beta1ListAllOrganizationsResponse.md delete mode 100644 docs/models/V1beta1ListAllUsersResponse.md delete mode 100644 docs/models/V1beta1ListAuthStrategiesResponse.md delete mode 100644 docs/models/V1beta1ListCurrentUserGroupsResponse.md delete mode 100644 docs/models/V1beta1ListCurrentUserGroupsResponseAccessPair.md delete mode 100644 docs/models/V1beta1ListCurrentUserPreferencesResponse.md delete mode 100644 docs/models/V1beta1ListGroupPreferencesResponse.md delete mode 100644 docs/models/V1beta1ListGroupUsersResponse.md delete mode 100644 docs/models/V1beta1ListGroupUsersResponseRolePair.md delete mode 100644 docs/models/V1beta1ListGroupsResponse.md delete mode 100644 docs/models/V1beta1ListMetaSchemasResponse.md delete mode 100644 docs/models/V1beta1ListNamespacesResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationAdminsResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationAuditLogsResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationDomainsResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationGroupsResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationInvitationsResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationPreferencesResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationProjectsResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationRolesResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationServiceUsersResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationUsersResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationsByCurrentUserResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationsByUserResponse.md delete mode 100644 docs/models/V1beta1ListOrganizationsResponse.md delete mode 100644 docs/models/V1beta1ListPermissionsResponse.md delete mode 100644 docs/models/V1beta1ListPoliciesResponse.md delete mode 100644 docs/models/V1beta1ListPreferencesResponse.md delete mode 100644 docs/models/V1beta1ListProjectAdminsResponse.md delete mode 100644 docs/models/V1beta1ListProjectPreferencesResponse.md delete mode 100644 docs/models/V1beta1ListProjectResourcesResponse.md delete mode 100644 docs/models/V1beta1ListProjectServiceUsersResponse.md delete mode 100644 docs/models/V1beta1ListProjectServiceUsersResponseRolePair.md delete mode 100644 docs/models/V1beta1ListProjectUsersResponse.md delete mode 100644 docs/models/V1beta1ListProjectUsersResponseRolePair.md delete mode 100644 docs/models/V1beta1ListProjectsByCurrentUserResponse.md delete mode 100644 docs/models/V1beta1ListProjectsByCurrentUserResponseAccessPair.md delete mode 100644 docs/models/V1beta1ListProjectsByUserResponse.md delete mode 100644 docs/models/V1beta1ListProjectsResponse.md delete mode 100644 docs/models/V1beta1ListRelationsResponse.md delete mode 100644 docs/models/V1beta1ListResourcesResponse.md delete mode 100644 docs/models/V1beta1ListRolesResponse.md delete mode 100644 docs/models/V1beta1ListServiceUserKeysResponse.md delete mode 100644 docs/models/V1beta1ListServiceUserSecretsResponse.md delete mode 100644 docs/models/V1beta1ListServiceUsersResponse.md delete mode 100644 docs/models/V1beta1ListUserGroupsResponse.md delete mode 100644 docs/models/V1beta1ListUserInvitationsResponse.md delete mode 100644 docs/models/V1beta1ListUserPreferencesResponse.md delete mode 100644 docs/models/V1beta1ListUsersResponse.md delete mode 100644 docs/models/V1beta1MetaSchema.md delete mode 100644 docs/models/V1beta1MetaSchemaRequestBody.md delete mode 100644 docs/models/V1beta1Namespace.md delete mode 100644 docs/models/V1beta1Organization.md delete mode 100644 docs/models/V1beta1OrganizationRequestBody.md delete mode 100644 docs/models/V1beta1Permission.md delete mode 100644 docs/models/V1beta1PermissionRequestBody.md delete mode 100644 docs/models/V1beta1Policy.md delete mode 100644 docs/models/V1beta1PolicyRequestBody.md delete mode 100644 docs/models/V1beta1Preference.md delete mode 100644 docs/models/V1beta1PreferenceRequestBody.md delete mode 100644 docs/models/V1beta1PreferenceTrait.md delete mode 100644 docs/models/V1beta1Project.md delete mode 100644 docs/models/V1beta1ProjectRequestBody.md delete mode 100644 docs/models/V1beta1Relation.md delete mode 100644 docs/models/V1beta1RelationRequestBody.md delete mode 100644 docs/models/V1beta1Resource.md delete mode 100644 docs/models/V1beta1ResourceRequestBody.md delete mode 100644 docs/models/V1beta1Role.md delete mode 100644 docs/models/V1beta1RoleRequestBody.md delete mode 100644 docs/models/V1beta1SecretCredential.md delete mode 100644 docs/models/V1beta1ServiceUser.md delete mode 100644 docs/models/V1beta1ServiceUserKey.md delete mode 100644 docs/models/V1beta1ServiceUserRequestBody.md delete mode 100644 docs/models/V1beta1UpdateCurrentUserResponse.md delete mode 100644 docs/models/V1beta1UpdateGroupResponse.md delete mode 100644 docs/models/V1beta1UpdateMetaSchemaResponse.md delete mode 100644 docs/models/V1beta1UpdateOrganizationResponse.md delete mode 100644 docs/models/V1beta1UpdateOrganizationRoleResponse.md delete mode 100644 docs/models/V1beta1UpdatePermissionResponse.md delete mode 100644 docs/models/V1beta1UpdatePolicyResponse.md delete mode 100644 docs/models/V1beta1UpdateProjectResourceResponse.md delete mode 100644 docs/models/V1beta1UpdateProjectResponse.md delete mode 100644 docs/models/V1beta1UpdateRoleResponse.md delete mode 100644 docs/models/V1beta1UpdateUserResponse.md delete mode 100644 docs/models/V1beta1User.md delete mode 100644 docs/models/V1beta1UserRequestBody.md delete mode 100644 docs/models/V1beta1VerifyOrganizationDomainResponse.md create mode 100644 frontier_api/api/__init__.py create mode 100644 frontier_api/api/audit_log_api.py create mode 100644 frontier_api/api/authn_api.py create mode 100644 frontier_api/api/authz_api.py create mode 100644 frontier_api/api/billing_api.py create mode 100644 frontier_api/api/checkout_api.py create mode 100644 frontier_api/api/entitlement_api.py create mode 100644 frontier_api/api/feature_api.py create mode 100644 frontier_api/api/group_api.py create mode 100644 frontier_api/api/meta_schema_api.py create mode 100644 frontier_api/api/namespace_api.py create mode 100644 frontier_api/api/organization_api.py create mode 100644 frontier_api/api/permission_api.py create mode 100644 frontier_api/api/plan_api.py create mode 100644 frontier_api/api/platform_api.py create mode 100644 frontier_api/api/policy_api.py create mode 100644 frontier_api/api/preference_api.py create mode 100644 frontier_api/api/project_api.py create mode 100644 frontier_api/api/relation_api.py create mode 100644 frontier_api/api/resource_api.py create mode 100644 frontier_api/api/role_api.py create mode 100644 frontier_api/api/service_user_api.py create mode 100644 frontier_api/api/subscription_api.py create mode 100644 frontier_api/api/transaction_api.py create mode 100644 frontier_api/api/usage_api.py create mode 100644 frontier_api/api/user_api.py create mode 100644 frontier_api/api_response.py delete mode 100644 frontier_api/apis/__init__.py delete mode 100644 frontier_api/apis/path_to_api.py delete mode 100644 frontier_api/apis/paths/__init__.py delete mode 100644 frontier_api/apis/paths/v1beta1_admin_groups.py delete mode 100644 frontier_api/apis/paths/v1beta1_admin_organizations.py delete mode 100644 frontier_api/apis/paths/v1beta1_admin_projects.py delete mode 100644 frontier_api/apis/paths/v1beta1_admin_relations.py delete mode 100644 frontier_api/apis/paths/v1beta1_admin_resources.py delete mode 100644 frontier_api/apis/paths/v1beta1_admin_users.py delete mode 100644 frontier_api/apis/paths/v1beta1_auth.py delete mode 100644 frontier_api/apis/paths/v1beta1_auth_callback.py delete mode 100644 frontier_api/apis/paths/v1beta1_auth_jwks.py delete mode 100644 frontier_api/apis/paths/v1beta1_auth_logout.py delete mode 100644 frontier_api/apis/paths/v1beta1_auth_register_strategy_name.py delete mode 100644 frontier_api/apis/paths/v1beta1_auth_token.py delete mode 100644 frontier_api/apis/paths/v1beta1_batchcheck.py delete mode 100644 frontier_api/apis/paths/v1beta1_check.py delete mode 100644 frontier_api/apis/paths/v1beta1_groups_id_preferences.py delete mode 100644 frontier_api/apis/paths/v1beta1_meta_schemas.py delete mode 100644 frontier_api/apis/paths/v1beta1_meta_schemas_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_namespaces.py delete mode 100644 frontier_api/apis/paths/v1beta1_namespaces_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs.py delete mode 100644 frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_admins.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_disable.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_enable.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_preferences.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_projects.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_serviceusers.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_users.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_id_users_user_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_domains.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id_verify.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_groups.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_disable.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_enable.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users_user_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_invitations.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id_accept.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_join.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_roles.py delete mode 100644 frontier_api/apis/paths/v1beta1_organizations_org_id_roles_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_permissions.py delete mode 100644 frontier_api/apis/paths/v1beta1_permissions_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_policies.py delete mode 100644 frontier_api/apis/paths/v1beta1_policies_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_preferences.py delete mode 100644 frontier_api/apis/paths/v1beta1_preferences_traits.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id_admins.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id_disable.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id_enable.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id_preferences.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id_serviceusers.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_id_users.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_project_id_resources.py delete mode 100644 frontier_api/apis/paths/v1beta1_projects_project_id_resources_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_relations.py delete mode 100644 frontier_api/apis/paths/v1beta1_relations_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_relations_relation_object_object_subject_subject.py delete mode 100644 frontier_api/apis/paths/v1beta1_roles.py delete mode 100644 frontier_api/apis/paths/v1beta1_roles_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_serviceusers.py delete mode 100644 frontier_api/apis/paths/v1beta1_serviceusers_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_serviceusers_id_keys.py delete mode 100644 frontier_api/apis/paths/v1beta1_serviceusers_id_keys_key_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_serviceusers_id_secrets.py delete mode 100644 frontier_api/apis/paths/v1beta1_serviceusers_id_secrets_secret_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_users.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_disable.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_enable.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_groups.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_invitations.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_organizations.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_preferences.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_id_projects.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_self.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_self_groups.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_self_organizations.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_self_preferences.py delete mode 100644 frontier_api/apis/paths/v1beta1_users_self_projects.py delete mode 100644 frontier_api/apis/paths/well_known_jwks_json.py delete mode 100644 frontier_api/apis/tag_to_api.py delete mode 100644 frontier_api/apis/tags/__init__.py delete mode 100644 frontier_api/apis/tags/audit_log_api.py delete mode 100644 frontier_api/apis/tags/authn_api.py delete mode 100644 frontier_api/apis/tags/authz_api.py delete mode 100644 frontier_api/apis/tags/group_api.py delete mode 100644 frontier_api/apis/tags/meta_schema_api.py delete mode 100644 frontier_api/apis/tags/namespace_api.py delete mode 100644 frontier_api/apis/tags/organization_api.py delete mode 100644 frontier_api/apis/tags/permission_api.py delete mode 100644 frontier_api/apis/tags/policy_api.py delete mode 100644 frontier_api/apis/tags/preference_api.py delete mode 100644 frontier_api/apis/tags/project_api.py delete mode 100644 frontier_api/apis/tags/relation_api.py delete mode 100644 frontier_api/apis/tags/resource_api.py delete mode 100644 frontier_api/apis/tags/role_api.py delete mode 100644 frontier_api/apis/tags/service_user_api.py delete mode 100644 frontier_api/apis/tags/user_api.py delete mode 100644 frontier_api/model/__init__.py delete mode 100644 frontier_api/model/protobuf_any.py delete mode 100644 frontier_api/model/protobuf_any.pyi delete mode 100644 frontier_api/model/protobuf_null_value.py delete mode 100644 frontier_api/model/rpc_status.py delete mode 100644 frontier_api/model/rpc_status.pyi delete mode 100644 frontier_api/model/v1beta1_audit_log.py delete mode 100644 frontier_api/model/v1beta1_audit_log.pyi delete mode 100644 frontier_api/model/v1beta1_audit_log_actor.py delete mode 100644 frontier_api/model/v1beta1_audit_log_actor.pyi delete mode 100644 frontier_api/model/v1beta1_audit_log_target.py delete mode 100644 frontier_api/model/v1beta1_audit_log_target.pyi delete mode 100644 frontier_api/model/v1beta1_auth_callback_request.py delete mode 100644 frontier_api/model/v1beta1_auth_callback_request.pyi delete mode 100644 frontier_api/model/v1beta1_auth_strategy.py delete mode 100644 frontier_api/model/v1beta1_auth_strategy.pyi delete mode 100644 frontier_api/model/v1beta1_auth_token_request.py delete mode 100644 frontier_api/model/v1beta1_auth_token_request.pyi delete mode 100644 frontier_api/model/v1beta1_auth_token_response.py delete mode 100644 frontier_api/model/v1beta1_auth_token_response.pyi delete mode 100644 frontier_api/model/v1beta1_authenticate_response.py delete mode 100644 frontier_api/model/v1beta1_authenticate_response.pyi delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_body.py delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_body.pyi delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_request.py delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_request.pyi delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_response.py delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_response.pyi delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_response_pair.py delete mode 100644 frontier_api/model/v1beta1_batch_check_permission_response_pair.pyi delete mode 100644 frontier_api/model/v1beta1_check_resource_permission_request.py delete mode 100644 frontier_api/model/v1beta1_check_resource_permission_request.pyi delete mode 100644 frontier_api/model/v1beta1_check_resource_permission_response.py delete mode 100644 frontier_api/model/v1beta1_check_resource_permission_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_current_user_preferences_request.py delete mode 100644 frontier_api/model/v1beta1_create_current_user_preferences_request.pyi delete mode 100644 frontier_api/model/v1beta1_create_current_user_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_create_current_user_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_group_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_create_group_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_group_response.py delete mode 100644 frontier_api/model/v1beta1_create_group_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_meta_schema_response.py delete mode 100644 frontier_api/model/v1beta1_create_meta_schema_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_organization_domain_response.py delete mode 100644 frontier_api/model/v1beta1_create_organization_domain_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_organization_invitation_response.py delete mode 100644 frontier_api/model/v1beta1_create_organization_invitation_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_organization_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_create_organization_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_organization_response.py delete mode 100644 frontier_api/model/v1beta1_create_organization_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_organization_role_response.py delete mode 100644 frontier_api/model/v1beta1_create_organization_role_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_permission_request.py delete mode 100644 frontier_api/model/v1beta1_create_permission_request.pyi delete mode 100644 frontier_api/model/v1beta1_create_permission_response.py delete mode 100644 frontier_api/model/v1beta1_create_permission_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_policy_response.py delete mode 100644 frontier_api/model/v1beta1_create_policy_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_preferences_request.py delete mode 100644 frontier_api/model/v1beta1_create_preferences_request.pyi delete mode 100644 frontier_api/model/v1beta1_create_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_create_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_project_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_create_project_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_project_resource_response.py delete mode 100644 frontier_api/model/v1beta1_create_project_resource_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_project_response.py delete mode 100644 frontier_api/model/v1beta1_create_project_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_relation_response.py delete mode 100644 frontier_api/model/v1beta1_create_relation_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_role_response.py delete mode 100644 frontier_api/model/v1beta1_create_role_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_service_user_key_response.py delete mode 100644 frontier_api/model/v1beta1_create_service_user_key_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_service_user_request.py delete mode 100644 frontier_api/model/v1beta1_create_service_user_request.pyi delete mode 100644 frontier_api/model/v1beta1_create_service_user_response.py delete mode 100644 frontier_api/model/v1beta1_create_service_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_service_user_secret_response.py delete mode 100644 frontier_api/model/v1beta1_create_service_user_secret_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_user_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_create_user_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_create_user_response.py delete mode 100644 frontier_api/model/v1beta1_create_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_describe_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_describe_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_domain.py delete mode 100644 frontier_api/model/v1beta1_domain.pyi delete mode 100644 frontier_api/model/v1beta1_get_current_user_response.py delete mode 100644 frontier_api/model/v1beta1_get_current_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_group_response.py delete mode 100644 frontier_api/model/v1beta1_get_group_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_jwks_response.py delete mode 100644 frontier_api/model/v1beta1_get_jwks_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_meta_schema_response.py delete mode 100644 frontier_api/model/v1beta1_get_meta_schema_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_namespace_response.py delete mode 100644 frontier_api/model/v1beta1_get_namespace_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_organization_audit_log_response.py delete mode 100644 frontier_api/model/v1beta1_get_organization_audit_log_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_organization_domain_response.py delete mode 100644 frontier_api/model/v1beta1_get_organization_domain_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_organization_invitation_response.py delete mode 100644 frontier_api/model/v1beta1_get_organization_invitation_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_organization_response.py delete mode 100644 frontier_api/model/v1beta1_get_organization_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_organization_role_response.py delete mode 100644 frontier_api/model/v1beta1_get_organization_role_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_permission_response.py delete mode 100644 frontier_api/model/v1beta1_get_permission_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_policy_response.py delete mode 100644 frontier_api/model/v1beta1_get_policy_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_project_resource_response.py delete mode 100644 frontier_api/model/v1beta1_get_project_resource_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_project_response.py delete mode 100644 frontier_api/model/v1beta1_get_project_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_relation_response.py delete mode 100644 frontier_api/model/v1beta1_get_relation_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_service_user_key_response.py delete mode 100644 frontier_api/model/v1beta1_get_service_user_key_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_service_user_response.py delete mode 100644 frontier_api/model/v1beta1_get_service_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_get_user_response.py delete mode 100644 frontier_api/model/v1beta1_get_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_group.py delete mode 100644 frontier_api/model/v1beta1_group.pyi delete mode 100644 frontier_api/model/v1beta1_group_request_body.py delete mode 100644 frontier_api/model/v1beta1_group_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_invitation.py delete mode 100644 frontier_api/model/v1beta1_invitation.pyi delete mode 100644 frontier_api/model/v1beta1_json_web_key.py delete mode 100644 frontier_api/model/v1beta1_json_web_key.pyi delete mode 100644 frontier_api/model/v1beta1_key_credential.py delete mode 100644 frontier_api/model/v1beta1_key_credential.pyi delete mode 100644 frontier_api/model/v1beta1_list_all_organizations_response.py delete mode 100644 frontier_api/model/v1beta1_list_all_organizations_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_all_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_all_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_auth_strategies_response.py delete mode 100644 frontier_api/model/v1beta1_list_auth_strategies_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_current_user_groups_response.py delete mode 100644 frontier_api/model/v1beta1_list_current_user_groups_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.py delete mode 100644 frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.pyi delete mode 100644 frontier_api/model/v1beta1_list_current_user_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_list_current_user_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_group_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_list_group_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_group_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_group_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_group_users_response_role_pair.py delete mode 100644 frontier_api/model/v1beta1_list_group_users_response_role_pair.pyi delete mode 100644 frontier_api/model/v1beta1_list_groups_response.py delete mode 100644 frontier_api/model/v1beta1_list_groups_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_meta_schemas_response.py delete mode 100644 frontier_api/model/v1beta1_list_meta_schemas_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_namespaces_response.py delete mode 100644 frontier_api/model/v1beta1_list_namespaces_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_admins_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_admins_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_audit_logs_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_audit_logs_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_domains_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_domains_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_groups_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_groups_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_invitations_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_invitations_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_projects_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_projects_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_roles_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_roles_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_service_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_service_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organization_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_organization_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organizations_by_current_user_response.py delete mode 100644 frontier_api/model/v1beta1_list_organizations_by_current_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organizations_by_user_response.py delete mode 100644 frontier_api/model/v1beta1_list_organizations_by_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_organizations_response.py delete mode 100644 frontier_api/model/v1beta1_list_organizations_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_permissions_response.py delete mode 100644 frontier_api/model/v1beta1_list_permissions_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_policies_response.py delete mode 100644 frontier_api/model/v1beta1_list_policies_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_list_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_admins_response.py delete mode 100644 frontier_api/model/v1beta1_list_project_admins_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_list_project_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_resources_response.py delete mode 100644 frontier_api/model/v1beta1_list_project_resources_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_service_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_project_service_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_service_users_response_role_pair.py delete mode 100644 frontier_api/model/v1beta1_list_project_service_users_response_role_pair.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_project_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_project_users_response_role_pair.py delete mode 100644 frontier_api/model/v1beta1_list_project_users_response_role_pair.pyi delete mode 100644 frontier_api/model/v1beta1_list_projects_by_current_user_response.py delete mode 100644 frontier_api/model/v1beta1_list_projects_by_current_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.py delete mode 100644 frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.pyi delete mode 100644 frontier_api/model/v1beta1_list_projects_by_user_response.py delete mode 100644 frontier_api/model/v1beta1_list_projects_by_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_projects_response.py delete mode 100644 frontier_api/model/v1beta1_list_projects_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_relations_response.py delete mode 100644 frontier_api/model/v1beta1_list_relations_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_resources_response.py delete mode 100644 frontier_api/model/v1beta1_list_resources_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_roles_response.py delete mode 100644 frontier_api/model/v1beta1_list_roles_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_service_user_keys_response.py delete mode 100644 frontier_api/model/v1beta1_list_service_user_keys_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_service_user_secrets_response.py delete mode 100644 frontier_api/model/v1beta1_list_service_user_secrets_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_service_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_service_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_user_groups_response.py delete mode 100644 frontier_api/model/v1beta1_list_user_groups_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_user_invitations_response.py delete mode 100644 frontier_api/model/v1beta1_list_user_invitations_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_user_preferences_response.py delete mode 100644 frontier_api/model/v1beta1_list_user_preferences_response.pyi delete mode 100644 frontier_api/model/v1beta1_list_users_response.py delete mode 100644 frontier_api/model/v1beta1_list_users_response.pyi delete mode 100644 frontier_api/model/v1beta1_meta_schema.py delete mode 100644 frontier_api/model/v1beta1_meta_schema.pyi delete mode 100644 frontier_api/model/v1beta1_meta_schema_request_body.py delete mode 100644 frontier_api/model/v1beta1_meta_schema_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_namespace.py delete mode 100644 frontier_api/model/v1beta1_namespace.pyi delete mode 100644 frontier_api/model/v1beta1_organization.py delete mode 100644 frontier_api/model/v1beta1_organization.pyi delete mode 100644 frontier_api/model/v1beta1_organization_request_body.py delete mode 100644 frontier_api/model/v1beta1_organization_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_permission.py delete mode 100644 frontier_api/model/v1beta1_permission.pyi delete mode 100644 frontier_api/model/v1beta1_permission_request_body.py delete mode 100644 frontier_api/model/v1beta1_permission_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_policy.py delete mode 100644 frontier_api/model/v1beta1_policy.pyi delete mode 100644 frontier_api/model/v1beta1_policy_request_body.py delete mode 100644 frontier_api/model/v1beta1_policy_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_preference.py delete mode 100644 frontier_api/model/v1beta1_preference.pyi delete mode 100644 frontier_api/model/v1beta1_preference_request_body.py delete mode 100644 frontier_api/model/v1beta1_preference_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_preference_trait.py delete mode 100644 frontier_api/model/v1beta1_preference_trait.pyi delete mode 100644 frontier_api/model/v1beta1_project.py delete mode 100644 frontier_api/model/v1beta1_project.pyi delete mode 100644 frontier_api/model/v1beta1_project_request_body.py delete mode 100644 frontier_api/model/v1beta1_project_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_relation.py delete mode 100644 frontier_api/model/v1beta1_relation.pyi delete mode 100644 frontier_api/model/v1beta1_relation_request_body.py delete mode 100644 frontier_api/model/v1beta1_relation_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_resource.py delete mode 100644 frontier_api/model/v1beta1_resource.pyi delete mode 100644 frontier_api/model/v1beta1_resource_request_body.py delete mode 100644 frontier_api/model/v1beta1_resource_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_role.py delete mode 100644 frontier_api/model/v1beta1_role.pyi delete mode 100644 frontier_api/model/v1beta1_role_request_body.py delete mode 100644 frontier_api/model/v1beta1_role_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_secret_credential.py delete mode 100644 frontier_api/model/v1beta1_secret_credential.pyi delete mode 100644 frontier_api/model/v1beta1_service_user.py delete mode 100644 frontier_api/model/v1beta1_service_user.pyi delete mode 100644 frontier_api/model/v1beta1_service_user_key.py delete mode 100644 frontier_api/model/v1beta1_service_user_key.pyi delete mode 100644 frontier_api/model/v1beta1_service_user_request_body.py delete mode 100644 frontier_api/model/v1beta1_service_user_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_update_current_user_response.py delete mode 100644 frontier_api/model/v1beta1_update_current_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_group_response.py delete mode 100644 frontier_api/model/v1beta1_update_group_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_meta_schema_response.py delete mode 100644 frontier_api/model/v1beta1_update_meta_schema_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_organization_response.py delete mode 100644 frontier_api/model/v1beta1_update_organization_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_organization_role_response.py delete mode 100644 frontier_api/model/v1beta1_update_organization_role_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_permission_response.py delete mode 100644 frontier_api/model/v1beta1_update_permission_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_policy_response.py delete mode 100644 frontier_api/model/v1beta1_update_policy_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_project_resource_response.py delete mode 100644 frontier_api/model/v1beta1_update_project_resource_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_project_response.py delete mode 100644 frontier_api/model/v1beta1_update_project_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_role_response.py delete mode 100644 frontier_api/model/v1beta1_update_role_response.pyi delete mode 100644 frontier_api/model/v1beta1_update_user_response.py delete mode 100644 frontier_api/model/v1beta1_update_user_response.pyi delete mode 100644 frontier_api/model/v1beta1_user.py delete mode 100644 frontier_api/model/v1beta1_user.pyi delete mode 100644 frontier_api/model/v1beta1_user_request_body.py delete mode 100644 frontier_api/model/v1beta1_user_request_body.pyi delete mode 100644 frontier_api/model/v1beta1_verify_organization_domain_response.py delete mode 100644 frontier_api/model/v1beta1_verify_organization_domain_response.pyi create mode 100644 frontier_api/models/billing_account_address.py create mode 100644 frontier_api/models/billing_account_balance.py create mode 100644 frontier_api/models/frontier_service_add_group_users_request.py create mode 100644 frontier_api/models/frontier_service_add_organization_users_request.py create mode 100644 frontier_api/models/frontier_service_authenticate2_request.py create mode 100644 frontier_api/models/frontier_service_check_feature_entitlement_request.py create mode 100644 frontier_api/models/frontier_service_create_billing_account_request.py create mode 100644 frontier_api/models/frontier_service_create_billing_usage_request.py create mode 100644 frontier_api/models/frontier_service_create_checkout_request.py create mode 100644 frontier_api/models/frontier_service_create_group_preferences_request.py create mode 100644 frontier_api/models/frontier_service_create_organization_audit_logs_request.py create mode 100644 frontier_api/models/frontier_service_create_organization_domain_request.py create mode 100644 frontier_api/models/frontier_service_create_organization_invitation_request.py create mode 100644 frontier_api/models/frontier_service_create_service_user_key_request.py create mode 100644 frontier_api/models/frontier_service_update_feature_request.py create mode 100644 frontier_api/models/frontier_service_update_plan_request.py create mode 100644 frontier_api/models/frontier_service_update_subscription_request.py create mode 100644 frontier_api/models/protobuf_any.py rename frontier_api/{model/protobuf_null_value.pyi => models/protobuf_null_value.py} (55%) create mode 100644 frontier_api/models/rpc_status.py create mode 100644 frontier_api/models/v1beta1_add_platform_user_request.py create mode 100644 frontier_api/models/v1beta1_audit_log.py create mode 100644 frontier_api/models/v1beta1_audit_log_actor.py create mode 100644 frontier_api/models/v1beta1_audit_log_target.py create mode 100644 frontier_api/models/v1beta1_auth_callback_request.py create mode 100644 frontier_api/models/v1beta1_auth_strategy.py create mode 100644 frontier_api/models/v1beta1_auth_token_request.py create mode 100644 frontier_api/models/v1beta1_auth_token_response.py create mode 100644 frontier_api/models/v1beta1_authenticate_response.py create mode 100644 frontier_api/models/v1beta1_batch_check_permission_body.py create mode 100644 frontier_api/models/v1beta1_batch_check_permission_request.py create mode 100644 frontier_api/models/v1beta1_batch_check_permission_response.py create mode 100644 frontier_api/models/v1beta1_batch_check_permission_response_pair.py create mode 100644 frontier_api/models/v1beta1_billing_account.py create mode 100644 frontier_api/models/v1beta1_billing_account_request_body.py create mode 100644 frontier_api/models/v1beta1_billing_transaction.py create mode 100644 frontier_api/models/v1beta1_check_feature_entitlement_response.py create mode 100644 frontier_api/models/v1beta1_check_federated_resource_permission_request.py create mode 100644 frontier_api/models/v1beta1_check_federated_resource_permission_response.py create mode 100644 frontier_api/models/v1beta1_check_resource_permission_request.py create mode 100644 frontier_api/models/v1beta1_check_resource_permission_response.py create mode 100644 frontier_api/models/v1beta1_checkout_feature_body.py create mode 100644 frontier_api/models/v1beta1_checkout_session.py create mode 100644 frontier_api/models/v1beta1_checkout_subscription_body.py create mode 100644 frontier_api/models/v1beta1_create_billing_account_response.py create mode 100644 frontier_api/models/v1beta1_create_checkout_response.py create mode 100644 frontier_api/models/v1beta1_create_current_user_preferences_request.py create mode 100644 frontier_api/models/v1beta1_create_current_user_preferences_response.py create mode 100644 frontier_api/models/v1beta1_create_feature_request.py create mode 100644 frontier_api/models/v1beta1_create_feature_response.py create mode 100644 frontier_api/models/v1beta1_create_group_preferences_response.py create mode 100644 frontier_api/models/v1beta1_create_group_response.py create mode 100644 frontier_api/models/v1beta1_create_meta_schema_response.py create mode 100644 frontier_api/models/v1beta1_create_organization_domain_response.py create mode 100644 frontier_api/models/v1beta1_create_organization_invitation_response.py create mode 100644 frontier_api/models/v1beta1_create_organization_preferences_response.py create mode 100644 frontier_api/models/v1beta1_create_organization_response.py create mode 100644 frontier_api/models/v1beta1_create_organization_role_response.py create mode 100644 frontier_api/models/v1beta1_create_permission_request.py create mode 100644 frontier_api/models/v1beta1_create_permission_response.py create mode 100644 frontier_api/models/v1beta1_create_plan_request.py create mode 100644 frontier_api/models/v1beta1_create_plan_response.py create mode 100644 frontier_api/models/v1beta1_create_policy_response.py create mode 100644 frontier_api/models/v1beta1_create_preferences_request.py create mode 100644 frontier_api/models/v1beta1_create_preferences_response.py create mode 100644 frontier_api/models/v1beta1_create_project_preferences_response.py create mode 100644 frontier_api/models/v1beta1_create_project_resource_response.py create mode 100644 frontier_api/models/v1beta1_create_project_response.py create mode 100644 frontier_api/models/v1beta1_create_relation_response.py create mode 100644 frontier_api/models/v1beta1_create_role_response.py create mode 100644 frontier_api/models/v1beta1_create_service_user_key_response.py create mode 100644 frontier_api/models/v1beta1_create_service_user_request.py create mode 100644 frontier_api/models/v1beta1_create_service_user_response.py create mode 100644 frontier_api/models/v1beta1_create_service_user_secret_response.py create mode 100644 frontier_api/models/v1beta1_create_user_preferences_response.py create mode 100644 frontier_api/models/v1beta1_create_user_response.py create mode 100644 frontier_api/models/v1beta1_describe_preferences_response.py create mode 100644 frontier_api/models/v1beta1_domain.py create mode 100644 frontier_api/models/v1beta1_feature.py create mode 100644 frontier_api/models/v1beta1_feature_request_body.py create mode 100644 frontier_api/models/v1beta1_get_billing_account_response.py create mode 100644 frontier_api/models/v1beta1_get_billing_balance_response.py create mode 100644 frontier_api/models/v1beta1_get_current_user_response.py create mode 100644 frontier_api/models/v1beta1_get_feature_response.py create mode 100644 frontier_api/models/v1beta1_get_group_response.py create mode 100644 frontier_api/models/v1beta1_get_jwks_response.py create mode 100644 frontier_api/models/v1beta1_get_meta_schema_response.py create mode 100644 frontier_api/models/v1beta1_get_namespace_response.py create mode 100644 frontier_api/models/v1beta1_get_organization_audit_log_response.py create mode 100644 frontier_api/models/v1beta1_get_organization_domain_response.py create mode 100644 frontier_api/models/v1beta1_get_organization_invitation_response.py create mode 100644 frontier_api/models/v1beta1_get_organization_response.py create mode 100644 frontier_api/models/v1beta1_get_organization_role_response.py create mode 100644 frontier_api/models/v1beta1_get_permission_response.py create mode 100644 frontier_api/models/v1beta1_get_plan_response.py create mode 100644 frontier_api/models/v1beta1_get_policy_response.py create mode 100644 frontier_api/models/v1beta1_get_project_resource_response.py create mode 100644 frontier_api/models/v1beta1_get_project_response.py create mode 100644 frontier_api/models/v1beta1_get_relation_response.py create mode 100644 frontier_api/models/v1beta1_get_service_user_key_response.py create mode 100644 frontier_api/models/v1beta1_get_service_user_response.py create mode 100644 frontier_api/models/v1beta1_get_subscription_response.py create mode 100644 frontier_api/models/v1beta1_get_user_response.py create mode 100644 frontier_api/models/v1beta1_group.py create mode 100644 frontier_api/models/v1beta1_group_request_body.py create mode 100644 frontier_api/models/v1beta1_invitation.py create mode 100644 frontier_api/models/v1beta1_json_web_key.py create mode 100644 frontier_api/models/v1beta1_key_credential.py create mode 100644 frontier_api/models/v1beta1_list_all_organizations_response.py create mode 100644 frontier_api/models/v1beta1_list_all_users_response.py create mode 100644 frontier_api/models/v1beta1_list_auth_strategies_response.py create mode 100644 frontier_api/models/v1beta1_list_billing_accounts_response.py create mode 100644 frontier_api/models/v1beta1_list_billing_transactions_response.py create mode 100644 frontier_api/models/v1beta1_list_checkouts_response.py create mode 100644 frontier_api/models/v1beta1_list_current_user_groups_response.py create mode 100644 frontier_api/models/v1beta1_list_current_user_groups_response_access_pair.py create mode 100644 frontier_api/models/v1beta1_list_current_user_invitations_response.py create mode 100644 frontier_api/models/v1beta1_list_current_user_preferences_response.py create mode 100644 frontier_api/models/v1beta1_list_features_response.py create mode 100644 frontier_api/models/v1beta1_list_group_preferences_response.py create mode 100644 frontier_api/models/v1beta1_list_group_users_response.py create mode 100644 frontier_api/models/v1beta1_list_group_users_response_role_pair.py create mode 100644 frontier_api/models/v1beta1_list_groups_response.py create mode 100644 frontier_api/models/v1beta1_list_meta_schemas_response.py create mode 100644 frontier_api/models/v1beta1_list_namespaces_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_admins_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_audit_logs_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_domains_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_groups_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_invitations_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_preferences_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_projects_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_roles_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_service_users_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_users_response.py create mode 100644 frontier_api/models/v1beta1_list_organization_users_response_role_pair.py create mode 100644 frontier_api/models/v1beta1_list_organizations_by_current_user_response.py create mode 100644 frontier_api/models/v1beta1_list_organizations_by_user_response.py create mode 100644 frontier_api/models/v1beta1_list_organizations_response.py create mode 100644 frontier_api/models/v1beta1_list_permissions_response.py create mode 100644 frontier_api/models/v1beta1_list_plans_response.py create mode 100644 frontier_api/models/v1beta1_list_policies_response.py create mode 100644 frontier_api/models/v1beta1_list_preferences_response.py create mode 100644 frontier_api/models/v1beta1_list_project_admins_response.py create mode 100644 frontier_api/models/v1beta1_list_project_groups_response.py create mode 100644 frontier_api/models/v1beta1_list_project_groups_response_role_pair.py create mode 100644 frontier_api/models/v1beta1_list_project_preferences_response.py create mode 100644 frontier_api/models/v1beta1_list_project_resources_response.py create mode 100644 frontier_api/models/v1beta1_list_project_service_users_response.py create mode 100644 frontier_api/models/v1beta1_list_project_service_users_response_role_pair.py create mode 100644 frontier_api/models/v1beta1_list_project_users_response.py create mode 100644 frontier_api/models/v1beta1_list_project_users_response_role_pair.py create mode 100644 frontier_api/models/v1beta1_list_projects_by_current_user_response.py create mode 100644 frontier_api/models/v1beta1_list_projects_by_current_user_response_access_pair.py create mode 100644 frontier_api/models/v1beta1_list_projects_by_user_response.py create mode 100644 frontier_api/models/v1beta1_list_projects_response.py create mode 100644 frontier_api/models/v1beta1_list_relations_response.py create mode 100644 frontier_api/models/v1beta1_list_resources_response.py create mode 100644 frontier_api/models/v1beta1_list_roles_response.py create mode 100644 frontier_api/models/v1beta1_list_service_user_keys_response.py create mode 100644 frontier_api/models/v1beta1_list_service_user_secrets_response.py create mode 100644 frontier_api/models/v1beta1_list_service_users_response.py create mode 100644 frontier_api/models/v1beta1_list_subscriptions_response.py create mode 100644 frontier_api/models/v1beta1_list_user_groups_response.py create mode 100644 frontier_api/models/v1beta1_list_user_invitations_response.py create mode 100644 frontier_api/models/v1beta1_list_user_preferences_response.py create mode 100644 frontier_api/models/v1beta1_list_users_response.py create mode 100644 frontier_api/models/v1beta1_meta_schema.py create mode 100644 frontier_api/models/v1beta1_meta_schema_request_body.py create mode 100644 frontier_api/models/v1beta1_namespace.py create mode 100644 frontier_api/models/v1beta1_organization.py create mode 100644 frontier_api/models/v1beta1_organization_request_body.py create mode 100644 frontier_api/models/v1beta1_permission.py create mode 100644 frontier_api/models/v1beta1_permission_request_body.py create mode 100644 frontier_api/models/v1beta1_plan.py create mode 100644 frontier_api/models/v1beta1_plan_request_body.py create mode 100644 frontier_api/models/v1beta1_policy.py create mode 100644 frontier_api/models/v1beta1_policy_request_body.py create mode 100644 frontier_api/models/v1beta1_preference.py create mode 100644 frontier_api/models/v1beta1_preference_request_body.py create mode 100644 frontier_api/models/v1beta1_preference_trait.py create mode 100644 frontier_api/models/v1beta1_price.py create mode 100644 frontier_api/models/v1beta1_project.py create mode 100644 frontier_api/models/v1beta1_project_request_body.py create mode 100644 frontier_api/models/v1beta1_relation.py create mode 100644 frontier_api/models/v1beta1_relation_request_body.py create mode 100644 frontier_api/models/v1beta1_resource.py create mode 100644 frontier_api/models/v1beta1_resource_request_body.py create mode 100644 frontier_api/models/v1beta1_role.py create mode 100644 frontier_api/models/v1beta1_role_request_body.py create mode 100644 frontier_api/models/v1beta1_secret_credential.py create mode 100644 frontier_api/models/v1beta1_service_user.py create mode 100644 frontier_api/models/v1beta1_service_user_key.py create mode 100644 frontier_api/models/v1beta1_service_user_request_body.py create mode 100644 frontier_api/models/v1beta1_subscription.py create mode 100644 frontier_api/models/v1beta1_update_billing_account_response.py create mode 100644 frontier_api/models/v1beta1_update_current_user_response.py create mode 100644 frontier_api/models/v1beta1_update_feature_response.py create mode 100644 frontier_api/models/v1beta1_update_group_response.py create mode 100644 frontier_api/models/v1beta1_update_meta_schema_response.py create mode 100644 frontier_api/models/v1beta1_update_organization_response.py create mode 100644 frontier_api/models/v1beta1_update_organization_role_response.py create mode 100644 frontier_api/models/v1beta1_update_permission_response.py create mode 100644 frontier_api/models/v1beta1_update_plan_response.py create mode 100644 frontier_api/models/v1beta1_update_policy_response.py create mode 100644 frontier_api/models/v1beta1_update_project_resource_response.py create mode 100644 frontier_api/models/v1beta1_update_project_response.py create mode 100644 frontier_api/models/v1beta1_update_role_response.py create mode 100644 frontier_api/models/v1beta1_update_subscription_response.py create mode 100644 frontier_api/models/v1beta1_update_user_response.py create mode 100644 frontier_api/models/v1beta1_usage.py create mode 100644 frontier_api/models/v1beta1_user.py create mode 100644 frontier_api/models/v1beta1_user_request_body.py create mode 100644 frontier_api/models/v1beta1_verify_organization_domain_response.py delete mode 100644 frontier_api/paths/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_groups/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_groups/get.py delete mode 100644 frontier_api/paths/v1beta1_admin_groups/get.pyi delete mode 100644 frontier_api/paths/v1beta1_admin_organizations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_organizations/get.py delete mode 100644 frontier_api/paths/v1beta1_admin_organizations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_admin_projects/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_projects/get.py delete mode 100644 frontier_api/paths/v1beta1_admin_projects/get.pyi delete mode 100644 frontier_api/paths/v1beta1_admin_relations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_relations/get.py delete mode 100644 frontier_api/paths/v1beta1_admin_relations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_admin_resources/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_resources/get.py delete mode 100644 frontier_api/paths/v1beta1_admin_resources/get.pyi delete mode 100644 frontier_api/paths/v1beta1_admin_users/__init__.py delete mode 100644 frontier_api/paths/v1beta1_admin_users/get.py delete mode 100644 frontier_api/paths/v1beta1_admin_users/get.pyi delete mode 100644 frontier_api/paths/v1beta1_auth/__init__.py delete mode 100644 frontier_api/paths/v1beta1_auth/get.py delete mode 100644 frontier_api/paths/v1beta1_auth/get.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_callback/__init__.py delete mode 100644 frontier_api/paths/v1beta1_auth_callback/get.py delete mode 100644 frontier_api/paths/v1beta1_auth_callback/get.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_callback/post.py delete mode 100644 frontier_api/paths/v1beta1_auth_callback/post.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_jwks/__init__.py delete mode 100644 frontier_api/paths/v1beta1_auth_jwks/get.py delete mode 100644 frontier_api/paths/v1beta1_auth_jwks/get.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_logout/__init__.py delete mode 100644 frontier_api/paths/v1beta1_auth_logout/delete.py delete mode 100644 frontier_api/paths/v1beta1_auth_logout/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_logout/get.py delete mode 100644 frontier_api/paths/v1beta1_auth_logout/get.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_register_strategy_name/__init__.py delete mode 100644 frontier_api/paths/v1beta1_auth_register_strategy_name/get.py delete mode 100644 frontier_api/paths/v1beta1_auth_register_strategy_name/get.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_register_strategy_name/post.py delete mode 100644 frontier_api/paths/v1beta1_auth_register_strategy_name/post.pyi delete mode 100644 frontier_api/paths/v1beta1_auth_token/__init__.py delete mode 100644 frontier_api/paths/v1beta1_auth_token/post.py delete mode 100644 frontier_api/paths/v1beta1_auth_token/post.pyi delete mode 100644 frontier_api/paths/v1beta1_batchcheck/__init__.py delete mode 100644 frontier_api/paths/v1beta1_batchcheck/post.py delete mode 100644 frontier_api/paths/v1beta1_batchcheck/post.pyi delete mode 100644 frontier_api/paths/v1beta1_check/__init__.py delete mode 100644 frontier_api/paths/v1beta1_check/post.py delete mode 100644 frontier_api/paths/v1beta1_check/post.pyi delete mode 100644 frontier_api/paths/v1beta1_groups_id_preferences/__init__.py delete mode 100644 frontier_api/paths/v1beta1_groups_id_preferences/get.py delete mode 100644 frontier_api/paths/v1beta1_groups_id_preferences/get.pyi delete mode 100644 frontier_api/paths/v1beta1_groups_id_preferences/post.py delete mode 100644 frontier_api/paths/v1beta1_groups_id_preferences/post.pyi delete mode 100644 frontier_api/paths/v1beta1_meta_schemas/__init__.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas/get.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas/get.pyi delete mode 100644 frontier_api/paths/v1beta1_meta_schemas/post.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas/post.pyi delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/get.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/put.py delete mode 100644 frontier_api/paths/v1beta1_meta_schemas_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_namespaces/__init__.py delete mode 100644 frontier_api/paths/v1beta1_namespaces/get.py delete mode 100644 frontier_api/paths/v1beta1_namespaces/get.pyi delete mode 100644 frontier_api/paths/v1beta1_namespaces_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_namespaces_id/get.py delete mode 100644 frontier_api/paths/v1beta1_namespaces_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.py delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.py delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.py delete mode 100644 frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id/put.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_admins/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_admins/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_admins/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_disable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_disable/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_disable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_enable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_enable/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_enable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_preferences/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_preferences/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_preferences/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_preferences/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_preferences/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_projects/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_projects/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_projects/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_serviceusers/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_serviceusers/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_serviceusers/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users_user_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_join/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_join/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_join/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles/post.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles/post.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.py delete mode 100644 frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_permissions/__init__.py delete mode 100644 frontier_api/paths/v1beta1_permissions/get.py delete mode 100644 frontier_api/paths/v1beta1_permissions/get.pyi delete mode 100644 frontier_api/paths/v1beta1_permissions/post.py delete mode 100644 frontier_api/paths/v1beta1_permissions/post.pyi delete mode 100644 frontier_api/paths/v1beta1_permissions_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_permissions_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_permissions_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_permissions_id/get.py delete mode 100644 frontier_api/paths/v1beta1_permissions_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_permissions_id/put.py delete mode 100644 frontier_api/paths/v1beta1_permissions_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_policies/__init__.py delete mode 100644 frontier_api/paths/v1beta1_policies/get.py delete mode 100644 frontier_api/paths/v1beta1_policies/get.pyi delete mode 100644 frontier_api/paths/v1beta1_policies/post.py delete mode 100644 frontier_api/paths/v1beta1_policies/post.pyi delete mode 100644 frontier_api/paths/v1beta1_policies_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_policies_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_policies_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_policies_id/get.py delete mode 100644 frontier_api/paths/v1beta1_policies_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_policies_id/put.py delete mode 100644 frontier_api/paths/v1beta1_policies_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_preferences/__init__.py delete mode 100644 frontier_api/paths/v1beta1_preferences/get.py delete mode 100644 frontier_api/paths/v1beta1_preferences/get.pyi delete mode 100644 frontier_api/paths/v1beta1_preferences/post.py delete mode 100644 frontier_api/paths/v1beta1_preferences/post.pyi delete mode 100644 frontier_api/paths/v1beta1_preferences_traits/__init__.py delete mode 100644 frontier_api/paths/v1beta1_preferences_traits/get.py delete mode 100644 frontier_api/paths/v1beta1_preferences_traits/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects/post.py delete mode 100644 frontier_api/paths/v1beta1_projects/post.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_projects_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id/put.py delete mode 100644 frontier_api/paths/v1beta1_projects_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_admins/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_admins/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_admins/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_disable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_disable/post.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_disable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_enable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_enable/post.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_enable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_preferences/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_preferences/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_preferences/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_preferences/post.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_preferences/post.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_serviceusers/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_serviceusers/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_serviceusers/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_id_users/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_users/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_id_users/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources/post.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources/post.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/get.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/put.py delete mode 100644 frontier_api/paths/v1beta1_projects_project_id_resources_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_relations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_relations/post.py delete mode 100644 frontier_api/paths/v1beta1_relations/post.pyi delete mode 100644 frontier_api/paths/v1beta1_relations_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_relations_id/get.py delete mode 100644 frontier_api/paths/v1beta1_relations_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/__init__.py delete mode 100644 frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.py delete mode 100644 frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_roles/__init__.py delete mode 100644 frontier_api/paths/v1beta1_roles/get.py delete mode 100644 frontier_api/paths/v1beta1_roles/get.pyi delete mode 100644 frontier_api/paths/v1beta1_roles/post.py delete mode 100644 frontier_api/paths/v1beta1_roles/post.pyi delete mode 100644 frontier_api/paths/v1beta1_roles_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_roles_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_roles_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_roles_id/put.py delete mode 100644 frontier_api/paths/v1beta1_roles_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers/__init__.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers/get.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers/get.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers/post.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers/post.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id/get.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys/__init__.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys/get.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys/get.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys/post.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys/post.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets/__init__.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets/get.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets/get.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets/post.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets/post.pyi delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_users/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users/get.py delete mode 100644 frontier_api/paths/v1beta1_users/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users/post.py delete mode 100644 frontier_api/paths/v1beta1_users/post.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id/delete.py delete mode 100644 frontier_api/paths/v1beta1_users_id/delete.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id/get.py delete mode 100644 frontier_api/paths/v1beta1_users_id/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id/put.py delete mode 100644 frontier_api/paths/v1beta1_users_id/put.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_disable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_disable/post.py delete mode 100644 frontier_api/paths/v1beta1_users_id_disable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_enable/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_enable/post.py delete mode 100644 frontier_api/paths/v1beta1_users_id_enable/post.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_groups/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_groups/get.py delete mode 100644 frontier_api/paths/v1beta1_users_id_groups/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_invitations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_invitations/get.py delete mode 100644 frontier_api/paths/v1beta1_users_id_invitations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_organizations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_organizations/get.py delete mode 100644 frontier_api/paths/v1beta1_users_id_organizations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_preferences/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_preferences/get.py delete mode 100644 frontier_api/paths/v1beta1_users_id_preferences/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_preferences/post.py delete mode 100644 frontier_api/paths/v1beta1_users_id_preferences/post.pyi delete mode 100644 frontier_api/paths/v1beta1_users_id_projects/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_id_projects/get.py delete mode 100644 frontier_api/paths/v1beta1_users_id_projects/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_self/get.py delete mode 100644 frontier_api/paths/v1beta1_users_self/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self/put.py delete mode 100644 frontier_api/paths/v1beta1_users_self/put.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self_groups/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_self_groups/get.py delete mode 100644 frontier_api/paths/v1beta1_users_self_groups/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self_organizations/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_self_organizations/get.py delete mode 100644 frontier_api/paths/v1beta1_users_self_organizations/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self_preferences/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_self_preferences/get.py delete mode 100644 frontier_api/paths/v1beta1_users_self_preferences/get.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self_preferences/post.py delete mode 100644 frontier_api/paths/v1beta1_users_self_preferences/post.pyi delete mode 100644 frontier_api/paths/v1beta1_users_self_projects/__init__.py delete mode 100644 frontier_api/paths/v1beta1_users_self_projects/get.py delete mode 100644 frontier_api/paths/v1beta1_users_self_projects/get.pyi delete mode 100644 frontier_api/paths/well_known_jwks_json/__init__.py delete mode 100644 frontier_api/paths/well_known_jwks_json/get.py delete mode 100644 frontier_api/paths/well_known_jwks_json/get.pyi rename test/test_models/__init__.py => frontier_api/py.typed (100%) delete mode 100644 frontier_api/schemas.py create mode 100644 temp/list.py create mode 100644 test/test_audit_log_api.py create mode 100644 test/test_authn_api.py create mode 100644 test/test_authz_api.py create mode 100644 test/test_billing_account_address.py create mode 100644 test/test_billing_account_balance.py create mode 100644 test/test_billing_api.py create mode 100644 test/test_checkout_api.py rename test/{test_models/test_v1beta1_batch_check_permission_request.py => test_entitlement_api.py} (60%) create mode 100644 test/test_feature_api.py create mode 100644 test/test_frontier_service_add_group_users_request.py create mode 100644 test/test_frontier_service_add_organization_users_request.py create mode 100644 test/test_frontier_service_authenticate2_request.py create mode 100644 test/test_frontier_service_check_feature_entitlement_request.py create mode 100644 test/test_frontier_service_create_billing_account_request.py create mode 100644 test/test_frontier_service_create_billing_usage_request.py create mode 100644 test/test_frontier_service_create_checkout_request.py create mode 100644 test/test_frontier_service_create_group_preferences_request.py create mode 100644 test/test_frontier_service_create_organization_audit_logs_request.py create mode 100644 test/test_frontier_service_create_organization_domain_request.py create mode 100644 test/test_frontier_service_create_organization_invitation_request.py create mode 100644 test/test_frontier_service_create_service_user_key_request.py create mode 100644 test/test_frontier_service_update_feature_request.py create mode 100644 test/test_frontier_service_update_plan_request.py create mode 100644 test/test_frontier_service_update_subscription_request.py create mode 100644 test/test_group_api.py create mode 100644 test/test_meta_schema_api.py delete mode 100644 test/test_models/test_protobuf_any.py delete mode 100644 test/test_models/test_rpc_status.py delete mode 100644 test/test_models/test_v1beta1_audit_log_actor.py delete mode 100644 test/test_models/test_v1beta1_audit_log_target.py delete mode 100644 test/test_models/test_v1beta1_auth_callback_request.py delete mode 100644 test/test_models/test_v1beta1_auth_strategy.py delete mode 100644 test/test_models/test_v1beta1_auth_token_request.py delete mode 100644 test/test_models/test_v1beta1_auth_token_response.py delete mode 100644 test/test_models/test_v1beta1_authenticate_response.py delete mode 100644 test/test_models/test_v1beta1_batch_check_permission_body.py delete mode 100644 test/test_models/test_v1beta1_batch_check_permission_response.py delete mode 100644 test/test_models/test_v1beta1_batch_check_permission_response_pair.py delete mode 100644 test/test_models/test_v1beta1_check_resource_permission_request.py delete mode 100644 test/test_models/test_v1beta1_create_current_user_preferences_request.py delete mode 100644 test/test_models/test_v1beta1_create_current_user_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_create_group_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_create_group_response.py delete mode 100644 test/test_models/test_v1beta1_create_meta_schema_response.py delete mode 100644 test/test_models/test_v1beta1_create_organization_domain_response.py delete mode 100644 test/test_models/test_v1beta1_create_organization_invitation_response.py delete mode 100644 test/test_models/test_v1beta1_create_organization_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_create_organization_response.py delete mode 100644 test/test_models/test_v1beta1_create_organization_role_response.py delete mode 100644 test/test_models/test_v1beta1_create_permission_request.py delete mode 100644 test/test_models/test_v1beta1_create_permission_response.py delete mode 100644 test/test_models/test_v1beta1_create_policy_response.py delete mode 100644 test/test_models/test_v1beta1_create_preferences_request.py delete mode 100644 test/test_models/test_v1beta1_create_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_create_project_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_create_project_resource_response.py delete mode 100644 test/test_models/test_v1beta1_create_project_response.py delete mode 100644 test/test_models/test_v1beta1_create_relation_response.py delete mode 100644 test/test_models/test_v1beta1_create_role_response.py delete mode 100644 test/test_models/test_v1beta1_create_service_user_request.py delete mode 100644 test/test_models/test_v1beta1_create_service_user_response.py delete mode 100644 test/test_models/test_v1beta1_create_user_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_create_user_response.py delete mode 100644 test/test_models/test_v1beta1_describe_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_domain.py delete mode 100644 test/test_models/test_v1beta1_get_current_user_response.py delete mode 100644 test/test_models/test_v1beta1_get_group_response.py delete mode 100644 test/test_models/test_v1beta1_get_jwks_response.py delete mode 100644 test/test_models/test_v1beta1_get_meta_schema_response.py delete mode 100644 test/test_models/test_v1beta1_get_namespace_response.py delete mode 100644 test/test_models/test_v1beta1_get_organization_audit_log_response.py delete mode 100644 test/test_models/test_v1beta1_get_organization_domain_response.py delete mode 100644 test/test_models/test_v1beta1_get_organization_invitation_response.py delete mode 100644 test/test_models/test_v1beta1_get_organization_response.py delete mode 100644 test/test_models/test_v1beta1_get_organization_role_response.py delete mode 100644 test/test_models/test_v1beta1_get_permission_response.py delete mode 100644 test/test_models/test_v1beta1_get_policy_response.py delete mode 100644 test/test_models/test_v1beta1_get_project_resource_response.py delete mode 100644 test/test_models/test_v1beta1_get_project_response.py delete mode 100644 test/test_models/test_v1beta1_get_relation_response.py delete mode 100644 test/test_models/test_v1beta1_get_service_user_key_response.py delete mode 100644 test/test_models/test_v1beta1_get_service_user_response.py delete mode 100644 test/test_models/test_v1beta1_get_user_response.py delete mode 100644 test/test_models/test_v1beta1_group.py delete mode 100644 test/test_models/test_v1beta1_group_request_body.py delete mode 100644 test/test_models/test_v1beta1_invitation.py delete mode 100644 test/test_models/test_v1beta1_json_web_key.py delete mode 100644 test/test_models/test_v1beta1_key_credential.py delete mode 100644 test/test_models/test_v1beta1_list_all_organizations_response.py delete mode 100644 test/test_models/test_v1beta1_list_all_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_auth_strategies_response.py delete mode 100644 test/test_models/test_v1beta1_list_current_user_groups_response.py delete mode 100644 test/test_models/test_v1beta1_list_current_user_groups_response_access_pair.py delete mode 100644 test/test_models/test_v1beta1_list_current_user_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_list_group_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_list_group_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_group_users_response_role_pair.py delete mode 100644 test/test_models/test_v1beta1_list_groups_response.py delete mode 100644 test/test_models/test_v1beta1_list_meta_schemas_response.py delete mode 100644 test/test_models/test_v1beta1_list_namespaces_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_admins_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_audit_logs_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_domains_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_groups_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_invitations_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_projects_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_roles_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_service_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_organization_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_organizations_by_current_user_response.py delete mode 100644 test/test_models/test_v1beta1_list_organizations_by_user_response.py delete mode 100644 test/test_models/test_v1beta1_list_organizations_response.py delete mode 100644 test/test_models/test_v1beta1_list_permissions_response.py delete mode 100644 test/test_models/test_v1beta1_list_policies_response.py delete mode 100644 test/test_models/test_v1beta1_list_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_list_project_admins_response.py delete mode 100644 test/test_models/test_v1beta1_list_project_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_list_project_resources_response.py delete mode 100644 test/test_models/test_v1beta1_list_project_service_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_project_service_users_response_role_pair.py delete mode 100644 test/test_models/test_v1beta1_list_project_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_project_users_response_role_pair.py delete mode 100644 test/test_models/test_v1beta1_list_projects_by_current_user_response.py delete mode 100644 test/test_models/test_v1beta1_list_projects_by_current_user_response_access_pair.py delete mode 100644 test/test_models/test_v1beta1_list_projects_by_user_response.py delete mode 100644 test/test_models/test_v1beta1_list_projects_response.py delete mode 100644 test/test_models/test_v1beta1_list_relations_response.py delete mode 100644 test/test_models/test_v1beta1_list_resources_response.py delete mode 100644 test/test_models/test_v1beta1_list_roles_response.py delete mode 100644 test/test_models/test_v1beta1_list_service_user_keys_response.py delete mode 100644 test/test_models/test_v1beta1_list_service_user_secrets_response.py delete mode 100644 test/test_models/test_v1beta1_list_service_users_response.py delete mode 100644 test/test_models/test_v1beta1_list_user_groups_response.py delete mode 100644 test/test_models/test_v1beta1_list_user_invitations_response.py delete mode 100644 test/test_models/test_v1beta1_list_user_preferences_response.py delete mode 100644 test/test_models/test_v1beta1_list_users_response.py delete mode 100644 test/test_models/test_v1beta1_meta_schema.py delete mode 100644 test/test_models/test_v1beta1_meta_schema_request_body.py delete mode 100644 test/test_models/test_v1beta1_namespace.py delete mode 100644 test/test_models/test_v1beta1_organization.py delete mode 100644 test/test_models/test_v1beta1_organization_request_body.py delete mode 100644 test/test_models/test_v1beta1_permission.py delete mode 100644 test/test_models/test_v1beta1_permission_request_body.py delete mode 100644 test/test_models/test_v1beta1_policy.py delete mode 100644 test/test_models/test_v1beta1_policy_request_body.py delete mode 100644 test/test_models/test_v1beta1_preference.py delete mode 100644 test/test_models/test_v1beta1_preference_request_body.py delete mode 100644 test/test_models/test_v1beta1_preference_trait.py delete mode 100644 test/test_models/test_v1beta1_project.py delete mode 100644 test/test_models/test_v1beta1_project_request_body.py delete mode 100644 test/test_models/test_v1beta1_relation.py delete mode 100644 test/test_models/test_v1beta1_relation_request_body.py delete mode 100644 test/test_models/test_v1beta1_resource.py delete mode 100644 test/test_models/test_v1beta1_resource_request_body.py delete mode 100644 test/test_models/test_v1beta1_role.py delete mode 100644 test/test_models/test_v1beta1_role_request_body.py delete mode 100644 test/test_models/test_v1beta1_secret_credential.py delete mode 100644 test/test_models/test_v1beta1_service_user.py delete mode 100644 test/test_models/test_v1beta1_service_user_key.py delete mode 100644 test/test_models/test_v1beta1_service_user_request_body.py delete mode 100644 test/test_models/test_v1beta1_update_current_user_response.py delete mode 100644 test/test_models/test_v1beta1_update_group_response.py delete mode 100644 test/test_models/test_v1beta1_update_meta_schema_response.py delete mode 100644 test/test_models/test_v1beta1_update_organization_response.py delete mode 100644 test/test_models/test_v1beta1_update_organization_role_response.py delete mode 100644 test/test_models/test_v1beta1_update_permission_response.py delete mode 100644 test/test_models/test_v1beta1_update_policy_response.py delete mode 100644 test/test_models/test_v1beta1_update_project_resource_response.py delete mode 100644 test/test_models/test_v1beta1_update_project_response.py delete mode 100644 test/test_models/test_v1beta1_update_role_response.py delete mode 100644 test/test_models/test_v1beta1_update_user_response.py delete mode 100644 test/test_models/test_v1beta1_user.py delete mode 100644 test/test_models/test_v1beta1_user_request_body.py delete mode 100644 test/test_models/test_v1beta1_verify_organization_domain_response.py rename test/{test_models/test_v1beta1_create_service_user_secret_response.py => test_namespace_api.py} (55%) create mode 100644 test/test_organization_api.py delete mode 100644 test/test_paths/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_groups/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_groups/test_get.py delete mode 100644 test/test_paths/test_v1beta1_admin_organizations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_organizations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_admin_projects/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_projects/test_get.py delete mode 100644 test/test_paths/test_v1beta1_admin_relations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_relations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_admin_resources/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_resources/test_get.py delete mode 100644 test/test_paths/test_v1beta1_admin_users/__init__.py delete mode 100644 test/test_paths/test_v1beta1_admin_users/test_get.py delete mode 100644 test/test_paths/test_v1beta1_auth/__init__.py delete mode 100644 test/test_paths/test_v1beta1_auth/test_get.py delete mode 100644 test/test_paths/test_v1beta1_auth_callback/__init__.py delete mode 100644 test/test_paths/test_v1beta1_auth_callback/test_get.py delete mode 100644 test/test_paths/test_v1beta1_auth_callback/test_post.py delete mode 100644 test/test_paths/test_v1beta1_auth_jwks/__init__.py delete mode 100644 test/test_paths/test_v1beta1_auth_jwks/test_get.py delete mode 100644 test/test_paths/test_v1beta1_auth_logout/__init__.py delete mode 100644 test/test_paths/test_v1beta1_auth_logout/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_auth_logout/test_get.py delete mode 100644 test/test_paths/test_v1beta1_auth_register_strategy_name/__init__.py delete mode 100644 test/test_paths/test_v1beta1_auth_register_strategy_name/test_get.py delete mode 100644 test/test_paths/test_v1beta1_auth_register_strategy_name/test_post.py delete mode 100644 test/test_paths/test_v1beta1_auth_token/__init__.py delete mode 100644 test/test_paths/test_v1beta1_auth_token/test_post.py delete mode 100644 test/test_paths/test_v1beta1_batchcheck/__init__.py delete mode 100644 test/test_paths/test_v1beta1_batchcheck/test_post.py delete mode 100644 test/test_paths/test_v1beta1_check/__init__.py delete mode 100644 test/test_paths/test_v1beta1_check/test_post.py delete mode 100644 test/test_paths/test_v1beta1_groups_id_preferences/__init__.py delete mode 100644 test/test_paths/test_v1beta1_groups_id_preferences/test_get.py delete mode 100644 test/test_paths/test_v1beta1_groups_id_preferences/test_post.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas/__init__.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas/test_get.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas/test_post.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_meta_schemas_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_namespaces/__init__.py delete mode 100644 test/test_paths/test_v1beta1_namespaces/test_get.py delete mode 100644 test/test_paths/test_v1beta1_namespaces_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_namespaces_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organization_org_id_auditlogs/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_admins/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_admins/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_disable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_disable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_enable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_enable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_preferences/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_preferences/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_preferences/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_projects/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_projects/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_serviceusers/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_serviceusers/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_users/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_users/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_users/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_users_user_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_id_users_user_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_join/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_join/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles/test_post.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_permissions/__init__.py delete mode 100644 test/test_paths/test_v1beta1_permissions/test_get.py delete mode 100644 test/test_paths/test_v1beta1_permissions/test_post.py delete mode 100644 test/test_paths/test_v1beta1_permissions_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_permissions_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_permissions_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_permissions_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_policies/__init__.py delete mode 100644 test/test_paths/test_v1beta1_policies/test_get.py delete mode 100644 test/test_paths/test_v1beta1_policies/test_post.py delete mode 100644 test/test_paths/test_v1beta1_policies_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_policies_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_policies_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_policies_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_preferences/__init__.py delete mode 100644 test/test_paths/test_v1beta1_preferences/test_get.py delete mode 100644 test/test_paths/test_v1beta1_preferences/test_post.py delete mode 100644 test/test_paths/test_v1beta1_preferences_traits/__init__.py delete mode 100644 test/test_paths/test_v1beta1_preferences_traits/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects/test_post.py delete mode 100644 test/test_paths/test_v1beta1_projects_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_projects_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_admins/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_admins/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_disable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_disable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_enable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_enable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_preferences/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_preferences/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_preferences/test_post.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_serviceusers/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_serviceusers/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_users/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_id_users/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources/test_post.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_projects_project_id_resources_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_relations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_relations/test_post.py delete mode 100644 test/test_paths/test_v1beta1_relations_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_relations_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/__init__.py delete mode 100644 test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_roles/__init__.py delete mode 100644 test/test_paths/test_v1beta1_roles/test_get.py delete mode 100644 test/test_paths/test_v1beta1_roles/test_post.py delete mode 100644 test/test_paths/test_v1beta1_roles_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_roles_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_roles_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers/__init__.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers/test_get.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers/test_post.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_keys/__init__.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_keys/test_get.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_keys/test_post.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_secrets/__init__.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_secrets/test_get.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_secrets/test_post.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_users/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users/test_post.py delete mode 100644 test/test_paths/test_v1beta1_users_id/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id/test_delete.py delete mode 100644 test/test_paths/test_v1beta1_users_id/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_id/test_put.py delete mode 100644 test/test_paths/test_v1beta1_users_id_disable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_disable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_users_id_enable/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_enable/test_post.py delete mode 100644 test/test_paths/test_v1beta1_users_id_groups/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_groups/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_id_invitations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_invitations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_id_organizations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_organizations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_id_preferences/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_preferences/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_id_preferences/test_post.py delete mode 100644 test/test_paths/test_v1beta1_users_id_projects/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_id_projects/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_self/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_self/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_self/test_put.py delete mode 100644 test/test_paths/test_v1beta1_users_self_groups/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_self_groups/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_self_organizations/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_self_organizations/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_self_preferences/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_self_preferences/test_get.py delete mode 100644 test/test_paths/test_v1beta1_users_self_preferences/test_post.py delete mode 100644 test/test_paths/test_v1beta1_users_self_projects/__init__.py delete mode 100644 test/test_paths/test_v1beta1_users_self_projects/test_get.py delete mode 100644 test/test_paths/test_well_known_jwks_json/__init__.py delete mode 100644 test/test_paths/test_well_known_jwks_json/test_get.py create mode 100644 test/test_permission_api.py create mode 100644 test/test_plan_api.py rename test/{test_models/test_v1beta1_audit_log.py => test_platform_api.py} (62%) create mode 100644 test/test_policy_api.py create mode 100644 test/test_preference_api.py create mode 100644 test/test_project_api.py create mode 100644 test/test_protobuf_any.py rename test/{test_models => }/test_protobuf_null_value.py (70%) create mode 100644 test/test_relation_api.py create mode 100644 test/test_resource_api.py create mode 100644 test/test_role_api.py create mode 100644 test/test_rpc_status.py create mode 100644 test/test_service_user_api.py create mode 100644 test/test_subscription_api.py rename test/{test_models/test_v1beta1_check_resource_permission_response.py => test_transaction_api.py} (60%) rename test/{test_models/test_v1beta1_create_service_user_key_response.py => test_usage_api.py} (62%) create mode 100644 test/test_user_api.py create mode 100644 test/test_v1beta1_add_platform_user_request.py create mode 100644 test/test_v1beta1_audit_log.py create mode 100644 test/test_v1beta1_audit_log_actor.py create mode 100644 test/test_v1beta1_audit_log_target.py create mode 100644 test/test_v1beta1_auth_callback_request.py create mode 100644 test/test_v1beta1_auth_strategy.py create mode 100644 test/test_v1beta1_auth_token_request.py create mode 100644 test/test_v1beta1_auth_token_response.py create mode 100644 test/test_v1beta1_authenticate_response.py create mode 100644 test/test_v1beta1_batch_check_permission_body.py create mode 100644 test/test_v1beta1_batch_check_permission_request.py create mode 100644 test/test_v1beta1_batch_check_permission_response.py create mode 100644 test/test_v1beta1_batch_check_permission_response_pair.py create mode 100644 test/test_v1beta1_billing_account.py create mode 100644 test/test_v1beta1_billing_account_request_body.py create mode 100644 test/test_v1beta1_billing_transaction.py create mode 100644 test/test_v1beta1_check_feature_entitlement_response.py create mode 100644 test/test_v1beta1_check_federated_resource_permission_request.py create mode 100644 test/test_v1beta1_check_federated_resource_permission_response.py create mode 100644 test/test_v1beta1_check_resource_permission_request.py create mode 100644 test/test_v1beta1_check_resource_permission_response.py create mode 100644 test/test_v1beta1_checkout_feature_body.py create mode 100644 test/test_v1beta1_checkout_session.py create mode 100644 test/test_v1beta1_checkout_subscription_body.py create mode 100644 test/test_v1beta1_create_billing_account_response.py create mode 100644 test/test_v1beta1_create_checkout_response.py create mode 100644 test/test_v1beta1_create_current_user_preferences_request.py create mode 100644 test/test_v1beta1_create_current_user_preferences_response.py create mode 100644 test/test_v1beta1_create_feature_request.py create mode 100644 test/test_v1beta1_create_feature_response.py create mode 100644 test/test_v1beta1_create_group_preferences_response.py create mode 100644 test/test_v1beta1_create_group_response.py create mode 100644 test/test_v1beta1_create_meta_schema_response.py create mode 100644 test/test_v1beta1_create_organization_domain_response.py create mode 100644 test/test_v1beta1_create_organization_invitation_response.py create mode 100644 test/test_v1beta1_create_organization_preferences_response.py create mode 100644 test/test_v1beta1_create_organization_response.py create mode 100644 test/test_v1beta1_create_organization_role_response.py create mode 100644 test/test_v1beta1_create_permission_request.py create mode 100644 test/test_v1beta1_create_permission_response.py create mode 100644 test/test_v1beta1_create_plan_request.py create mode 100644 test/test_v1beta1_create_plan_response.py create mode 100644 test/test_v1beta1_create_policy_response.py create mode 100644 test/test_v1beta1_create_preferences_request.py create mode 100644 test/test_v1beta1_create_preferences_response.py create mode 100644 test/test_v1beta1_create_project_preferences_response.py create mode 100644 test/test_v1beta1_create_project_resource_response.py create mode 100644 test/test_v1beta1_create_project_response.py create mode 100644 test/test_v1beta1_create_relation_response.py create mode 100644 test/test_v1beta1_create_role_response.py create mode 100644 test/test_v1beta1_create_service_user_key_response.py create mode 100644 test/test_v1beta1_create_service_user_request.py create mode 100644 test/test_v1beta1_create_service_user_response.py create mode 100644 test/test_v1beta1_create_service_user_secret_response.py create mode 100644 test/test_v1beta1_create_user_preferences_response.py create mode 100644 test/test_v1beta1_create_user_response.py create mode 100644 test/test_v1beta1_describe_preferences_response.py create mode 100644 test/test_v1beta1_domain.py create mode 100644 test/test_v1beta1_feature.py create mode 100644 test/test_v1beta1_feature_request_body.py create mode 100644 test/test_v1beta1_get_billing_account_response.py create mode 100644 test/test_v1beta1_get_billing_balance_response.py create mode 100644 test/test_v1beta1_get_current_user_response.py create mode 100644 test/test_v1beta1_get_feature_response.py create mode 100644 test/test_v1beta1_get_group_response.py create mode 100644 test/test_v1beta1_get_jwks_response.py create mode 100644 test/test_v1beta1_get_meta_schema_response.py create mode 100644 test/test_v1beta1_get_namespace_response.py create mode 100644 test/test_v1beta1_get_organization_audit_log_response.py create mode 100644 test/test_v1beta1_get_organization_domain_response.py create mode 100644 test/test_v1beta1_get_organization_invitation_response.py create mode 100644 test/test_v1beta1_get_organization_response.py create mode 100644 test/test_v1beta1_get_organization_role_response.py create mode 100644 test/test_v1beta1_get_permission_response.py create mode 100644 test/test_v1beta1_get_plan_response.py create mode 100644 test/test_v1beta1_get_policy_response.py create mode 100644 test/test_v1beta1_get_project_resource_response.py create mode 100644 test/test_v1beta1_get_project_response.py create mode 100644 test/test_v1beta1_get_relation_response.py create mode 100644 test/test_v1beta1_get_service_user_key_response.py create mode 100644 test/test_v1beta1_get_service_user_response.py create mode 100644 test/test_v1beta1_get_subscription_response.py create mode 100644 test/test_v1beta1_get_user_response.py create mode 100644 test/test_v1beta1_group.py create mode 100644 test/test_v1beta1_group_request_body.py create mode 100644 test/test_v1beta1_invitation.py create mode 100644 test/test_v1beta1_json_web_key.py create mode 100644 test/test_v1beta1_key_credential.py create mode 100644 test/test_v1beta1_list_all_organizations_response.py create mode 100644 test/test_v1beta1_list_all_users_response.py create mode 100644 test/test_v1beta1_list_auth_strategies_response.py create mode 100644 test/test_v1beta1_list_billing_accounts_response.py create mode 100644 test/test_v1beta1_list_billing_transactions_response.py create mode 100644 test/test_v1beta1_list_checkouts_response.py create mode 100644 test/test_v1beta1_list_current_user_groups_response.py create mode 100644 test/test_v1beta1_list_current_user_groups_response_access_pair.py create mode 100644 test/test_v1beta1_list_current_user_invitations_response.py create mode 100644 test/test_v1beta1_list_current_user_preferences_response.py create mode 100644 test/test_v1beta1_list_features_response.py create mode 100644 test/test_v1beta1_list_group_preferences_response.py create mode 100644 test/test_v1beta1_list_group_users_response.py create mode 100644 test/test_v1beta1_list_group_users_response_role_pair.py create mode 100644 test/test_v1beta1_list_groups_response.py create mode 100644 test/test_v1beta1_list_meta_schemas_response.py create mode 100644 test/test_v1beta1_list_namespaces_response.py create mode 100644 test/test_v1beta1_list_organization_admins_response.py create mode 100644 test/test_v1beta1_list_organization_audit_logs_response.py create mode 100644 test/test_v1beta1_list_organization_domains_response.py create mode 100644 test/test_v1beta1_list_organization_groups_response.py create mode 100644 test/test_v1beta1_list_organization_invitations_response.py create mode 100644 test/test_v1beta1_list_organization_preferences_response.py create mode 100644 test/test_v1beta1_list_organization_projects_response.py create mode 100644 test/test_v1beta1_list_organization_roles_response.py create mode 100644 test/test_v1beta1_list_organization_service_users_response.py create mode 100644 test/test_v1beta1_list_organization_users_response.py create mode 100644 test/test_v1beta1_list_organization_users_response_role_pair.py create mode 100644 test/test_v1beta1_list_organizations_by_current_user_response.py create mode 100644 test/test_v1beta1_list_organizations_by_user_response.py create mode 100644 test/test_v1beta1_list_organizations_response.py create mode 100644 test/test_v1beta1_list_permissions_response.py create mode 100644 test/test_v1beta1_list_plans_response.py create mode 100644 test/test_v1beta1_list_policies_response.py create mode 100644 test/test_v1beta1_list_preferences_response.py create mode 100644 test/test_v1beta1_list_project_admins_response.py create mode 100644 test/test_v1beta1_list_project_groups_response.py create mode 100644 test/test_v1beta1_list_project_groups_response_role_pair.py create mode 100644 test/test_v1beta1_list_project_preferences_response.py create mode 100644 test/test_v1beta1_list_project_resources_response.py create mode 100644 test/test_v1beta1_list_project_service_users_response.py create mode 100644 test/test_v1beta1_list_project_service_users_response_role_pair.py create mode 100644 test/test_v1beta1_list_project_users_response.py create mode 100644 test/test_v1beta1_list_project_users_response_role_pair.py create mode 100644 test/test_v1beta1_list_projects_by_current_user_response.py create mode 100644 test/test_v1beta1_list_projects_by_current_user_response_access_pair.py create mode 100644 test/test_v1beta1_list_projects_by_user_response.py create mode 100644 test/test_v1beta1_list_projects_response.py create mode 100644 test/test_v1beta1_list_relations_response.py create mode 100644 test/test_v1beta1_list_resources_response.py create mode 100644 test/test_v1beta1_list_roles_response.py create mode 100644 test/test_v1beta1_list_service_user_keys_response.py create mode 100644 test/test_v1beta1_list_service_user_secrets_response.py create mode 100644 test/test_v1beta1_list_service_users_response.py create mode 100644 test/test_v1beta1_list_subscriptions_response.py create mode 100644 test/test_v1beta1_list_user_groups_response.py create mode 100644 test/test_v1beta1_list_user_invitations_response.py create mode 100644 test/test_v1beta1_list_user_preferences_response.py create mode 100644 test/test_v1beta1_list_users_response.py create mode 100644 test/test_v1beta1_meta_schema.py create mode 100644 test/test_v1beta1_meta_schema_request_body.py create mode 100644 test/test_v1beta1_namespace.py create mode 100644 test/test_v1beta1_organization.py create mode 100644 test/test_v1beta1_organization_request_body.py create mode 100644 test/test_v1beta1_permission.py create mode 100644 test/test_v1beta1_permission_request_body.py create mode 100644 test/test_v1beta1_plan.py create mode 100644 test/test_v1beta1_plan_request_body.py create mode 100644 test/test_v1beta1_policy.py create mode 100644 test/test_v1beta1_policy_request_body.py create mode 100644 test/test_v1beta1_preference.py create mode 100644 test/test_v1beta1_preference_request_body.py create mode 100644 test/test_v1beta1_preference_trait.py create mode 100644 test/test_v1beta1_price.py create mode 100644 test/test_v1beta1_project.py create mode 100644 test/test_v1beta1_project_request_body.py create mode 100644 test/test_v1beta1_relation.py create mode 100644 test/test_v1beta1_relation_request_body.py create mode 100644 test/test_v1beta1_resource.py create mode 100644 test/test_v1beta1_resource_request_body.py create mode 100644 test/test_v1beta1_role.py create mode 100644 test/test_v1beta1_role_request_body.py create mode 100644 test/test_v1beta1_secret_credential.py create mode 100644 test/test_v1beta1_service_user.py create mode 100644 test/test_v1beta1_service_user_key.py create mode 100644 test/test_v1beta1_service_user_request_body.py create mode 100644 test/test_v1beta1_subscription.py create mode 100644 test/test_v1beta1_update_billing_account_response.py create mode 100644 test/test_v1beta1_update_current_user_response.py create mode 100644 test/test_v1beta1_update_feature_response.py create mode 100644 test/test_v1beta1_update_group_response.py create mode 100644 test/test_v1beta1_update_meta_schema_response.py create mode 100644 test/test_v1beta1_update_organization_response.py create mode 100644 test/test_v1beta1_update_organization_role_response.py create mode 100644 test/test_v1beta1_update_permission_response.py create mode 100644 test/test_v1beta1_update_plan_response.py create mode 100644 test/test_v1beta1_update_policy_response.py create mode 100644 test/test_v1beta1_update_project_resource_response.py create mode 100644 test/test_v1beta1_update_project_response.py create mode 100644 test/test_v1beta1_update_role_response.py create mode 100644 test/test_v1beta1_update_subscription_response.py create mode 100644 test/test_v1beta1_update_user_response.py create mode 100644 test/test_v1beta1_usage.py create mode 100644 test/test_v1beta1_user.py create mode 100644 test/test_v1beta1_user_request_body.py create mode 100644 test/test_v1beta1_verify_organization_domain_response.py diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 0000000..7de0a59 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,38 @@ +# NOTE: This file is auto generated by OpenAPI Generator. +# URL: https://openapi-generator.tech +# +# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: frontier_api Python package + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest diff --git a/.gitignore b/.gitignore index 8de838c..43995bd 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,6 @@ var/ # Installer logs pip-log.txt pip-delete-this-directory.txt -dev-requirements.txt.log # Unit test / coverage reports htmlcov/ @@ -65,4 +64,3 @@ target/ #Ipython Notebook .ipynb_checkpoints -temp \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0e1ca38..6da5e94 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,673 +1,738 @@ +.github/workflows/python.yml .gitignore .gitlab-ci.yml .travis.yml README.md -docs/apis/tags/AuditLogApi.md -docs/apis/tags/AuthnApi.md -docs/apis/tags/AuthzApi.md -docs/apis/tags/GroupApi.md -docs/apis/tags/MetaSchemaApi.md -docs/apis/tags/NamespaceApi.md -docs/apis/tags/OrganizationApi.md -docs/apis/tags/PermissionApi.md -docs/apis/tags/PolicyApi.md -docs/apis/tags/PreferenceApi.md -docs/apis/tags/ProjectApi.md -docs/apis/tags/RelationApi.md -docs/apis/tags/ResourceApi.md -docs/apis/tags/RoleApi.md -docs/apis/tags/ServiceUserApi.md -docs/apis/tags/UserApi.md -docs/models/ProtobufAny.md -docs/models/ProtobufNullValue.md -docs/models/RpcStatus.md -docs/models/V1beta1AuditLog.md -docs/models/V1beta1AuditLogActor.md -docs/models/V1beta1AuditLogTarget.md -docs/models/V1beta1AuthCallbackRequest.md -docs/models/V1beta1AuthStrategy.md -docs/models/V1beta1AuthTokenRequest.md -docs/models/V1beta1AuthTokenResponse.md -docs/models/V1beta1AuthenticateResponse.md -docs/models/V1beta1BatchCheckPermissionBody.md -docs/models/V1beta1BatchCheckPermissionRequest.md -docs/models/V1beta1BatchCheckPermissionResponse.md -docs/models/V1beta1BatchCheckPermissionResponsePair.md -docs/models/V1beta1CheckResourcePermissionRequest.md -docs/models/V1beta1CheckResourcePermissionResponse.md -docs/models/V1beta1CreateCurrentUserPreferencesRequest.md -docs/models/V1beta1CreateCurrentUserPreferencesResponse.md -docs/models/V1beta1CreateGroupPreferencesResponse.md -docs/models/V1beta1CreateGroupResponse.md -docs/models/V1beta1CreateMetaSchemaResponse.md -docs/models/V1beta1CreateOrganizationDomainResponse.md -docs/models/V1beta1CreateOrganizationInvitationResponse.md -docs/models/V1beta1CreateOrganizationPreferencesResponse.md -docs/models/V1beta1CreateOrganizationResponse.md -docs/models/V1beta1CreateOrganizationRoleResponse.md -docs/models/V1beta1CreatePermissionRequest.md -docs/models/V1beta1CreatePermissionResponse.md -docs/models/V1beta1CreatePolicyResponse.md -docs/models/V1beta1CreatePreferencesRequest.md -docs/models/V1beta1CreatePreferencesResponse.md -docs/models/V1beta1CreateProjectPreferencesResponse.md -docs/models/V1beta1CreateProjectResourceResponse.md -docs/models/V1beta1CreateProjectResponse.md -docs/models/V1beta1CreateRelationResponse.md -docs/models/V1beta1CreateRoleResponse.md -docs/models/V1beta1CreateServiceUserKeyResponse.md -docs/models/V1beta1CreateServiceUserRequest.md -docs/models/V1beta1CreateServiceUserResponse.md -docs/models/V1beta1CreateServiceUserSecretResponse.md -docs/models/V1beta1CreateUserPreferencesResponse.md -docs/models/V1beta1CreateUserResponse.md -docs/models/V1beta1DescribePreferencesResponse.md -docs/models/V1beta1Domain.md -docs/models/V1beta1GetCurrentUserResponse.md -docs/models/V1beta1GetGroupResponse.md -docs/models/V1beta1GetJWKsResponse.md -docs/models/V1beta1GetMetaSchemaResponse.md -docs/models/V1beta1GetNamespaceResponse.md -docs/models/V1beta1GetOrganizationAuditLogResponse.md -docs/models/V1beta1GetOrganizationDomainResponse.md -docs/models/V1beta1GetOrganizationInvitationResponse.md -docs/models/V1beta1GetOrganizationResponse.md -docs/models/V1beta1GetOrganizationRoleResponse.md -docs/models/V1beta1GetPermissionResponse.md -docs/models/V1beta1GetPolicyResponse.md -docs/models/V1beta1GetProjectResourceResponse.md -docs/models/V1beta1GetProjectResponse.md -docs/models/V1beta1GetRelationResponse.md -docs/models/V1beta1GetServiceUserKeyResponse.md -docs/models/V1beta1GetServiceUserResponse.md -docs/models/V1beta1GetUserResponse.md -docs/models/V1beta1Group.md -docs/models/V1beta1GroupRequestBody.md -docs/models/V1beta1Invitation.md -docs/models/V1beta1JSONWebKey.md -docs/models/V1beta1KeyCredential.md -docs/models/V1beta1ListAllOrganizationsResponse.md -docs/models/V1beta1ListAllUsersResponse.md -docs/models/V1beta1ListAuthStrategiesResponse.md -docs/models/V1beta1ListCurrentUserGroupsResponse.md -docs/models/V1beta1ListCurrentUserGroupsResponseAccessPair.md -docs/models/V1beta1ListCurrentUserPreferencesResponse.md -docs/models/V1beta1ListGroupPreferencesResponse.md -docs/models/V1beta1ListGroupUsersResponse.md -docs/models/V1beta1ListGroupUsersResponseRolePair.md -docs/models/V1beta1ListGroupsResponse.md -docs/models/V1beta1ListMetaSchemasResponse.md -docs/models/V1beta1ListNamespacesResponse.md -docs/models/V1beta1ListOrganizationAdminsResponse.md -docs/models/V1beta1ListOrganizationAuditLogsResponse.md -docs/models/V1beta1ListOrganizationDomainsResponse.md -docs/models/V1beta1ListOrganizationGroupsResponse.md -docs/models/V1beta1ListOrganizationInvitationsResponse.md -docs/models/V1beta1ListOrganizationPreferencesResponse.md -docs/models/V1beta1ListOrganizationProjectsResponse.md -docs/models/V1beta1ListOrganizationRolesResponse.md -docs/models/V1beta1ListOrganizationServiceUsersResponse.md -docs/models/V1beta1ListOrganizationUsersResponse.md -docs/models/V1beta1ListOrganizationsByCurrentUserResponse.md -docs/models/V1beta1ListOrganizationsByUserResponse.md -docs/models/V1beta1ListOrganizationsResponse.md -docs/models/V1beta1ListPermissionsResponse.md -docs/models/V1beta1ListPoliciesResponse.md -docs/models/V1beta1ListPreferencesResponse.md -docs/models/V1beta1ListProjectAdminsResponse.md -docs/models/V1beta1ListProjectPreferencesResponse.md -docs/models/V1beta1ListProjectResourcesResponse.md -docs/models/V1beta1ListProjectServiceUsersResponse.md -docs/models/V1beta1ListProjectServiceUsersResponseRolePair.md -docs/models/V1beta1ListProjectUsersResponse.md -docs/models/V1beta1ListProjectUsersResponseRolePair.md -docs/models/V1beta1ListProjectsByCurrentUserResponse.md -docs/models/V1beta1ListProjectsByCurrentUserResponseAccessPair.md -docs/models/V1beta1ListProjectsByUserResponse.md -docs/models/V1beta1ListProjectsResponse.md -docs/models/V1beta1ListRelationsResponse.md -docs/models/V1beta1ListResourcesResponse.md -docs/models/V1beta1ListRolesResponse.md -docs/models/V1beta1ListServiceUserKeysResponse.md -docs/models/V1beta1ListServiceUserSecretsResponse.md -docs/models/V1beta1ListServiceUsersResponse.md -docs/models/V1beta1ListUserGroupsResponse.md -docs/models/V1beta1ListUserInvitationsResponse.md -docs/models/V1beta1ListUserPreferencesResponse.md -docs/models/V1beta1ListUsersResponse.md -docs/models/V1beta1MetaSchema.md -docs/models/V1beta1MetaSchemaRequestBody.md -docs/models/V1beta1Namespace.md -docs/models/V1beta1Organization.md -docs/models/V1beta1OrganizationRequestBody.md -docs/models/V1beta1Permission.md -docs/models/V1beta1PermissionRequestBody.md -docs/models/V1beta1Policy.md -docs/models/V1beta1PolicyRequestBody.md -docs/models/V1beta1Preference.md -docs/models/V1beta1PreferenceRequestBody.md -docs/models/V1beta1PreferenceTrait.md -docs/models/V1beta1Project.md -docs/models/V1beta1ProjectRequestBody.md -docs/models/V1beta1Relation.md -docs/models/V1beta1RelationRequestBody.md -docs/models/V1beta1Resource.md -docs/models/V1beta1ResourceRequestBody.md -docs/models/V1beta1Role.md -docs/models/V1beta1RoleRequestBody.md -docs/models/V1beta1SecretCredential.md -docs/models/V1beta1ServiceUser.md -docs/models/V1beta1ServiceUserKey.md -docs/models/V1beta1ServiceUserRequestBody.md -docs/models/V1beta1UpdateCurrentUserResponse.md -docs/models/V1beta1UpdateGroupResponse.md -docs/models/V1beta1UpdateMetaSchemaResponse.md -docs/models/V1beta1UpdateOrganizationResponse.md -docs/models/V1beta1UpdateOrganizationRoleResponse.md -docs/models/V1beta1UpdatePermissionResponse.md -docs/models/V1beta1UpdatePolicyResponse.md -docs/models/V1beta1UpdateProjectResourceResponse.md -docs/models/V1beta1UpdateProjectResponse.md -docs/models/V1beta1UpdateRoleResponse.md -docs/models/V1beta1UpdateUserResponse.md -docs/models/V1beta1User.md -docs/models/V1beta1UserRequestBody.md -docs/models/V1beta1VerifyOrganizationDomainResponse.md +docs/AuditLogApi.md +docs/AuthnApi.md +docs/AuthzApi.md +docs/BillingAccountAddress.md +docs/BillingAccountBalance.md +docs/BillingApi.md +docs/CheckoutApi.md +docs/EntitlementApi.md +docs/FeatureApi.md +docs/FrontierServiceAddGroupUsersRequest.md +docs/FrontierServiceAddOrganizationUsersRequest.md +docs/FrontierServiceAuthenticate2Request.md +docs/FrontierServiceCheckFeatureEntitlementRequest.md +docs/FrontierServiceCreateBillingAccountRequest.md +docs/FrontierServiceCreateBillingUsageRequest.md +docs/FrontierServiceCreateCheckoutRequest.md +docs/FrontierServiceCreateGroupPreferencesRequest.md +docs/FrontierServiceCreateOrganizationAuditLogsRequest.md +docs/FrontierServiceCreateOrganizationDomainRequest.md +docs/FrontierServiceCreateOrganizationInvitationRequest.md +docs/FrontierServiceCreateServiceUserKeyRequest.md +docs/FrontierServiceUpdateFeatureRequest.md +docs/FrontierServiceUpdatePlanRequest.md +docs/FrontierServiceUpdateSubscriptionRequest.md +docs/GroupApi.md +docs/MetaSchemaApi.md +docs/NamespaceApi.md +docs/OrganizationApi.md +docs/PermissionApi.md +docs/PlanApi.md +docs/PlatformApi.md +docs/PolicyApi.md +docs/PreferenceApi.md +docs/ProjectApi.md +docs/ProtobufAny.md +docs/ProtobufNullValue.md +docs/RelationApi.md +docs/ResourceApi.md +docs/RoleApi.md +docs/RpcStatus.md +docs/ServiceUserApi.md +docs/SubscriptionApi.md +docs/TransactionApi.md +docs/UsageApi.md +docs/UserApi.md +docs/V1beta1AddPlatformUserRequest.md +docs/V1beta1AuditLog.md +docs/V1beta1AuditLogActor.md +docs/V1beta1AuditLogTarget.md +docs/V1beta1AuthCallbackRequest.md +docs/V1beta1AuthStrategy.md +docs/V1beta1AuthTokenRequest.md +docs/V1beta1AuthTokenResponse.md +docs/V1beta1AuthenticateResponse.md +docs/V1beta1BatchCheckPermissionBody.md +docs/V1beta1BatchCheckPermissionRequest.md +docs/V1beta1BatchCheckPermissionResponse.md +docs/V1beta1BatchCheckPermissionResponsePair.md +docs/V1beta1BillingAccount.md +docs/V1beta1BillingAccountRequestBody.md +docs/V1beta1BillingTransaction.md +docs/V1beta1CheckFeatureEntitlementResponse.md +docs/V1beta1CheckFederatedResourcePermissionRequest.md +docs/V1beta1CheckFederatedResourcePermissionResponse.md +docs/V1beta1CheckResourcePermissionRequest.md +docs/V1beta1CheckResourcePermissionResponse.md +docs/V1beta1CheckoutFeatureBody.md +docs/V1beta1CheckoutSession.md +docs/V1beta1CheckoutSubscriptionBody.md +docs/V1beta1CreateBillingAccountResponse.md +docs/V1beta1CreateCheckoutResponse.md +docs/V1beta1CreateCurrentUserPreferencesRequest.md +docs/V1beta1CreateCurrentUserPreferencesResponse.md +docs/V1beta1CreateFeatureRequest.md +docs/V1beta1CreateFeatureResponse.md +docs/V1beta1CreateGroupPreferencesResponse.md +docs/V1beta1CreateGroupResponse.md +docs/V1beta1CreateMetaSchemaResponse.md +docs/V1beta1CreateOrganizationDomainResponse.md +docs/V1beta1CreateOrganizationInvitationResponse.md +docs/V1beta1CreateOrganizationPreferencesResponse.md +docs/V1beta1CreateOrganizationResponse.md +docs/V1beta1CreateOrganizationRoleResponse.md +docs/V1beta1CreatePermissionRequest.md +docs/V1beta1CreatePermissionResponse.md +docs/V1beta1CreatePlanRequest.md +docs/V1beta1CreatePlanResponse.md +docs/V1beta1CreatePolicyResponse.md +docs/V1beta1CreatePreferencesRequest.md +docs/V1beta1CreatePreferencesResponse.md +docs/V1beta1CreateProjectPreferencesResponse.md +docs/V1beta1CreateProjectResourceResponse.md +docs/V1beta1CreateProjectResponse.md +docs/V1beta1CreateRelationResponse.md +docs/V1beta1CreateRoleResponse.md +docs/V1beta1CreateServiceUserKeyResponse.md +docs/V1beta1CreateServiceUserRequest.md +docs/V1beta1CreateServiceUserResponse.md +docs/V1beta1CreateServiceUserSecretResponse.md +docs/V1beta1CreateUserPreferencesResponse.md +docs/V1beta1CreateUserResponse.md +docs/V1beta1DescribePreferencesResponse.md +docs/V1beta1Domain.md +docs/V1beta1Feature.md +docs/V1beta1FeatureRequestBody.md +docs/V1beta1GetBillingAccountResponse.md +docs/V1beta1GetBillingBalanceResponse.md +docs/V1beta1GetCurrentUserResponse.md +docs/V1beta1GetFeatureResponse.md +docs/V1beta1GetGroupResponse.md +docs/V1beta1GetJWKsResponse.md +docs/V1beta1GetMetaSchemaResponse.md +docs/V1beta1GetNamespaceResponse.md +docs/V1beta1GetOrganizationAuditLogResponse.md +docs/V1beta1GetOrganizationDomainResponse.md +docs/V1beta1GetOrganizationInvitationResponse.md +docs/V1beta1GetOrganizationResponse.md +docs/V1beta1GetOrganizationRoleResponse.md +docs/V1beta1GetPermissionResponse.md +docs/V1beta1GetPlanResponse.md +docs/V1beta1GetPolicyResponse.md +docs/V1beta1GetProjectResourceResponse.md +docs/V1beta1GetProjectResponse.md +docs/V1beta1GetRelationResponse.md +docs/V1beta1GetServiceUserKeyResponse.md +docs/V1beta1GetServiceUserResponse.md +docs/V1beta1GetSubscriptionResponse.md +docs/V1beta1GetUserResponse.md +docs/V1beta1Group.md +docs/V1beta1GroupRequestBody.md +docs/V1beta1Invitation.md +docs/V1beta1JSONWebKey.md +docs/V1beta1KeyCredential.md +docs/V1beta1ListAllOrganizationsResponse.md +docs/V1beta1ListAllUsersResponse.md +docs/V1beta1ListAuthStrategiesResponse.md +docs/V1beta1ListBillingAccountsResponse.md +docs/V1beta1ListBillingTransactionsResponse.md +docs/V1beta1ListCheckoutsResponse.md +docs/V1beta1ListCurrentUserGroupsResponse.md +docs/V1beta1ListCurrentUserGroupsResponseAccessPair.md +docs/V1beta1ListCurrentUserInvitationsResponse.md +docs/V1beta1ListCurrentUserPreferencesResponse.md +docs/V1beta1ListFeaturesResponse.md +docs/V1beta1ListGroupPreferencesResponse.md +docs/V1beta1ListGroupUsersResponse.md +docs/V1beta1ListGroupUsersResponseRolePair.md +docs/V1beta1ListGroupsResponse.md +docs/V1beta1ListMetaSchemasResponse.md +docs/V1beta1ListNamespacesResponse.md +docs/V1beta1ListOrganizationAdminsResponse.md +docs/V1beta1ListOrganizationAuditLogsResponse.md +docs/V1beta1ListOrganizationDomainsResponse.md +docs/V1beta1ListOrganizationGroupsResponse.md +docs/V1beta1ListOrganizationInvitationsResponse.md +docs/V1beta1ListOrganizationPreferencesResponse.md +docs/V1beta1ListOrganizationProjectsResponse.md +docs/V1beta1ListOrganizationRolesResponse.md +docs/V1beta1ListOrganizationServiceUsersResponse.md +docs/V1beta1ListOrganizationUsersResponse.md +docs/V1beta1ListOrganizationUsersResponseRolePair.md +docs/V1beta1ListOrganizationsByCurrentUserResponse.md +docs/V1beta1ListOrganizationsByUserResponse.md +docs/V1beta1ListOrganizationsResponse.md +docs/V1beta1ListPermissionsResponse.md +docs/V1beta1ListPlansResponse.md +docs/V1beta1ListPoliciesResponse.md +docs/V1beta1ListPreferencesResponse.md +docs/V1beta1ListProjectAdminsResponse.md +docs/V1beta1ListProjectGroupsResponse.md +docs/V1beta1ListProjectGroupsResponseRolePair.md +docs/V1beta1ListProjectPreferencesResponse.md +docs/V1beta1ListProjectResourcesResponse.md +docs/V1beta1ListProjectServiceUsersResponse.md +docs/V1beta1ListProjectServiceUsersResponseRolePair.md +docs/V1beta1ListProjectUsersResponse.md +docs/V1beta1ListProjectUsersResponseRolePair.md +docs/V1beta1ListProjectsByCurrentUserResponse.md +docs/V1beta1ListProjectsByCurrentUserResponseAccessPair.md +docs/V1beta1ListProjectsByUserResponse.md +docs/V1beta1ListProjectsResponse.md +docs/V1beta1ListRelationsResponse.md +docs/V1beta1ListResourcesResponse.md +docs/V1beta1ListRolesResponse.md +docs/V1beta1ListServiceUserKeysResponse.md +docs/V1beta1ListServiceUserSecretsResponse.md +docs/V1beta1ListServiceUsersResponse.md +docs/V1beta1ListSubscriptionsResponse.md +docs/V1beta1ListUserGroupsResponse.md +docs/V1beta1ListUserInvitationsResponse.md +docs/V1beta1ListUserPreferencesResponse.md +docs/V1beta1ListUsersResponse.md +docs/V1beta1MetaSchema.md +docs/V1beta1MetaSchemaRequestBody.md +docs/V1beta1Namespace.md +docs/V1beta1Organization.md +docs/V1beta1OrganizationRequestBody.md +docs/V1beta1Permission.md +docs/V1beta1PermissionRequestBody.md +docs/V1beta1Plan.md +docs/V1beta1PlanRequestBody.md +docs/V1beta1Policy.md +docs/V1beta1PolicyRequestBody.md +docs/V1beta1Preference.md +docs/V1beta1PreferenceRequestBody.md +docs/V1beta1PreferenceTrait.md +docs/V1beta1Price.md +docs/V1beta1Project.md +docs/V1beta1ProjectRequestBody.md +docs/V1beta1Relation.md +docs/V1beta1RelationRequestBody.md +docs/V1beta1Resource.md +docs/V1beta1ResourceRequestBody.md +docs/V1beta1Role.md +docs/V1beta1RoleRequestBody.md +docs/V1beta1SecretCredential.md +docs/V1beta1ServiceUser.md +docs/V1beta1ServiceUserKey.md +docs/V1beta1ServiceUserRequestBody.md +docs/V1beta1Subscription.md +docs/V1beta1UpdateBillingAccountResponse.md +docs/V1beta1UpdateCurrentUserResponse.md +docs/V1beta1UpdateFeatureResponse.md +docs/V1beta1UpdateGroupResponse.md +docs/V1beta1UpdateMetaSchemaResponse.md +docs/V1beta1UpdateOrganizationResponse.md +docs/V1beta1UpdateOrganizationRoleResponse.md +docs/V1beta1UpdatePermissionResponse.md +docs/V1beta1UpdatePlanResponse.md +docs/V1beta1UpdatePolicyResponse.md +docs/V1beta1UpdateProjectResourceResponse.md +docs/V1beta1UpdateProjectResponse.md +docs/V1beta1UpdateRoleResponse.md +docs/V1beta1UpdateSubscriptionResponse.md +docs/V1beta1UpdateUserResponse.md +docs/V1beta1Usage.md +docs/V1beta1User.md +docs/V1beta1UserRequestBody.md +docs/V1beta1VerifyOrganizationDomainResponse.md frontier_api/__init__.py +frontier_api/api/__init__.py +frontier_api/api/audit_log_api.py +frontier_api/api/authn_api.py +frontier_api/api/authz_api.py +frontier_api/api/billing_api.py +frontier_api/api/checkout_api.py +frontier_api/api/entitlement_api.py +frontier_api/api/feature_api.py +frontier_api/api/group_api.py +frontier_api/api/meta_schema_api.py +frontier_api/api/namespace_api.py +frontier_api/api/organization_api.py +frontier_api/api/permission_api.py +frontier_api/api/plan_api.py +frontier_api/api/platform_api.py +frontier_api/api/policy_api.py +frontier_api/api/preference_api.py +frontier_api/api/project_api.py +frontier_api/api/relation_api.py +frontier_api/api/resource_api.py +frontier_api/api/role_api.py +frontier_api/api/service_user_api.py +frontier_api/api/subscription_api.py +frontier_api/api/transaction_api.py +frontier_api/api/usage_api.py +frontier_api/api/user_api.py frontier_api/api_client.py -frontier_api/apis/__init__.py -frontier_api/apis/tags/audit_log_api.py -frontier_api/apis/tags/authn_api.py -frontier_api/apis/tags/authz_api.py -frontier_api/apis/tags/group_api.py -frontier_api/apis/tags/meta_schema_api.py -frontier_api/apis/tags/namespace_api.py -frontier_api/apis/tags/organization_api.py -frontier_api/apis/tags/permission_api.py -frontier_api/apis/tags/policy_api.py -frontier_api/apis/tags/preference_api.py -frontier_api/apis/tags/project_api.py -frontier_api/apis/tags/relation_api.py -frontier_api/apis/tags/resource_api.py -frontier_api/apis/tags/role_api.py -frontier_api/apis/tags/service_user_api.py -frontier_api/apis/tags/user_api.py +frontier_api/api_response.py frontier_api/configuration.py frontier_api/exceptions.py -frontier_api/model/__init__.py -frontier_api/model/protobuf_any.py -frontier_api/model/protobuf_any.pyi -frontier_api/model/protobuf_null_value.py -frontier_api/model/protobuf_null_value.pyi -frontier_api/model/rpc_status.py -frontier_api/model/rpc_status.pyi -frontier_api/model/v1beta1_audit_log.py -frontier_api/model/v1beta1_audit_log.pyi -frontier_api/model/v1beta1_audit_log_actor.py -frontier_api/model/v1beta1_audit_log_actor.pyi -frontier_api/model/v1beta1_audit_log_target.py -frontier_api/model/v1beta1_audit_log_target.pyi -frontier_api/model/v1beta1_auth_callback_request.py -frontier_api/model/v1beta1_auth_callback_request.pyi -frontier_api/model/v1beta1_auth_strategy.py -frontier_api/model/v1beta1_auth_strategy.pyi -frontier_api/model/v1beta1_auth_token_request.py -frontier_api/model/v1beta1_auth_token_request.pyi -frontier_api/model/v1beta1_auth_token_response.py -frontier_api/model/v1beta1_auth_token_response.pyi -frontier_api/model/v1beta1_authenticate_response.py -frontier_api/model/v1beta1_authenticate_response.pyi -frontier_api/model/v1beta1_batch_check_permission_body.py -frontier_api/model/v1beta1_batch_check_permission_body.pyi -frontier_api/model/v1beta1_batch_check_permission_request.py -frontier_api/model/v1beta1_batch_check_permission_request.pyi -frontier_api/model/v1beta1_batch_check_permission_response.py -frontier_api/model/v1beta1_batch_check_permission_response.pyi -frontier_api/model/v1beta1_batch_check_permission_response_pair.py -frontier_api/model/v1beta1_batch_check_permission_response_pair.pyi -frontier_api/model/v1beta1_check_resource_permission_request.py -frontier_api/model/v1beta1_check_resource_permission_request.pyi -frontier_api/model/v1beta1_check_resource_permission_response.py -frontier_api/model/v1beta1_check_resource_permission_response.pyi -frontier_api/model/v1beta1_create_current_user_preferences_request.py -frontier_api/model/v1beta1_create_current_user_preferences_request.pyi -frontier_api/model/v1beta1_create_current_user_preferences_response.py -frontier_api/model/v1beta1_create_current_user_preferences_response.pyi -frontier_api/model/v1beta1_create_group_preferences_response.py -frontier_api/model/v1beta1_create_group_preferences_response.pyi -frontier_api/model/v1beta1_create_group_response.py -frontier_api/model/v1beta1_create_group_response.pyi -frontier_api/model/v1beta1_create_meta_schema_response.py -frontier_api/model/v1beta1_create_meta_schema_response.pyi -frontier_api/model/v1beta1_create_organization_domain_response.py -frontier_api/model/v1beta1_create_organization_domain_response.pyi -frontier_api/model/v1beta1_create_organization_invitation_response.py -frontier_api/model/v1beta1_create_organization_invitation_response.pyi -frontier_api/model/v1beta1_create_organization_preferences_response.py -frontier_api/model/v1beta1_create_organization_preferences_response.pyi -frontier_api/model/v1beta1_create_organization_response.py -frontier_api/model/v1beta1_create_organization_response.pyi -frontier_api/model/v1beta1_create_organization_role_response.py -frontier_api/model/v1beta1_create_organization_role_response.pyi -frontier_api/model/v1beta1_create_permission_request.py -frontier_api/model/v1beta1_create_permission_request.pyi -frontier_api/model/v1beta1_create_permission_response.py -frontier_api/model/v1beta1_create_permission_response.pyi -frontier_api/model/v1beta1_create_policy_response.py -frontier_api/model/v1beta1_create_policy_response.pyi -frontier_api/model/v1beta1_create_preferences_request.py -frontier_api/model/v1beta1_create_preferences_request.pyi -frontier_api/model/v1beta1_create_preferences_response.py -frontier_api/model/v1beta1_create_preferences_response.pyi -frontier_api/model/v1beta1_create_project_preferences_response.py -frontier_api/model/v1beta1_create_project_preferences_response.pyi -frontier_api/model/v1beta1_create_project_resource_response.py -frontier_api/model/v1beta1_create_project_resource_response.pyi -frontier_api/model/v1beta1_create_project_response.py -frontier_api/model/v1beta1_create_project_response.pyi -frontier_api/model/v1beta1_create_relation_response.py -frontier_api/model/v1beta1_create_relation_response.pyi -frontier_api/model/v1beta1_create_role_response.py -frontier_api/model/v1beta1_create_role_response.pyi -frontier_api/model/v1beta1_create_service_user_key_response.py -frontier_api/model/v1beta1_create_service_user_key_response.pyi -frontier_api/model/v1beta1_create_service_user_request.py -frontier_api/model/v1beta1_create_service_user_request.pyi -frontier_api/model/v1beta1_create_service_user_response.py -frontier_api/model/v1beta1_create_service_user_response.pyi -frontier_api/model/v1beta1_create_service_user_secret_response.py -frontier_api/model/v1beta1_create_service_user_secret_response.pyi -frontier_api/model/v1beta1_create_user_preferences_response.py -frontier_api/model/v1beta1_create_user_preferences_response.pyi -frontier_api/model/v1beta1_create_user_response.py -frontier_api/model/v1beta1_create_user_response.pyi -frontier_api/model/v1beta1_describe_preferences_response.py -frontier_api/model/v1beta1_describe_preferences_response.pyi -frontier_api/model/v1beta1_domain.py -frontier_api/model/v1beta1_domain.pyi -frontier_api/model/v1beta1_get_current_user_response.py -frontier_api/model/v1beta1_get_current_user_response.pyi -frontier_api/model/v1beta1_get_group_response.py -frontier_api/model/v1beta1_get_group_response.pyi -frontier_api/model/v1beta1_get_jwks_response.py -frontier_api/model/v1beta1_get_jwks_response.pyi -frontier_api/model/v1beta1_get_meta_schema_response.py -frontier_api/model/v1beta1_get_meta_schema_response.pyi -frontier_api/model/v1beta1_get_namespace_response.py -frontier_api/model/v1beta1_get_namespace_response.pyi -frontier_api/model/v1beta1_get_organization_audit_log_response.py -frontier_api/model/v1beta1_get_organization_audit_log_response.pyi -frontier_api/model/v1beta1_get_organization_domain_response.py -frontier_api/model/v1beta1_get_organization_domain_response.pyi -frontier_api/model/v1beta1_get_organization_invitation_response.py -frontier_api/model/v1beta1_get_organization_invitation_response.pyi -frontier_api/model/v1beta1_get_organization_response.py -frontier_api/model/v1beta1_get_organization_response.pyi -frontier_api/model/v1beta1_get_organization_role_response.py -frontier_api/model/v1beta1_get_organization_role_response.pyi -frontier_api/model/v1beta1_get_permission_response.py -frontier_api/model/v1beta1_get_permission_response.pyi -frontier_api/model/v1beta1_get_policy_response.py -frontier_api/model/v1beta1_get_policy_response.pyi -frontier_api/model/v1beta1_get_project_resource_response.py -frontier_api/model/v1beta1_get_project_resource_response.pyi -frontier_api/model/v1beta1_get_project_response.py -frontier_api/model/v1beta1_get_project_response.pyi -frontier_api/model/v1beta1_get_relation_response.py -frontier_api/model/v1beta1_get_relation_response.pyi -frontier_api/model/v1beta1_get_service_user_key_response.py -frontier_api/model/v1beta1_get_service_user_key_response.pyi -frontier_api/model/v1beta1_get_service_user_response.py -frontier_api/model/v1beta1_get_service_user_response.pyi -frontier_api/model/v1beta1_get_user_response.py -frontier_api/model/v1beta1_get_user_response.pyi -frontier_api/model/v1beta1_group.py -frontier_api/model/v1beta1_group.pyi -frontier_api/model/v1beta1_group_request_body.py -frontier_api/model/v1beta1_group_request_body.pyi -frontier_api/model/v1beta1_invitation.py -frontier_api/model/v1beta1_invitation.pyi -frontier_api/model/v1beta1_json_web_key.py -frontier_api/model/v1beta1_json_web_key.pyi -frontier_api/model/v1beta1_key_credential.py -frontier_api/model/v1beta1_key_credential.pyi -frontier_api/model/v1beta1_list_all_organizations_response.py -frontier_api/model/v1beta1_list_all_organizations_response.pyi -frontier_api/model/v1beta1_list_all_users_response.py -frontier_api/model/v1beta1_list_all_users_response.pyi -frontier_api/model/v1beta1_list_auth_strategies_response.py -frontier_api/model/v1beta1_list_auth_strategies_response.pyi -frontier_api/model/v1beta1_list_current_user_groups_response.py -frontier_api/model/v1beta1_list_current_user_groups_response.pyi -frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.py -frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.pyi -frontier_api/model/v1beta1_list_current_user_preferences_response.py -frontier_api/model/v1beta1_list_current_user_preferences_response.pyi -frontier_api/model/v1beta1_list_group_preferences_response.py -frontier_api/model/v1beta1_list_group_preferences_response.pyi -frontier_api/model/v1beta1_list_group_users_response.py -frontier_api/model/v1beta1_list_group_users_response.pyi -frontier_api/model/v1beta1_list_group_users_response_role_pair.py -frontier_api/model/v1beta1_list_group_users_response_role_pair.pyi -frontier_api/model/v1beta1_list_groups_response.py -frontier_api/model/v1beta1_list_groups_response.pyi -frontier_api/model/v1beta1_list_meta_schemas_response.py -frontier_api/model/v1beta1_list_meta_schemas_response.pyi -frontier_api/model/v1beta1_list_namespaces_response.py -frontier_api/model/v1beta1_list_namespaces_response.pyi -frontier_api/model/v1beta1_list_organization_admins_response.py -frontier_api/model/v1beta1_list_organization_admins_response.pyi -frontier_api/model/v1beta1_list_organization_audit_logs_response.py -frontier_api/model/v1beta1_list_organization_audit_logs_response.pyi -frontier_api/model/v1beta1_list_organization_domains_response.py -frontier_api/model/v1beta1_list_organization_domains_response.pyi -frontier_api/model/v1beta1_list_organization_groups_response.py -frontier_api/model/v1beta1_list_organization_groups_response.pyi -frontier_api/model/v1beta1_list_organization_invitations_response.py -frontier_api/model/v1beta1_list_organization_invitations_response.pyi -frontier_api/model/v1beta1_list_organization_preferences_response.py -frontier_api/model/v1beta1_list_organization_preferences_response.pyi -frontier_api/model/v1beta1_list_organization_projects_response.py -frontier_api/model/v1beta1_list_organization_projects_response.pyi -frontier_api/model/v1beta1_list_organization_roles_response.py -frontier_api/model/v1beta1_list_organization_roles_response.pyi -frontier_api/model/v1beta1_list_organization_service_users_response.py -frontier_api/model/v1beta1_list_organization_service_users_response.pyi -frontier_api/model/v1beta1_list_organization_users_response.py -frontier_api/model/v1beta1_list_organization_users_response.pyi -frontier_api/model/v1beta1_list_organizations_by_current_user_response.py -frontier_api/model/v1beta1_list_organizations_by_current_user_response.pyi -frontier_api/model/v1beta1_list_organizations_by_user_response.py -frontier_api/model/v1beta1_list_organizations_by_user_response.pyi -frontier_api/model/v1beta1_list_organizations_response.py -frontier_api/model/v1beta1_list_organizations_response.pyi -frontier_api/model/v1beta1_list_permissions_response.py -frontier_api/model/v1beta1_list_permissions_response.pyi -frontier_api/model/v1beta1_list_policies_response.py -frontier_api/model/v1beta1_list_policies_response.pyi -frontier_api/model/v1beta1_list_preferences_response.py -frontier_api/model/v1beta1_list_preferences_response.pyi -frontier_api/model/v1beta1_list_project_admins_response.py -frontier_api/model/v1beta1_list_project_admins_response.pyi -frontier_api/model/v1beta1_list_project_preferences_response.py -frontier_api/model/v1beta1_list_project_preferences_response.pyi -frontier_api/model/v1beta1_list_project_resources_response.py -frontier_api/model/v1beta1_list_project_resources_response.pyi -frontier_api/model/v1beta1_list_project_service_users_response.py -frontier_api/model/v1beta1_list_project_service_users_response.pyi -frontier_api/model/v1beta1_list_project_service_users_response_role_pair.py -frontier_api/model/v1beta1_list_project_service_users_response_role_pair.pyi -frontier_api/model/v1beta1_list_project_users_response.py -frontier_api/model/v1beta1_list_project_users_response.pyi -frontier_api/model/v1beta1_list_project_users_response_role_pair.py -frontier_api/model/v1beta1_list_project_users_response_role_pair.pyi -frontier_api/model/v1beta1_list_projects_by_current_user_response.py -frontier_api/model/v1beta1_list_projects_by_current_user_response.pyi -frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.py -frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.pyi -frontier_api/model/v1beta1_list_projects_by_user_response.py -frontier_api/model/v1beta1_list_projects_by_user_response.pyi -frontier_api/model/v1beta1_list_projects_response.py -frontier_api/model/v1beta1_list_projects_response.pyi -frontier_api/model/v1beta1_list_relations_response.py -frontier_api/model/v1beta1_list_relations_response.pyi -frontier_api/model/v1beta1_list_resources_response.py -frontier_api/model/v1beta1_list_resources_response.pyi -frontier_api/model/v1beta1_list_roles_response.py -frontier_api/model/v1beta1_list_roles_response.pyi -frontier_api/model/v1beta1_list_service_user_keys_response.py -frontier_api/model/v1beta1_list_service_user_keys_response.pyi -frontier_api/model/v1beta1_list_service_user_secrets_response.py -frontier_api/model/v1beta1_list_service_user_secrets_response.pyi -frontier_api/model/v1beta1_list_service_users_response.py -frontier_api/model/v1beta1_list_service_users_response.pyi -frontier_api/model/v1beta1_list_user_groups_response.py -frontier_api/model/v1beta1_list_user_groups_response.pyi -frontier_api/model/v1beta1_list_user_invitations_response.py -frontier_api/model/v1beta1_list_user_invitations_response.pyi -frontier_api/model/v1beta1_list_user_preferences_response.py -frontier_api/model/v1beta1_list_user_preferences_response.pyi -frontier_api/model/v1beta1_list_users_response.py -frontier_api/model/v1beta1_list_users_response.pyi -frontier_api/model/v1beta1_meta_schema.py -frontier_api/model/v1beta1_meta_schema.pyi -frontier_api/model/v1beta1_meta_schema_request_body.py -frontier_api/model/v1beta1_meta_schema_request_body.pyi -frontier_api/model/v1beta1_namespace.py -frontier_api/model/v1beta1_namespace.pyi -frontier_api/model/v1beta1_organization.py -frontier_api/model/v1beta1_organization.pyi -frontier_api/model/v1beta1_organization_request_body.py -frontier_api/model/v1beta1_organization_request_body.pyi -frontier_api/model/v1beta1_permission.py -frontier_api/model/v1beta1_permission.pyi -frontier_api/model/v1beta1_permission_request_body.py -frontier_api/model/v1beta1_permission_request_body.pyi -frontier_api/model/v1beta1_policy.py -frontier_api/model/v1beta1_policy.pyi -frontier_api/model/v1beta1_policy_request_body.py -frontier_api/model/v1beta1_policy_request_body.pyi -frontier_api/model/v1beta1_preference.py -frontier_api/model/v1beta1_preference.pyi -frontier_api/model/v1beta1_preference_request_body.py -frontier_api/model/v1beta1_preference_request_body.pyi -frontier_api/model/v1beta1_preference_trait.py -frontier_api/model/v1beta1_preference_trait.pyi -frontier_api/model/v1beta1_project.py -frontier_api/model/v1beta1_project.pyi -frontier_api/model/v1beta1_project_request_body.py -frontier_api/model/v1beta1_project_request_body.pyi -frontier_api/model/v1beta1_relation.py -frontier_api/model/v1beta1_relation.pyi -frontier_api/model/v1beta1_relation_request_body.py -frontier_api/model/v1beta1_relation_request_body.pyi -frontier_api/model/v1beta1_resource.py -frontier_api/model/v1beta1_resource.pyi -frontier_api/model/v1beta1_resource_request_body.py -frontier_api/model/v1beta1_resource_request_body.pyi -frontier_api/model/v1beta1_role.py -frontier_api/model/v1beta1_role.pyi -frontier_api/model/v1beta1_role_request_body.py -frontier_api/model/v1beta1_role_request_body.pyi -frontier_api/model/v1beta1_secret_credential.py -frontier_api/model/v1beta1_secret_credential.pyi -frontier_api/model/v1beta1_service_user.py -frontier_api/model/v1beta1_service_user.pyi -frontier_api/model/v1beta1_service_user_key.py -frontier_api/model/v1beta1_service_user_key.pyi -frontier_api/model/v1beta1_service_user_request_body.py -frontier_api/model/v1beta1_service_user_request_body.pyi -frontier_api/model/v1beta1_update_current_user_response.py -frontier_api/model/v1beta1_update_current_user_response.pyi -frontier_api/model/v1beta1_update_group_response.py -frontier_api/model/v1beta1_update_group_response.pyi -frontier_api/model/v1beta1_update_meta_schema_response.py -frontier_api/model/v1beta1_update_meta_schema_response.pyi -frontier_api/model/v1beta1_update_organization_response.py -frontier_api/model/v1beta1_update_organization_response.pyi -frontier_api/model/v1beta1_update_organization_role_response.py -frontier_api/model/v1beta1_update_organization_role_response.pyi -frontier_api/model/v1beta1_update_permission_response.py -frontier_api/model/v1beta1_update_permission_response.pyi -frontier_api/model/v1beta1_update_policy_response.py -frontier_api/model/v1beta1_update_policy_response.pyi -frontier_api/model/v1beta1_update_project_resource_response.py -frontier_api/model/v1beta1_update_project_resource_response.pyi -frontier_api/model/v1beta1_update_project_response.py -frontier_api/model/v1beta1_update_project_response.pyi -frontier_api/model/v1beta1_update_role_response.py -frontier_api/model/v1beta1_update_role_response.pyi -frontier_api/model/v1beta1_update_user_response.py -frontier_api/model/v1beta1_update_user_response.pyi -frontier_api/model/v1beta1_user.py -frontier_api/model/v1beta1_user.pyi -frontier_api/model/v1beta1_user_request_body.py -frontier_api/model/v1beta1_user_request_body.pyi -frontier_api/model/v1beta1_verify_organization_domain_response.py -frontier_api/model/v1beta1_verify_organization_domain_response.pyi frontier_api/models/__init__.py +frontier_api/models/billing_account_address.py +frontier_api/models/billing_account_balance.py +frontier_api/models/frontier_service_add_group_users_request.py +frontier_api/models/frontier_service_add_organization_users_request.py +frontier_api/models/frontier_service_authenticate2_request.py +frontier_api/models/frontier_service_check_feature_entitlement_request.py +frontier_api/models/frontier_service_create_billing_account_request.py +frontier_api/models/frontier_service_create_billing_usage_request.py +frontier_api/models/frontier_service_create_checkout_request.py +frontier_api/models/frontier_service_create_group_preferences_request.py +frontier_api/models/frontier_service_create_organization_audit_logs_request.py +frontier_api/models/frontier_service_create_organization_domain_request.py +frontier_api/models/frontier_service_create_organization_invitation_request.py +frontier_api/models/frontier_service_create_service_user_key_request.py +frontier_api/models/frontier_service_update_feature_request.py +frontier_api/models/frontier_service_update_plan_request.py +frontier_api/models/frontier_service_update_subscription_request.py +frontier_api/models/protobuf_any.py +frontier_api/models/protobuf_null_value.py +frontier_api/models/rpc_status.py +frontier_api/models/v1beta1_add_platform_user_request.py +frontier_api/models/v1beta1_audit_log.py +frontier_api/models/v1beta1_audit_log_actor.py +frontier_api/models/v1beta1_audit_log_target.py +frontier_api/models/v1beta1_auth_callback_request.py +frontier_api/models/v1beta1_auth_strategy.py +frontier_api/models/v1beta1_auth_token_request.py +frontier_api/models/v1beta1_auth_token_response.py +frontier_api/models/v1beta1_authenticate_response.py +frontier_api/models/v1beta1_batch_check_permission_body.py +frontier_api/models/v1beta1_batch_check_permission_request.py +frontier_api/models/v1beta1_batch_check_permission_response.py +frontier_api/models/v1beta1_batch_check_permission_response_pair.py +frontier_api/models/v1beta1_billing_account.py +frontier_api/models/v1beta1_billing_account_request_body.py +frontier_api/models/v1beta1_billing_transaction.py +frontier_api/models/v1beta1_check_feature_entitlement_response.py +frontier_api/models/v1beta1_check_federated_resource_permission_request.py +frontier_api/models/v1beta1_check_federated_resource_permission_response.py +frontier_api/models/v1beta1_check_resource_permission_request.py +frontier_api/models/v1beta1_check_resource_permission_response.py +frontier_api/models/v1beta1_checkout_feature_body.py +frontier_api/models/v1beta1_checkout_session.py +frontier_api/models/v1beta1_checkout_subscription_body.py +frontier_api/models/v1beta1_create_billing_account_response.py +frontier_api/models/v1beta1_create_checkout_response.py +frontier_api/models/v1beta1_create_current_user_preferences_request.py +frontier_api/models/v1beta1_create_current_user_preferences_response.py +frontier_api/models/v1beta1_create_feature_request.py +frontier_api/models/v1beta1_create_feature_response.py +frontier_api/models/v1beta1_create_group_preferences_response.py +frontier_api/models/v1beta1_create_group_response.py +frontier_api/models/v1beta1_create_meta_schema_response.py +frontier_api/models/v1beta1_create_organization_domain_response.py +frontier_api/models/v1beta1_create_organization_invitation_response.py +frontier_api/models/v1beta1_create_organization_preferences_response.py +frontier_api/models/v1beta1_create_organization_response.py +frontier_api/models/v1beta1_create_organization_role_response.py +frontier_api/models/v1beta1_create_permission_request.py +frontier_api/models/v1beta1_create_permission_response.py +frontier_api/models/v1beta1_create_plan_request.py +frontier_api/models/v1beta1_create_plan_response.py +frontier_api/models/v1beta1_create_policy_response.py +frontier_api/models/v1beta1_create_preferences_request.py +frontier_api/models/v1beta1_create_preferences_response.py +frontier_api/models/v1beta1_create_project_preferences_response.py +frontier_api/models/v1beta1_create_project_resource_response.py +frontier_api/models/v1beta1_create_project_response.py +frontier_api/models/v1beta1_create_relation_response.py +frontier_api/models/v1beta1_create_role_response.py +frontier_api/models/v1beta1_create_service_user_key_response.py +frontier_api/models/v1beta1_create_service_user_request.py +frontier_api/models/v1beta1_create_service_user_response.py +frontier_api/models/v1beta1_create_service_user_secret_response.py +frontier_api/models/v1beta1_create_user_preferences_response.py +frontier_api/models/v1beta1_create_user_response.py +frontier_api/models/v1beta1_describe_preferences_response.py +frontier_api/models/v1beta1_domain.py +frontier_api/models/v1beta1_feature.py +frontier_api/models/v1beta1_feature_request_body.py +frontier_api/models/v1beta1_get_billing_account_response.py +frontier_api/models/v1beta1_get_billing_balance_response.py +frontier_api/models/v1beta1_get_current_user_response.py +frontier_api/models/v1beta1_get_feature_response.py +frontier_api/models/v1beta1_get_group_response.py +frontier_api/models/v1beta1_get_jwks_response.py +frontier_api/models/v1beta1_get_meta_schema_response.py +frontier_api/models/v1beta1_get_namespace_response.py +frontier_api/models/v1beta1_get_organization_audit_log_response.py +frontier_api/models/v1beta1_get_organization_domain_response.py +frontier_api/models/v1beta1_get_organization_invitation_response.py +frontier_api/models/v1beta1_get_organization_response.py +frontier_api/models/v1beta1_get_organization_role_response.py +frontier_api/models/v1beta1_get_permission_response.py +frontier_api/models/v1beta1_get_plan_response.py +frontier_api/models/v1beta1_get_policy_response.py +frontier_api/models/v1beta1_get_project_resource_response.py +frontier_api/models/v1beta1_get_project_response.py +frontier_api/models/v1beta1_get_relation_response.py +frontier_api/models/v1beta1_get_service_user_key_response.py +frontier_api/models/v1beta1_get_service_user_response.py +frontier_api/models/v1beta1_get_subscription_response.py +frontier_api/models/v1beta1_get_user_response.py +frontier_api/models/v1beta1_group.py +frontier_api/models/v1beta1_group_request_body.py +frontier_api/models/v1beta1_invitation.py +frontier_api/models/v1beta1_json_web_key.py +frontier_api/models/v1beta1_key_credential.py +frontier_api/models/v1beta1_list_all_organizations_response.py +frontier_api/models/v1beta1_list_all_users_response.py +frontier_api/models/v1beta1_list_auth_strategies_response.py +frontier_api/models/v1beta1_list_billing_accounts_response.py +frontier_api/models/v1beta1_list_billing_transactions_response.py +frontier_api/models/v1beta1_list_checkouts_response.py +frontier_api/models/v1beta1_list_current_user_groups_response.py +frontier_api/models/v1beta1_list_current_user_groups_response_access_pair.py +frontier_api/models/v1beta1_list_current_user_invitations_response.py +frontier_api/models/v1beta1_list_current_user_preferences_response.py +frontier_api/models/v1beta1_list_features_response.py +frontier_api/models/v1beta1_list_group_preferences_response.py +frontier_api/models/v1beta1_list_group_users_response.py +frontier_api/models/v1beta1_list_group_users_response_role_pair.py +frontier_api/models/v1beta1_list_groups_response.py +frontier_api/models/v1beta1_list_meta_schemas_response.py +frontier_api/models/v1beta1_list_namespaces_response.py +frontier_api/models/v1beta1_list_organization_admins_response.py +frontier_api/models/v1beta1_list_organization_audit_logs_response.py +frontier_api/models/v1beta1_list_organization_domains_response.py +frontier_api/models/v1beta1_list_organization_groups_response.py +frontier_api/models/v1beta1_list_organization_invitations_response.py +frontier_api/models/v1beta1_list_organization_preferences_response.py +frontier_api/models/v1beta1_list_organization_projects_response.py +frontier_api/models/v1beta1_list_organization_roles_response.py +frontier_api/models/v1beta1_list_organization_service_users_response.py +frontier_api/models/v1beta1_list_organization_users_response.py +frontier_api/models/v1beta1_list_organization_users_response_role_pair.py +frontier_api/models/v1beta1_list_organizations_by_current_user_response.py +frontier_api/models/v1beta1_list_organizations_by_user_response.py +frontier_api/models/v1beta1_list_organizations_response.py +frontier_api/models/v1beta1_list_permissions_response.py +frontier_api/models/v1beta1_list_plans_response.py +frontier_api/models/v1beta1_list_policies_response.py +frontier_api/models/v1beta1_list_preferences_response.py +frontier_api/models/v1beta1_list_project_admins_response.py +frontier_api/models/v1beta1_list_project_groups_response.py +frontier_api/models/v1beta1_list_project_groups_response_role_pair.py +frontier_api/models/v1beta1_list_project_preferences_response.py +frontier_api/models/v1beta1_list_project_resources_response.py +frontier_api/models/v1beta1_list_project_service_users_response.py +frontier_api/models/v1beta1_list_project_service_users_response_role_pair.py +frontier_api/models/v1beta1_list_project_users_response.py +frontier_api/models/v1beta1_list_project_users_response_role_pair.py +frontier_api/models/v1beta1_list_projects_by_current_user_response.py +frontier_api/models/v1beta1_list_projects_by_current_user_response_access_pair.py +frontier_api/models/v1beta1_list_projects_by_user_response.py +frontier_api/models/v1beta1_list_projects_response.py +frontier_api/models/v1beta1_list_relations_response.py +frontier_api/models/v1beta1_list_resources_response.py +frontier_api/models/v1beta1_list_roles_response.py +frontier_api/models/v1beta1_list_service_user_keys_response.py +frontier_api/models/v1beta1_list_service_user_secrets_response.py +frontier_api/models/v1beta1_list_service_users_response.py +frontier_api/models/v1beta1_list_subscriptions_response.py +frontier_api/models/v1beta1_list_user_groups_response.py +frontier_api/models/v1beta1_list_user_invitations_response.py +frontier_api/models/v1beta1_list_user_preferences_response.py +frontier_api/models/v1beta1_list_users_response.py +frontier_api/models/v1beta1_meta_schema.py +frontier_api/models/v1beta1_meta_schema_request_body.py +frontier_api/models/v1beta1_namespace.py +frontier_api/models/v1beta1_organization.py +frontier_api/models/v1beta1_organization_request_body.py +frontier_api/models/v1beta1_permission.py +frontier_api/models/v1beta1_permission_request_body.py +frontier_api/models/v1beta1_plan.py +frontier_api/models/v1beta1_plan_request_body.py +frontier_api/models/v1beta1_policy.py +frontier_api/models/v1beta1_policy_request_body.py +frontier_api/models/v1beta1_preference.py +frontier_api/models/v1beta1_preference_request_body.py +frontier_api/models/v1beta1_preference_trait.py +frontier_api/models/v1beta1_price.py +frontier_api/models/v1beta1_project.py +frontier_api/models/v1beta1_project_request_body.py +frontier_api/models/v1beta1_relation.py +frontier_api/models/v1beta1_relation_request_body.py +frontier_api/models/v1beta1_resource.py +frontier_api/models/v1beta1_resource_request_body.py +frontier_api/models/v1beta1_role.py +frontier_api/models/v1beta1_role_request_body.py +frontier_api/models/v1beta1_secret_credential.py +frontier_api/models/v1beta1_service_user.py +frontier_api/models/v1beta1_service_user_key.py +frontier_api/models/v1beta1_service_user_request_body.py +frontier_api/models/v1beta1_subscription.py +frontier_api/models/v1beta1_update_billing_account_response.py +frontier_api/models/v1beta1_update_current_user_response.py +frontier_api/models/v1beta1_update_feature_response.py +frontier_api/models/v1beta1_update_group_response.py +frontier_api/models/v1beta1_update_meta_schema_response.py +frontier_api/models/v1beta1_update_organization_response.py +frontier_api/models/v1beta1_update_organization_role_response.py +frontier_api/models/v1beta1_update_permission_response.py +frontier_api/models/v1beta1_update_plan_response.py +frontier_api/models/v1beta1_update_policy_response.py +frontier_api/models/v1beta1_update_project_resource_response.py +frontier_api/models/v1beta1_update_project_response.py +frontier_api/models/v1beta1_update_role_response.py +frontier_api/models/v1beta1_update_subscription_response.py +frontier_api/models/v1beta1_update_user_response.py +frontier_api/models/v1beta1_usage.py +frontier_api/models/v1beta1_user.py +frontier_api/models/v1beta1_user_request_body.py +frontier_api/models/v1beta1_verify_organization_domain_response.py +frontier_api/py.typed frontier_api/rest.py -frontier_api/schemas.py git_push.sh requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_models/__init__.py -test/test_models/test_protobuf_any.py -test/test_models/test_protobuf_null_value.py -test/test_models/test_rpc_status.py -test/test_models/test_v1beta1_audit_log.py -test/test_models/test_v1beta1_audit_log_actor.py -test/test_models/test_v1beta1_audit_log_target.py -test/test_models/test_v1beta1_auth_callback_request.py -test/test_models/test_v1beta1_auth_strategy.py -test/test_models/test_v1beta1_auth_token_request.py -test/test_models/test_v1beta1_auth_token_response.py -test/test_models/test_v1beta1_authenticate_response.py -test/test_models/test_v1beta1_batch_check_permission_body.py -test/test_models/test_v1beta1_batch_check_permission_request.py -test/test_models/test_v1beta1_batch_check_permission_response.py -test/test_models/test_v1beta1_batch_check_permission_response_pair.py -test/test_models/test_v1beta1_check_resource_permission_request.py -test/test_models/test_v1beta1_check_resource_permission_response.py -test/test_models/test_v1beta1_create_current_user_preferences_request.py -test/test_models/test_v1beta1_create_current_user_preferences_response.py -test/test_models/test_v1beta1_create_group_preferences_response.py -test/test_models/test_v1beta1_create_group_response.py -test/test_models/test_v1beta1_create_meta_schema_response.py -test/test_models/test_v1beta1_create_organization_domain_response.py -test/test_models/test_v1beta1_create_organization_invitation_response.py -test/test_models/test_v1beta1_create_organization_preferences_response.py -test/test_models/test_v1beta1_create_organization_response.py -test/test_models/test_v1beta1_create_organization_role_response.py -test/test_models/test_v1beta1_create_permission_request.py -test/test_models/test_v1beta1_create_permission_response.py -test/test_models/test_v1beta1_create_policy_response.py -test/test_models/test_v1beta1_create_preferences_request.py -test/test_models/test_v1beta1_create_preferences_response.py -test/test_models/test_v1beta1_create_project_preferences_response.py -test/test_models/test_v1beta1_create_project_resource_response.py -test/test_models/test_v1beta1_create_project_response.py -test/test_models/test_v1beta1_create_relation_response.py -test/test_models/test_v1beta1_create_role_response.py -test/test_models/test_v1beta1_create_service_user_key_response.py -test/test_models/test_v1beta1_create_service_user_request.py -test/test_models/test_v1beta1_create_service_user_response.py -test/test_models/test_v1beta1_create_service_user_secret_response.py -test/test_models/test_v1beta1_create_user_preferences_response.py -test/test_models/test_v1beta1_create_user_response.py -test/test_models/test_v1beta1_describe_preferences_response.py -test/test_models/test_v1beta1_domain.py -test/test_models/test_v1beta1_get_current_user_response.py -test/test_models/test_v1beta1_get_group_response.py -test/test_models/test_v1beta1_get_jwks_response.py -test/test_models/test_v1beta1_get_meta_schema_response.py -test/test_models/test_v1beta1_get_namespace_response.py -test/test_models/test_v1beta1_get_organization_audit_log_response.py -test/test_models/test_v1beta1_get_organization_domain_response.py -test/test_models/test_v1beta1_get_organization_invitation_response.py -test/test_models/test_v1beta1_get_organization_response.py -test/test_models/test_v1beta1_get_organization_role_response.py -test/test_models/test_v1beta1_get_permission_response.py -test/test_models/test_v1beta1_get_policy_response.py -test/test_models/test_v1beta1_get_project_resource_response.py -test/test_models/test_v1beta1_get_project_response.py -test/test_models/test_v1beta1_get_relation_response.py -test/test_models/test_v1beta1_get_service_user_key_response.py -test/test_models/test_v1beta1_get_service_user_response.py -test/test_models/test_v1beta1_get_user_response.py -test/test_models/test_v1beta1_group.py -test/test_models/test_v1beta1_group_request_body.py -test/test_models/test_v1beta1_invitation.py -test/test_models/test_v1beta1_json_web_key.py -test/test_models/test_v1beta1_key_credential.py -test/test_models/test_v1beta1_list_all_organizations_response.py -test/test_models/test_v1beta1_list_all_users_response.py -test/test_models/test_v1beta1_list_auth_strategies_response.py -test/test_models/test_v1beta1_list_current_user_groups_response.py -test/test_models/test_v1beta1_list_current_user_groups_response_access_pair.py -test/test_models/test_v1beta1_list_current_user_preferences_response.py -test/test_models/test_v1beta1_list_group_preferences_response.py -test/test_models/test_v1beta1_list_group_users_response.py -test/test_models/test_v1beta1_list_group_users_response_role_pair.py -test/test_models/test_v1beta1_list_groups_response.py -test/test_models/test_v1beta1_list_meta_schemas_response.py -test/test_models/test_v1beta1_list_namespaces_response.py -test/test_models/test_v1beta1_list_organization_admins_response.py -test/test_models/test_v1beta1_list_organization_audit_logs_response.py -test/test_models/test_v1beta1_list_organization_domains_response.py -test/test_models/test_v1beta1_list_organization_groups_response.py -test/test_models/test_v1beta1_list_organization_invitations_response.py -test/test_models/test_v1beta1_list_organization_preferences_response.py -test/test_models/test_v1beta1_list_organization_projects_response.py -test/test_models/test_v1beta1_list_organization_roles_response.py -test/test_models/test_v1beta1_list_organization_service_users_response.py -test/test_models/test_v1beta1_list_organization_users_response.py -test/test_models/test_v1beta1_list_organizations_by_current_user_response.py -test/test_models/test_v1beta1_list_organizations_by_user_response.py -test/test_models/test_v1beta1_list_organizations_response.py -test/test_models/test_v1beta1_list_permissions_response.py -test/test_models/test_v1beta1_list_policies_response.py -test/test_models/test_v1beta1_list_preferences_response.py -test/test_models/test_v1beta1_list_project_admins_response.py -test/test_models/test_v1beta1_list_project_preferences_response.py -test/test_models/test_v1beta1_list_project_resources_response.py -test/test_models/test_v1beta1_list_project_service_users_response.py -test/test_models/test_v1beta1_list_project_service_users_response_role_pair.py -test/test_models/test_v1beta1_list_project_users_response.py -test/test_models/test_v1beta1_list_project_users_response_role_pair.py -test/test_models/test_v1beta1_list_projects_by_current_user_response.py -test/test_models/test_v1beta1_list_projects_by_current_user_response_access_pair.py -test/test_models/test_v1beta1_list_projects_by_user_response.py -test/test_models/test_v1beta1_list_projects_response.py -test/test_models/test_v1beta1_list_relations_response.py -test/test_models/test_v1beta1_list_resources_response.py -test/test_models/test_v1beta1_list_roles_response.py -test/test_models/test_v1beta1_list_service_user_keys_response.py -test/test_models/test_v1beta1_list_service_user_secrets_response.py -test/test_models/test_v1beta1_list_service_users_response.py -test/test_models/test_v1beta1_list_user_groups_response.py -test/test_models/test_v1beta1_list_user_invitations_response.py -test/test_models/test_v1beta1_list_user_preferences_response.py -test/test_models/test_v1beta1_list_users_response.py -test/test_models/test_v1beta1_meta_schema.py -test/test_models/test_v1beta1_meta_schema_request_body.py -test/test_models/test_v1beta1_namespace.py -test/test_models/test_v1beta1_organization.py -test/test_models/test_v1beta1_organization_request_body.py -test/test_models/test_v1beta1_permission.py -test/test_models/test_v1beta1_permission_request_body.py -test/test_models/test_v1beta1_policy.py -test/test_models/test_v1beta1_policy_request_body.py -test/test_models/test_v1beta1_preference.py -test/test_models/test_v1beta1_preference_request_body.py -test/test_models/test_v1beta1_preference_trait.py -test/test_models/test_v1beta1_project.py -test/test_models/test_v1beta1_project_request_body.py -test/test_models/test_v1beta1_relation.py -test/test_models/test_v1beta1_relation_request_body.py -test/test_models/test_v1beta1_resource.py -test/test_models/test_v1beta1_resource_request_body.py -test/test_models/test_v1beta1_role.py -test/test_models/test_v1beta1_role_request_body.py -test/test_models/test_v1beta1_secret_credential.py -test/test_models/test_v1beta1_service_user.py -test/test_models/test_v1beta1_service_user_key.py -test/test_models/test_v1beta1_service_user_request_body.py -test/test_models/test_v1beta1_update_current_user_response.py -test/test_models/test_v1beta1_update_group_response.py -test/test_models/test_v1beta1_update_meta_schema_response.py -test/test_models/test_v1beta1_update_organization_response.py -test/test_models/test_v1beta1_update_organization_role_response.py -test/test_models/test_v1beta1_update_permission_response.py -test/test_models/test_v1beta1_update_policy_response.py -test/test_models/test_v1beta1_update_project_resource_response.py -test/test_models/test_v1beta1_update_project_response.py -test/test_models/test_v1beta1_update_role_response.py -test/test_models/test_v1beta1_update_user_response.py -test/test_models/test_v1beta1_user.py -test/test_models/test_v1beta1_user_request_body.py -test/test_models/test_v1beta1_verify_organization_domain_response.py +test/test_audit_log_api.py +test/test_authn_api.py +test/test_authz_api.py +test/test_billing_account_address.py +test/test_billing_account_balance.py +test/test_billing_api.py +test/test_checkout_api.py +test/test_entitlement_api.py +test/test_feature_api.py +test/test_frontier_service_add_group_users_request.py +test/test_frontier_service_add_organization_users_request.py +test/test_frontier_service_authenticate2_request.py +test/test_frontier_service_check_feature_entitlement_request.py +test/test_frontier_service_create_billing_account_request.py +test/test_frontier_service_create_billing_usage_request.py +test/test_frontier_service_create_checkout_request.py +test/test_frontier_service_create_group_preferences_request.py +test/test_frontier_service_create_organization_audit_logs_request.py +test/test_frontier_service_create_organization_domain_request.py +test/test_frontier_service_create_organization_invitation_request.py +test/test_frontier_service_create_service_user_key_request.py +test/test_frontier_service_update_feature_request.py +test/test_frontier_service_update_plan_request.py +test/test_frontier_service_update_subscription_request.py +test/test_group_api.py +test/test_meta_schema_api.py +test/test_namespace_api.py +test/test_organization_api.py +test/test_permission_api.py +test/test_plan_api.py +test/test_platform_api.py +test/test_policy_api.py +test/test_preference_api.py +test/test_project_api.py +test/test_protobuf_any.py +test/test_protobuf_null_value.py +test/test_relation_api.py +test/test_resource_api.py +test/test_role_api.py +test/test_rpc_status.py +test/test_service_user_api.py +test/test_subscription_api.py +test/test_transaction_api.py +test/test_usage_api.py +test/test_user_api.py +test/test_v1beta1_add_platform_user_request.py +test/test_v1beta1_audit_log.py +test/test_v1beta1_audit_log_actor.py +test/test_v1beta1_audit_log_target.py +test/test_v1beta1_auth_callback_request.py +test/test_v1beta1_auth_strategy.py +test/test_v1beta1_auth_token_request.py +test/test_v1beta1_auth_token_response.py +test/test_v1beta1_authenticate_response.py +test/test_v1beta1_batch_check_permission_body.py +test/test_v1beta1_batch_check_permission_request.py +test/test_v1beta1_batch_check_permission_response.py +test/test_v1beta1_batch_check_permission_response_pair.py +test/test_v1beta1_billing_account.py +test/test_v1beta1_billing_account_request_body.py +test/test_v1beta1_billing_transaction.py +test/test_v1beta1_check_feature_entitlement_response.py +test/test_v1beta1_check_federated_resource_permission_request.py +test/test_v1beta1_check_federated_resource_permission_response.py +test/test_v1beta1_check_resource_permission_request.py +test/test_v1beta1_check_resource_permission_response.py +test/test_v1beta1_checkout_feature_body.py +test/test_v1beta1_checkout_session.py +test/test_v1beta1_checkout_subscription_body.py +test/test_v1beta1_create_billing_account_response.py +test/test_v1beta1_create_checkout_response.py +test/test_v1beta1_create_current_user_preferences_request.py +test/test_v1beta1_create_current_user_preferences_response.py +test/test_v1beta1_create_feature_request.py +test/test_v1beta1_create_feature_response.py +test/test_v1beta1_create_group_preferences_response.py +test/test_v1beta1_create_group_response.py +test/test_v1beta1_create_meta_schema_response.py +test/test_v1beta1_create_organization_domain_response.py +test/test_v1beta1_create_organization_invitation_response.py +test/test_v1beta1_create_organization_preferences_response.py +test/test_v1beta1_create_organization_response.py +test/test_v1beta1_create_organization_role_response.py +test/test_v1beta1_create_permission_request.py +test/test_v1beta1_create_permission_response.py +test/test_v1beta1_create_plan_request.py +test/test_v1beta1_create_plan_response.py +test/test_v1beta1_create_policy_response.py +test/test_v1beta1_create_preferences_request.py +test/test_v1beta1_create_preferences_response.py +test/test_v1beta1_create_project_preferences_response.py +test/test_v1beta1_create_project_resource_response.py +test/test_v1beta1_create_project_response.py +test/test_v1beta1_create_relation_response.py +test/test_v1beta1_create_role_response.py +test/test_v1beta1_create_service_user_key_response.py +test/test_v1beta1_create_service_user_request.py +test/test_v1beta1_create_service_user_response.py +test/test_v1beta1_create_service_user_secret_response.py +test/test_v1beta1_create_user_preferences_response.py +test/test_v1beta1_create_user_response.py +test/test_v1beta1_describe_preferences_response.py +test/test_v1beta1_domain.py +test/test_v1beta1_feature.py +test/test_v1beta1_feature_request_body.py +test/test_v1beta1_get_billing_account_response.py +test/test_v1beta1_get_billing_balance_response.py +test/test_v1beta1_get_current_user_response.py +test/test_v1beta1_get_feature_response.py +test/test_v1beta1_get_group_response.py +test/test_v1beta1_get_jwks_response.py +test/test_v1beta1_get_meta_schema_response.py +test/test_v1beta1_get_namespace_response.py +test/test_v1beta1_get_organization_audit_log_response.py +test/test_v1beta1_get_organization_domain_response.py +test/test_v1beta1_get_organization_invitation_response.py +test/test_v1beta1_get_organization_response.py +test/test_v1beta1_get_organization_role_response.py +test/test_v1beta1_get_permission_response.py +test/test_v1beta1_get_plan_response.py +test/test_v1beta1_get_policy_response.py +test/test_v1beta1_get_project_resource_response.py +test/test_v1beta1_get_project_response.py +test/test_v1beta1_get_relation_response.py +test/test_v1beta1_get_service_user_key_response.py +test/test_v1beta1_get_service_user_response.py +test/test_v1beta1_get_subscription_response.py +test/test_v1beta1_get_user_response.py +test/test_v1beta1_group.py +test/test_v1beta1_group_request_body.py +test/test_v1beta1_invitation.py +test/test_v1beta1_json_web_key.py +test/test_v1beta1_key_credential.py +test/test_v1beta1_list_all_organizations_response.py +test/test_v1beta1_list_all_users_response.py +test/test_v1beta1_list_auth_strategies_response.py +test/test_v1beta1_list_billing_accounts_response.py +test/test_v1beta1_list_billing_transactions_response.py +test/test_v1beta1_list_checkouts_response.py +test/test_v1beta1_list_current_user_groups_response.py +test/test_v1beta1_list_current_user_groups_response_access_pair.py +test/test_v1beta1_list_current_user_invitations_response.py +test/test_v1beta1_list_current_user_preferences_response.py +test/test_v1beta1_list_features_response.py +test/test_v1beta1_list_group_preferences_response.py +test/test_v1beta1_list_group_users_response.py +test/test_v1beta1_list_group_users_response_role_pair.py +test/test_v1beta1_list_groups_response.py +test/test_v1beta1_list_meta_schemas_response.py +test/test_v1beta1_list_namespaces_response.py +test/test_v1beta1_list_organization_admins_response.py +test/test_v1beta1_list_organization_audit_logs_response.py +test/test_v1beta1_list_organization_domains_response.py +test/test_v1beta1_list_organization_groups_response.py +test/test_v1beta1_list_organization_invitations_response.py +test/test_v1beta1_list_organization_preferences_response.py +test/test_v1beta1_list_organization_projects_response.py +test/test_v1beta1_list_organization_roles_response.py +test/test_v1beta1_list_organization_service_users_response.py +test/test_v1beta1_list_organization_users_response.py +test/test_v1beta1_list_organization_users_response_role_pair.py +test/test_v1beta1_list_organizations_by_current_user_response.py +test/test_v1beta1_list_organizations_by_user_response.py +test/test_v1beta1_list_organizations_response.py +test/test_v1beta1_list_permissions_response.py +test/test_v1beta1_list_plans_response.py +test/test_v1beta1_list_policies_response.py +test/test_v1beta1_list_preferences_response.py +test/test_v1beta1_list_project_admins_response.py +test/test_v1beta1_list_project_groups_response.py +test/test_v1beta1_list_project_groups_response_role_pair.py +test/test_v1beta1_list_project_preferences_response.py +test/test_v1beta1_list_project_resources_response.py +test/test_v1beta1_list_project_service_users_response.py +test/test_v1beta1_list_project_service_users_response_role_pair.py +test/test_v1beta1_list_project_users_response.py +test/test_v1beta1_list_project_users_response_role_pair.py +test/test_v1beta1_list_projects_by_current_user_response.py +test/test_v1beta1_list_projects_by_current_user_response_access_pair.py +test/test_v1beta1_list_projects_by_user_response.py +test/test_v1beta1_list_projects_response.py +test/test_v1beta1_list_relations_response.py +test/test_v1beta1_list_resources_response.py +test/test_v1beta1_list_roles_response.py +test/test_v1beta1_list_service_user_keys_response.py +test/test_v1beta1_list_service_user_secrets_response.py +test/test_v1beta1_list_service_users_response.py +test/test_v1beta1_list_subscriptions_response.py +test/test_v1beta1_list_user_groups_response.py +test/test_v1beta1_list_user_invitations_response.py +test/test_v1beta1_list_user_preferences_response.py +test/test_v1beta1_list_users_response.py +test/test_v1beta1_meta_schema.py +test/test_v1beta1_meta_schema_request_body.py +test/test_v1beta1_namespace.py +test/test_v1beta1_organization.py +test/test_v1beta1_organization_request_body.py +test/test_v1beta1_permission.py +test/test_v1beta1_permission_request_body.py +test/test_v1beta1_plan.py +test/test_v1beta1_plan_request_body.py +test/test_v1beta1_policy.py +test/test_v1beta1_policy_request_body.py +test/test_v1beta1_preference.py +test/test_v1beta1_preference_request_body.py +test/test_v1beta1_preference_trait.py +test/test_v1beta1_price.py +test/test_v1beta1_project.py +test/test_v1beta1_project_request_body.py +test/test_v1beta1_relation.py +test/test_v1beta1_relation_request_body.py +test/test_v1beta1_resource.py +test/test_v1beta1_resource_request_body.py +test/test_v1beta1_role.py +test/test_v1beta1_role_request_body.py +test/test_v1beta1_secret_credential.py +test/test_v1beta1_service_user.py +test/test_v1beta1_service_user_key.py +test/test_v1beta1_service_user_request_body.py +test/test_v1beta1_subscription.py +test/test_v1beta1_update_billing_account_response.py +test/test_v1beta1_update_current_user_response.py +test/test_v1beta1_update_feature_response.py +test/test_v1beta1_update_group_response.py +test/test_v1beta1_update_meta_schema_response.py +test/test_v1beta1_update_organization_response.py +test/test_v1beta1_update_organization_role_response.py +test/test_v1beta1_update_permission_response.py +test/test_v1beta1_update_plan_response.py +test/test_v1beta1_update_policy_response.py +test/test_v1beta1_update_project_resource_response.py +test/test_v1beta1_update_project_response.py +test/test_v1beta1_update_role_response.py +test/test_v1beta1_update_subscription_response.py +test/test_v1beta1_update_user_response.py +test/test_v1beta1_usage.py +test/test_v1beta1_user.py +test/test_v1beta1_user_request_body.py +test/test_v1beta1_verify_organization_domain_response.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index cd802a1..3769235 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/Makefile b/Makefile index bc8b763..c6d2976 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -FRONTIER_COMMIT := 11a2df9abfee551997256fe9a0f3b10356cfc283 +FRONTIER_COMMIT := df8151fb7b24a0c2f2072257bd82516b816cdd30 .PHONY: clean genclient genspec genclient: clean genspec ## Generate the client using openapi-generator diff --git a/README.md b/README.md index 012fb62..571dfb5 100644 --- a/README.md +++ b/README.md @@ -10,98 +10,7 @@ For more information, please visit [https://raystack.org/](https://raystack.org/ ## Requirements. -Python >=3.7 - -## Migration from other generators like python and python-legacy - -### Changes -1. This generator uses spec case for all (object) property names and parameter names. - - So if the spec has a property name like camelCase, it will use camelCase rather than camel_case - - So you will need to update how you input and read properties to use spec case -2. Endpoint parameters are stored in dictionaries to prevent collisions (explanation below) - - So you will need to update how you pass data in to endpoints -3. Endpoint responses now include the original response, the deserialized response body, and (todo)the deserialized headers - - So you will need to update your code to use response.body to access deserialized data -4. All validated data is instantiated in an instance that subclasses all validated Schema classes and Decimal/str/list/tuple/frozendict/NoneClass/BoolClass/bytes/io.FileIO - - This means that you can use isinstance to check if a payload validated against a schema class - - This means that no data will be of type None/True/False - - ingested None will subclass NoneClass - - ingested True will subclass BoolClass - - ingested False will subclass BoolClass - - So if you need to check is True/False/None, instead use instance.is_true_oapg()/.is_false_oapg()/.is_none_oapg() -5. All validated class instances are immutable except for ones based on io.File - - This is because if properties were changed after validation, that validation would no longer apply - - So no changing values or property values after a class has been instantiated -6. String + Number types with formats - - String type data is stored as a string and if you need to access types based on its format like date, - date-time, uuid, number etc then you will need to use accessor functions on the instance - - type string + format: See .as_date_oapg, .as_datetime_oapg, .as_decimal_oapg, .as_uuid_oapg - - type number + format: See .as_float_oapg, .as_int_oapg - - this was done because openapi/json-schema defines constraints. string data may be type string with no format - keyword in one schema, and include a format constraint in another schema - - So if you need to access a string format based type, use as_date_oapg/as_datetime_oapg/as_decimal_oapg/as_uuid_oapg - - So if you need to access a number format based type, use as_int_oapg/as_float_oapg -7. Property access on AnyType(type unset) or object(dict) schemas - - Only required keys with valid python names are properties like .someProp and have type hints - - All optional keys may not exist, so properties are not defined for them - - One can access optional values with dict_instance['optionalProp'] and KeyError will be raised if it does not exist - - Use get_item_oapg if you need a way to always get a value whether or not the key exists - - If the key does not exist, schemas.unset is returned from calling dict_instance.get_item_oapg('optionalProp') - - All required and optional keys have type hints for this method, and @typing.overload is used - - A type hint is also generated for additionalProperties accessed using this method - - So you will need to update you code to use some_instance['optionalProp'] to access optional property - and additionalProperty values -8. The location of the api classes has changed - - Api classes are located in your_package.apis.tags.some_api - - This change was made to eliminate redundant code generation - - Legacy generators generated the same endpoint twice if it had > 1 tag on it - - This generator defines an endpoint in one class, then inherits that class to generate - apis by tags and by paths - - This change reduces code and allows quicker run time if you use the path apis - - path apis are at your_package.apis.paths.some_path - - Those apis will only load their needed models, which is less to load than all of the resources needed in a tag api - - So you will need to update your import paths to the api classes - -### Why are Oapg and _oapg used in class and method names? -Classes can have arbitrarily named properties set on them -Endpoints can have arbitrary operationId method names set -For those reasons, I use the prefix Oapg and _oapg to greatly reduce the likelihood of collisions -on protected + public classes/methods. -oapg stands for OpenApi Python Generator. - -### Object property spec case -This was done because when payloads are ingested, they can be validated against N number of schemas. -If the input signature used a different property name then that has mutated the payload. -So SchemaA and SchemaB must both see the camelCase spec named variable. -Also it is possible to send in two properties, named camelCase and camel_case in the same payload. -That use case should be support so spec case is used. - -### Parameter spec case -Parameters can be included in different locations including: -- query -- path -- header -- cookie - -Any of those parameters could use the same parameter names, so if every parameter -was included as an endpoint parameter in a function signature, they would collide. -For that reason, each of those inputs have been separated out into separate typed dictionaries: -- query_params -- path_params -- header_params -- cookie_params - -So when updating your code, you will need to pass endpoint parameters in using those -dictionaries. - -### Endpoint responses -Endpoint responses have been enriched to now include more information. -Any response reom an endpoint will now include the following properties: -response: urllib3.HTTPResponse -body: typing.Union[Unset, Schema] -headers: typing.Union[Unset, TODO] -Note: response header deserialization has not yet been added - +Python 3.7+ ## Installation & Usage ### pip install @@ -132,6 +41,10 @@ Then import the package: import frontier_api ``` +### Tests + +Execute `pytest` to run the tests. + ## Getting Started Please follow the [installation procedure](#installation--usage) and then run the following: @@ -140,12 +53,9 @@ Please follow the [installation procedure](#installation--usage) and then run th import time import frontier_api +from frontier_api.rest import ApiException from pprint import pprint -from frontier_api.apis.tags import audit_log_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog -from frontier_api.model.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse -from frontier_api.model.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse + # Defining the host is optional and defaults to http://127.0.0.1:7400 # See configuration.py for a list of all supported configuration parameters. configuration = frontier_api.Configuration( @@ -159,41 +69,26 @@ configuration = frontier_api.Configuration( # Configure HTTP basic authorization: Basic configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] ) + # Enter a context with an instance of the API client with frontier_api.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = audit_log_api.AuditLogApi(api_client) - org_id = "orgId_example" # str | -body = dict( - logs=[ - V1beta1AuditLog( - id="id_example", - source="auth", - action="action_example", - actor=V1beta1AuditLogActor( - id="id_example", - type="type_example", - name="name_example", - ), -, - context=dict( - "key": "key_example", - ), - created_at="2023-06-07T05:39:56.961Z", - ) - ], - ) # anyType | + api_instance = frontier_api.AuditLogApi(api_client) + org_id = 'org_id_example' # str | + body = frontier_api.FrontierServiceCreateOrganizationAuditLogsRequest() # FrontierServiceCreateOrganizationAuditLogsRequest | try: # Create audit log - api_response = api_instance.frontier_service_create_organization_audit_logs(org_idbody) + api_response = api_instance.frontier_service_create_organization_audit_logs(org_id, body) + print("The response of AuditLogApi->frontier_service_create_organization_audit_logs:\n") pprint(api_response) - except frontier_api.ApiException as e: + except ApiException as e: print("Exception when calling AuditLogApi->frontier_service_create_organization_audit_logs: %s\n" % e) + ``` ## Documentation for API Endpoints @@ -202,305 +97,395 @@ All URIs are relative to *http://127.0.0.1:7400* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AuditLogApi* | [**frontier_service_create_organization_audit_logs**](docs/apis/tags/AuditLogApi.md#frontier_service_create_organization_audit_logs) | **post** /v1beta1/organization/{orgId}/auditlogs | Create audit log -*AuditLogApi* | [**frontier_service_get_organization_audit_log**](docs/apis/tags/AuditLogApi.md#frontier_service_get_organization_audit_log) | **get** /v1beta1/organization/{orgId}/auditlogs/{id} | Get audit log -*AuditLogApi* | [**frontier_service_list_organization_audit_logs**](docs/apis/tags/AuditLogApi.md#frontier_service_list_organization_audit_logs) | **get** /v1beta1/organization/{orgId}/auditlogs | List audit logs -*AuthnApi* | [**frontier_service_auth_callback**](docs/apis/tags/AuthnApi.md#frontier_service_auth_callback) | **get** /v1beta1/auth/callback | Callback from a strategy -*AuthnApi* | [**frontier_service_auth_callback2**](docs/apis/tags/AuthnApi.md#frontier_service_auth_callback2) | **post** /v1beta1/auth/callback | Callback from a strategy -*AuthnApi* | [**frontier_service_auth_logout**](docs/apis/tags/AuthnApi.md#frontier_service_auth_logout) | **get** /v1beta1/auth/logout | Logout from a strategy -*AuthnApi* | [**frontier_service_auth_logout2**](docs/apis/tags/AuthnApi.md#frontier_service_auth_logout2) | **delete** /v1beta1/auth/logout | Logout from a strategy -*AuthnApi* | [**frontier_service_auth_token**](docs/apis/tags/AuthnApi.md#frontier_service_auth_token) | **post** /v1beta1/auth/token | Generate access token by given credentials -*AuthnApi* | [**frontier_service_authenticate**](docs/apis/tags/AuthnApi.md#frontier_service_authenticate) | **get** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy -*AuthnApi* | [**frontier_service_authenticate2**](docs/apis/tags/AuthnApi.md#frontier_service_authenticate2) | **post** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy -*AuthnApi* | [**frontier_service_list_auth_strategies**](docs/apis/tags/AuthnApi.md#frontier_service_list_auth_strategies) | **get** /v1beta1/auth | List authentication strategies -*AuthzApi* | [**frontier_service_batch_check_permission**](docs/apis/tags/AuthzApi.md#frontier_service_batch_check_permission) | **post** /v1beta1/batchcheck | Batch check -*AuthzApi* | [**frontier_service_check_resource_permission**](docs/apis/tags/AuthzApi.md#frontier_service_check_resource_permission) | **post** /v1beta1/check | Check -*AuthzApi* | [**frontier_service_get_jwks**](docs/apis/tags/AuthzApi.md#frontier_service_get_jwks) | **get** /v1beta1/auth/jwks | Get well known JWKs -*AuthzApi* | [**frontier_service_get_jwks2**](docs/apis/tags/AuthzApi.md#frontier_service_get_jwks2) | **get** /.well-known/jwks.json | Get well known JWKs -*GroupApi* | [**admin_service_list_groups**](docs/apis/tags/GroupApi.md#admin_service_list_groups) | **get** /v1beta1/admin/groups | List all groups -*GroupApi* | [**frontier_service_add_group_users**](docs/apis/tags/GroupApi.md#frontier_service_add_group_users) | **post** /v1beta1/organizations/{orgId}/groups/{id}/users | Add group user -*GroupApi* | [**frontier_service_create_group**](docs/apis/tags/GroupApi.md#frontier_service_create_group) | **post** /v1beta1/organizations/{orgId}/groups | Create group -*GroupApi* | [**frontier_service_delete_group**](docs/apis/tags/GroupApi.md#frontier_service_delete_group) | **delete** /v1beta1/organizations/{orgId}/groups/{id} | Delete group -*GroupApi* | [**frontier_service_disable_group**](docs/apis/tags/GroupApi.md#frontier_service_disable_group) | **post** /v1beta1/organizations/{orgId}/groups/{id}/disable | Disable group -*GroupApi* | [**frontier_service_enable_group**](docs/apis/tags/GroupApi.md#frontier_service_enable_group) | **post** /v1beta1/organizations/{orgId}/groups/{id}/enable | Enable group -*GroupApi* | [**frontier_service_get_group**](docs/apis/tags/GroupApi.md#frontier_service_get_group) | **get** /v1beta1/organizations/{orgId}/groups/{id} | Get group -*GroupApi* | [**frontier_service_list_group_users**](docs/apis/tags/GroupApi.md#frontier_service_list_group_users) | **get** /v1beta1/organizations/{orgId}/groups/{id}/users | List group users -*GroupApi* | [**frontier_service_list_organization_groups**](docs/apis/tags/GroupApi.md#frontier_service_list_organization_groups) | **get** /v1beta1/organizations/{orgId}/groups | List organization groups -*GroupApi* | [**frontier_service_remove_group_user**](docs/apis/tags/GroupApi.md#frontier_service_remove_group_user) | **delete** /v1beta1/organizations/{orgId}/groups/{id}/users/{userId} | Remove group user -*GroupApi* | [**frontier_service_update_group**](docs/apis/tags/GroupApi.md#frontier_service_update_group) | **put** /v1beta1/organizations/{orgId}/groups/{id} | Update group -*MetaSchemaApi* | [**frontier_service_create_meta_schema**](docs/apis/tags/MetaSchemaApi.md#frontier_service_create_meta_schema) | **post** /v1beta1/meta/schemas | Create metaschema -*MetaSchemaApi* | [**frontier_service_delete_meta_schema**](docs/apis/tags/MetaSchemaApi.md#frontier_service_delete_meta_schema) | **delete** /v1beta1/meta/schemas/{id} | Delete metaschema -*MetaSchemaApi* | [**frontier_service_get_meta_schema**](docs/apis/tags/MetaSchemaApi.md#frontier_service_get_meta_schema) | **get** /v1beta1/meta/schemas/{id} | Get metaschema -*MetaSchemaApi* | [**frontier_service_list_meta_schemas**](docs/apis/tags/MetaSchemaApi.md#frontier_service_list_meta_schemas) | **get** /v1beta1/meta/schemas | List metaschemas -*MetaSchemaApi* | [**frontier_service_update_meta_schema**](docs/apis/tags/MetaSchemaApi.md#frontier_service_update_meta_schema) | **put** /v1beta1/meta/schemas/{id} | Update metaschema -*NamespaceApi* | [**frontier_service_get_namespace**](docs/apis/tags/NamespaceApi.md#frontier_service_get_namespace) | **get** /v1beta1/namespaces/{id} | Get namespace -*NamespaceApi* | [**frontier_service_list_namespaces**](docs/apis/tags/NamespaceApi.md#frontier_service_list_namespaces) | **get** /v1beta1/namespaces | Get all namespaces -*OrganizationApi* | [**admin_service_list_all_organizations**](docs/apis/tags/OrganizationApi.md#admin_service_list_all_organizations) | **get** /v1beta1/admin/organizations | List all organizations -*OrganizationApi* | [**frontier_service_accept_organization_invitation**](docs/apis/tags/OrganizationApi.md#frontier_service_accept_organization_invitation) | **post** /v1beta1/organizations/{orgId}/invitations/{id}/accept | Accept pending invitation -*OrganizationApi* | [**frontier_service_add_organization_users**](docs/apis/tags/OrganizationApi.md#frontier_service_add_organization_users) | **post** /v1beta1/organizations/{id}/users | Add organization user -*OrganizationApi* | [**frontier_service_create_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_create_organization) | **post** /v1beta1/organizations | Create organization -*OrganizationApi* | [**frontier_service_create_organization_domain**](docs/apis/tags/OrganizationApi.md#frontier_service_create_organization_domain) | **post** /v1beta1/organizations/{orgId}/domains | Create org domain -*OrganizationApi* | [**frontier_service_create_organization_invitation**](docs/apis/tags/OrganizationApi.md#frontier_service_create_organization_invitation) | **post** /v1beta1/organizations/{orgId}/invitations | Invite user -*OrganizationApi* | [**frontier_service_delete_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_delete_organization) | **delete** /v1beta1/organizations/{id} | Delete organization -*OrganizationApi* | [**frontier_service_delete_organization_domain**](docs/apis/tags/OrganizationApi.md#frontier_service_delete_organization_domain) | **delete** /v1beta1/organizations/{orgId}/domains/{id} | Delete org domain -*OrganizationApi* | [**frontier_service_delete_organization_invitation**](docs/apis/tags/OrganizationApi.md#frontier_service_delete_organization_invitation) | **delete** /v1beta1/organizations/{orgId}/invitations/{id} | Delete pending invitation -*OrganizationApi* | [**frontier_service_disable_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_disable_organization) | **post** /v1beta1/organizations/{id}/disable | Disable organization -*OrganizationApi* | [**frontier_service_enable_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_enable_organization) | **post** /v1beta1/organizations/{id}/enable | Enable organization -*OrganizationApi* | [**frontier_service_get_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_get_organization) | **get** /v1beta1/organizations/{id} | Get organization -*OrganizationApi* | [**frontier_service_get_organization_domain**](docs/apis/tags/OrganizationApi.md#frontier_service_get_organization_domain) | **get** /v1beta1/organizations/{orgId}/domains/{id} | Get org domain -*OrganizationApi* | [**frontier_service_get_organization_invitation**](docs/apis/tags/OrganizationApi.md#frontier_service_get_organization_invitation) | **get** /v1beta1/organizations/{orgId}/invitations/{id} | Get pending invitation -*OrganizationApi* | [**frontier_service_join_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_join_organization) | **post** /v1beta1/organizations/{orgId}/join | Join organization -*OrganizationApi* | [**frontier_service_list_organization_admins**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organization_admins) | **get** /v1beta1/organizations/{id}/admins | List organization admins -*OrganizationApi* | [**frontier_service_list_organization_domains**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organization_domains) | **get** /v1beta1/organizations/{orgId}/domains | List org domains -*OrganizationApi* | [**frontier_service_list_organization_invitations**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organization_invitations) | **get** /v1beta1/organizations/{orgId}/invitations | List pending invitations -*OrganizationApi* | [**frontier_service_list_organization_projects**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organization_projects) | **get** /v1beta1/organizations/{id}/projects | Get organization projects -*OrganizationApi* | [**frontier_service_list_organization_service_users**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organization_service_users) | **get** /v1beta1/organizations/{id}/serviceusers | List organization service users -*OrganizationApi* | [**frontier_service_list_organization_users**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organization_users) | **get** /v1beta1/organizations/{id}/users | List organization users -*OrganizationApi* | [**frontier_service_list_organizations**](docs/apis/tags/OrganizationApi.md#frontier_service_list_organizations) | **get** /v1beta1/organizations | List organizations -*OrganizationApi* | [**frontier_service_remove_organization_user**](docs/apis/tags/OrganizationApi.md#frontier_service_remove_organization_user) | **delete** /v1beta1/organizations/{id}/users/{userId} | Remove organization user -*OrganizationApi* | [**frontier_service_update_organization**](docs/apis/tags/OrganizationApi.md#frontier_service_update_organization) | **put** /v1beta1/organizations/{id} | Update organization -*OrganizationApi* | [**frontier_service_verify_organization_domain**](docs/apis/tags/OrganizationApi.md#frontier_service_verify_organization_domain) | **post** /v1beta1/organizations/{orgId}/domains/{id}/verify | Verify org domain -*PermissionApi* | [**admin_service_create_permission**](docs/apis/tags/PermissionApi.md#admin_service_create_permission) | **post** /v1beta1/permissions | Create platform permission -*PermissionApi* | [**admin_service_delete_permission**](docs/apis/tags/PermissionApi.md#admin_service_delete_permission) | **delete** /v1beta1/permissions/{id} | Delete platform permission -*PermissionApi* | [**admin_service_update_permission**](docs/apis/tags/PermissionApi.md#admin_service_update_permission) | **put** /v1beta1/permissions/{id} | Update platform permission -*PermissionApi* | [**frontier_service_get_permission**](docs/apis/tags/PermissionApi.md#frontier_service_get_permission) | **get** /v1beta1/permissions/{id} | Get permission -*PermissionApi* | [**frontier_service_list_permissions**](docs/apis/tags/PermissionApi.md#frontier_service_list_permissions) | **get** /v1beta1/permissions | Get all permissions -*PolicyApi* | [**admin_service_list_policies**](docs/apis/tags/PolicyApi.md#admin_service_list_policies) | **get** /v1beta1/policies | List all policies -*PolicyApi* | [**frontier_service_create_policy**](docs/apis/tags/PolicyApi.md#frontier_service_create_policy) | **post** /v1beta1/policies | Create policy -*PolicyApi* | [**frontier_service_delete_policy**](docs/apis/tags/PolicyApi.md#frontier_service_delete_policy) | **delete** /v1beta1/policies/{id} | Delete Policy -*PolicyApi* | [**frontier_service_get_policy**](docs/apis/tags/PolicyApi.md#frontier_service_get_policy) | **get** /v1beta1/policies/{id} | Get policy -*PolicyApi* | [**frontier_service_update_policy**](docs/apis/tags/PolicyApi.md#frontier_service_update_policy) | **put** /v1beta1/policies/{id} | Update policy -*PreferenceApi* | [**admin_service_create_preferences**](docs/apis/tags/PreferenceApi.md#admin_service_create_preferences) | **post** /v1beta1/preferences | Create platform preferences -*PreferenceApi* | [**admin_service_list_preferences**](docs/apis/tags/PreferenceApi.md#admin_service_list_preferences) | **get** /v1beta1/preferences | List platform preferences -*PreferenceApi* | [**frontier_service_create_current_user_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_create_current_user_preferences) | **post** /v1beta1/users/self/preferences | Create current user preferences -*PreferenceApi* | [**frontier_service_create_group_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_create_group_preferences) | **post** /v1beta1/groups/{id}/preferences | Create group preferences -*PreferenceApi* | [**frontier_service_create_organization_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_create_organization_preferences) | **post** /v1beta1/organizations/{id}/preferences | Create organization preferences -*PreferenceApi* | [**frontier_service_create_project_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_create_project_preferences) | **post** /v1beta1/projects/{id}/preferences | Create project preferences -*PreferenceApi* | [**frontier_service_create_user_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_create_user_preferences) | **post** /v1beta1/users/{id}/preferences | Create user preferences -*PreferenceApi* | [**frontier_service_describe_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_describe_preferences) | **get** /v1beta1/preferences/traits | Describe preferences -*PreferenceApi* | [**frontier_service_list_current_user_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_list_current_user_preferences) | **get** /v1beta1/users/self/preferences | List current user preferences -*PreferenceApi* | [**frontier_service_list_group_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_list_group_preferences) | **get** /v1beta1/groups/{id}/preferences | List group preferences -*PreferenceApi* | [**frontier_service_list_organization_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_list_organization_preferences) | **get** /v1beta1/organizations/{id}/preferences | List organization preferences -*PreferenceApi* | [**frontier_service_list_project_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_list_project_preferences) | **get** /v1beta1/projects/{id}/preferences | List project preferences -*PreferenceApi* | [**frontier_service_list_user_preferences**](docs/apis/tags/PreferenceApi.md#frontier_service_list_user_preferences) | **get** /v1beta1/users/{id}/preferences | List user preferences -*ProjectApi* | [**admin_service_list_projects**](docs/apis/tags/ProjectApi.md#admin_service_list_projects) | **get** /v1beta1/admin/projects | List all projects -*ProjectApi* | [**frontier_service_create_project**](docs/apis/tags/ProjectApi.md#frontier_service_create_project) | **post** /v1beta1/projects | Create project -*ProjectApi* | [**frontier_service_delete_project**](docs/apis/tags/ProjectApi.md#frontier_service_delete_project) | **delete** /v1beta1/projects/{id} | Delete Project -*ProjectApi* | [**frontier_service_disable_project**](docs/apis/tags/ProjectApi.md#frontier_service_disable_project) | **post** /v1beta1/projects/{id}/disable | Disable project -*ProjectApi* | [**frontier_service_enable_project**](docs/apis/tags/ProjectApi.md#frontier_service_enable_project) | **post** /v1beta1/projects/{id}/enable | Enable project -*ProjectApi* | [**frontier_service_get_project**](docs/apis/tags/ProjectApi.md#frontier_service_get_project) | **get** /v1beta1/projects/{id} | Get project -*ProjectApi* | [**frontier_service_list_project_admins**](docs/apis/tags/ProjectApi.md#frontier_service_list_project_admins) | **get** /v1beta1/projects/{id}/admins | List project admins -*ProjectApi* | [**frontier_service_list_project_service_users**](docs/apis/tags/ProjectApi.md#frontier_service_list_project_service_users) | **get** /v1beta1/projects/{id}/serviceusers | List project serviceusers -*ProjectApi* | [**frontier_service_list_project_users**](docs/apis/tags/ProjectApi.md#frontier_service_list_project_users) | **get** /v1beta1/projects/{id}/users | List project users -*ProjectApi* | [**frontier_service_update_project**](docs/apis/tags/ProjectApi.md#frontier_service_update_project) | **put** /v1beta1/projects/{id} | Update project -*RelationApi* | [**admin_service_list_relations**](docs/apis/tags/RelationApi.md#admin_service_list_relations) | **get** /v1beta1/admin/relations | List all relations -*RelationApi* | [**frontier_service_create_relation**](docs/apis/tags/RelationApi.md#frontier_service_create_relation) | **post** /v1beta1/relations | Create relation -*RelationApi* | [**frontier_service_delete_relation**](docs/apis/tags/RelationApi.md#frontier_service_delete_relation) | **delete** /v1beta1/relations/{relation}/object/{object}/subject/{subject} | Delete relation -*RelationApi* | [**frontier_service_get_relation**](docs/apis/tags/RelationApi.md#frontier_service_get_relation) | **get** /v1beta1/relations/{id} | Get relation -*ResourceApi* | [**admin_service_list_resources**](docs/apis/tags/ResourceApi.md#admin_service_list_resources) | **get** /v1beta1/admin/resources | List all resources -*ResourceApi* | [**frontier_service_create_project_resource**](docs/apis/tags/ResourceApi.md#frontier_service_create_project_resource) | **post** /v1beta1/projects/{projectId}/resources | Create resource -*ResourceApi* | [**frontier_service_delete_project_resource**](docs/apis/tags/ResourceApi.md#frontier_service_delete_project_resource) | **delete** /v1beta1/projects/{projectId}/resources/{id} | Delete resource -*ResourceApi* | [**frontier_service_get_project_resource**](docs/apis/tags/ResourceApi.md#frontier_service_get_project_resource) | **get** /v1beta1/projects/{projectId}/resources/{id} | Get resource -*ResourceApi* | [**frontier_service_list_project_resources**](docs/apis/tags/ResourceApi.md#frontier_service_list_project_resources) | **get** /v1beta1/projects/{projectId}/resources | Get all resources -*ResourceApi* | [**frontier_service_update_project_resource**](docs/apis/tags/ResourceApi.md#frontier_service_update_project_resource) | **put** /v1beta1/projects/{projectId}/resources/{id} | Update resource -*RoleApi* | [**admin_service_create_role**](docs/apis/tags/RoleApi.md#admin_service_create_role) | **post** /v1beta1/roles | Create platform role -*RoleApi* | [**admin_service_delete_role**](docs/apis/tags/RoleApi.md#admin_service_delete_role) | **delete** /v1beta1/roles/{id} | Delete platform role -*RoleApi* | [**admin_service_update_role**](docs/apis/tags/RoleApi.md#admin_service_update_role) | **put** /v1beta1/roles/{id} | Update role -*RoleApi* | [**frontier_service_create_organization_role**](docs/apis/tags/RoleApi.md#frontier_service_create_organization_role) | **post** /v1beta1/organizations/{orgId}/roles | Create organization role -*RoleApi* | [**frontier_service_delete_organization_role**](docs/apis/tags/RoleApi.md#frontier_service_delete_organization_role) | **delete** /v1beta1/organizations/{orgId}/roles/{id} | Delete organization role -*RoleApi* | [**frontier_service_get_organization_role**](docs/apis/tags/RoleApi.md#frontier_service_get_organization_role) | **get** /v1beta1/organizations/{orgId}/roles/{id} | Get organization role -*RoleApi* | [**frontier_service_list_organization_roles**](docs/apis/tags/RoleApi.md#frontier_service_list_organization_roles) | **get** /v1beta1/organizations/{orgId}/roles | List organization roles -*RoleApi* | [**frontier_service_list_roles**](docs/apis/tags/RoleApi.md#frontier_service_list_roles) | **get** /v1beta1/roles | List platform roles -*RoleApi* | [**frontier_service_update_organization_role**](docs/apis/tags/RoleApi.md#frontier_service_update_organization_role) | **put** /v1beta1/organizations/{orgId}/roles/{id} | Update organization role -*ServiceUserApi* | [**frontier_service_create_service_user**](docs/apis/tags/ServiceUserApi.md#frontier_service_create_service_user) | **post** /v1beta1/serviceusers | Create service user -*ServiceUserApi* | [**frontier_service_create_service_user_key**](docs/apis/tags/ServiceUserApi.md#frontier_service_create_service_user_key) | **post** /v1beta1/serviceusers/{id}/keys | Create service user key -*ServiceUserApi* | [**frontier_service_create_service_user_secret**](docs/apis/tags/ServiceUserApi.md#frontier_service_create_service_user_secret) | **post** /v1beta1/serviceusers/{id}/secrets | Create service user secret -*ServiceUserApi* | [**frontier_service_delete_service_user**](docs/apis/tags/ServiceUserApi.md#frontier_service_delete_service_user) | **delete** /v1beta1/serviceusers/{id} | Delete service user -*ServiceUserApi* | [**frontier_service_delete_service_user_key**](docs/apis/tags/ServiceUserApi.md#frontier_service_delete_service_user_key) | **delete** /v1beta1/serviceusers/{id}/keys/{keyId} | Delete service user key -*ServiceUserApi* | [**frontier_service_delete_service_user_secret**](docs/apis/tags/ServiceUserApi.md#frontier_service_delete_service_user_secret) | **delete** /v1beta1/serviceusers/{id}/secrets/{secretId} | Delete service user secret -*ServiceUserApi* | [**frontier_service_get_service_user**](docs/apis/tags/ServiceUserApi.md#frontier_service_get_service_user) | **get** /v1beta1/serviceusers/{id} | Get service user -*ServiceUserApi* | [**frontier_service_get_service_user_key**](docs/apis/tags/ServiceUserApi.md#frontier_service_get_service_user_key) | **get** /v1beta1/serviceusers/{id}/keys/{keyId} | Get service user key -*ServiceUserApi* | [**frontier_service_list_service_user_keys**](docs/apis/tags/ServiceUserApi.md#frontier_service_list_service_user_keys) | **get** /v1beta1/serviceusers/{id}/keys | List service user keys -*ServiceUserApi* | [**frontier_service_list_service_user_secrets**](docs/apis/tags/ServiceUserApi.md#frontier_service_list_service_user_secrets) | **get** /v1beta1/serviceusers/{id}/secrets | List service user secrets -*ServiceUserApi* | [**frontier_service_list_service_users**](docs/apis/tags/ServiceUserApi.md#frontier_service_list_service_users) | **get** /v1beta1/serviceusers | List org service users -*UserApi* | [**admin_service_list_all_users**](docs/apis/tags/UserApi.md#admin_service_list_all_users) | **get** /v1beta1/admin/users | List all users -*UserApi* | [**frontier_service_create_user**](docs/apis/tags/UserApi.md#frontier_service_create_user) | **post** /v1beta1/users | Create user -*UserApi* | [**frontier_service_delete_user**](docs/apis/tags/UserApi.md#frontier_service_delete_user) | **delete** /v1beta1/users/{id} | Delete user -*UserApi* | [**frontier_service_disable_user**](docs/apis/tags/UserApi.md#frontier_service_disable_user) | **post** /v1beta1/users/{id}/disable | Disable user -*UserApi* | [**frontier_service_enable_user**](docs/apis/tags/UserApi.md#frontier_service_enable_user) | **post** /v1beta1/users/{id}/enable | Enable user -*UserApi* | [**frontier_service_get_current_user**](docs/apis/tags/UserApi.md#frontier_service_get_current_user) | **get** /v1beta1/users/self | Get current user -*UserApi* | [**frontier_service_get_user**](docs/apis/tags/UserApi.md#frontier_service_get_user) | **get** /v1beta1/users/{id} | Get user -*UserApi* | [**frontier_service_list_current_user_groups**](docs/apis/tags/UserApi.md#frontier_service_list_current_user_groups) | **get** /v1beta1/users/self/groups | List my groups -*UserApi* | [**frontier_service_list_organizations_by_current_user**](docs/apis/tags/UserApi.md#frontier_service_list_organizations_by_current_user) | **get** /v1beta1/users/self/organizations | Get my organizations -*UserApi* | [**frontier_service_list_organizations_by_user**](docs/apis/tags/UserApi.md#frontier_service_list_organizations_by_user) | **get** /v1beta1/users/{id}/organizations | Get user organizations -*UserApi* | [**frontier_service_list_projects_by_current_user**](docs/apis/tags/UserApi.md#frontier_service_list_projects_by_current_user) | **get** /v1beta1/users/self/projects | Get my projects -*UserApi* | [**frontier_service_list_projects_by_user**](docs/apis/tags/UserApi.md#frontier_service_list_projects_by_user) | **get** /v1beta1/users/{id}/projects | Get user projects -*UserApi* | [**frontier_service_list_user_groups**](docs/apis/tags/UserApi.md#frontier_service_list_user_groups) | **get** /v1beta1/users/{id}/groups | List user groups -*UserApi* | [**frontier_service_list_user_invitations**](docs/apis/tags/UserApi.md#frontier_service_list_user_invitations) | **get** /v1beta1/users/{id}/invitations | List user invitations -*UserApi* | [**frontier_service_list_users**](docs/apis/tags/UserApi.md#frontier_service_list_users) | **get** /v1beta1/users | List public users -*UserApi* | [**frontier_service_update_current_user**](docs/apis/tags/UserApi.md#frontier_service_update_current_user) | **put** /v1beta1/users/self | Update current user -*UserApi* | [**frontier_service_update_user**](docs/apis/tags/UserApi.md#frontier_service_update_user) | **put** /v1beta1/users/{id} | Update user +*AuditLogApi* | [**frontier_service_create_organization_audit_logs**](docs/AuditLogApi.md#frontier_service_create_organization_audit_logs) | **POST** /v1beta1/organization/{orgId}/auditlogs | Create audit log +*AuditLogApi* | [**frontier_service_get_organization_audit_log**](docs/AuditLogApi.md#frontier_service_get_organization_audit_log) | **GET** /v1beta1/organization/{orgId}/auditlogs/{id} | Get audit log +*AuditLogApi* | [**frontier_service_list_organization_audit_logs**](docs/AuditLogApi.md#frontier_service_list_organization_audit_logs) | **GET** /v1beta1/organization/{orgId}/auditlogs | List audit logs +*AuthnApi* | [**frontier_service_auth_callback**](docs/AuthnApi.md#frontier_service_auth_callback) | **GET** /v1beta1/auth/callback | Callback from a strategy +*AuthnApi* | [**frontier_service_auth_callback2**](docs/AuthnApi.md#frontier_service_auth_callback2) | **POST** /v1beta1/auth/callback | Callback from a strategy +*AuthnApi* | [**frontier_service_auth_logout**](docs/AuthnApi.md#frontier_service_auth_logout) | **GET** /v1beta1/auth/logout | Logout from a strategy +*AuthnApi* | [**frontier_service_auth_logout2**](docs/AuthnApi.md#frontier_service_auth_logout2) | **DELETE** /v1beta1/auth/logout | Logout from a strategy +*AuthnApi* | [**frontier_service_auth_token**](docs/AuthnApi.md#frontier_service_auth_token) | **POST** /v1beta1/auth/token | Generate access token by given credentials +*AuthnApi* | [**frontier_service_authenticate**](docs/AuthnApi.md#frontier_service_authenticate) | **GET** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy +*AuthnApi* | [**frontier_service_authenticate2**](docs/AuthnApi.md#frontier_service_authenticate2) | **POST** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy +*AuthnApi* | [**frontier_service_list_auth_strategies**](docs/AuthnApi.md#frontier_service_list_auth_strategies) | **GET** /v1beta1/auth | List authentication strategies +*AuthzApi* | [**admin_service_check_federated_resource_permission**](docs/AuthzApi.md#admin_service_check_federated_resource_permission) | **POST** /v1beta1/admin/check | Check +*AuthzApi* | [**frontier_service_batch_check_permission**](docs/AuthzApi.md#frontier_service_batch_check_permission) | **POST** /v1beta1/batchcheck | Batch check +*AuthzApi* | [**frontier_service_check_resource_permission**](docs/AuthzApi.md#frontier_service_check_resource_permission) | **POST** /v1beta1/check | Check +*AuthzApi* | [**frontier_service_get_jwks**](docs/AuthzApi.md#frontier_service_get_jwks) | **GET** /v1beta1/auth/jwks | Get well known JWKs +*AuthzApi* | [**frontier_service_get_jwks2**](docs/AuthzApi.md#frontier_service_get_jwks2) | **GET** /.well-known/jwks.json | Get well known JWKs +*BillingApi* | [**frontier_service_create_billing_account**](docs/BillingApi.md#frontier_service_create_billing_account) | **POST** /v1beta1/organizations/{orgId}/billing | Create billing account +*BillingApi* | [**frontier_service_delete_billing_account**](docs/BillingApi.md#frontier_service_delete_billing_account) | **DELETE** /v1beta1/organizations/{orgId}/billing/{id} | Delete billing account +*BillingApi* | [**frontier_service_get_billing_account**](docs/BillingApi.md#frontier_service_get_billing_account) | **GET** /v1beta1/organizations/{orgId}/billing/{id} | Get billing account +*BillingApi* | [**frontier_service_get_billing_balance**](docs/BillingApi.md#frontier_service_get_billing_balance) | **GET** /v1beta1/organizations/{orgId}/billing/{id}/balance | Get billing balance +*BillingApi* | [**frontier_service_list_billing_accounts**](docs/BillingApi.md#frontier_service_list_billing_accounts) | **GET** /v1beta1/organizations/{orgId}/billing | List billing accounts +*BillingApi* | [**frontier_service_update_billing_account**](docs/BillingApi.md#frontier_service_update_billing_account) | **PUT** /v1beta1/organizations/{orgId}/billing/{id} | Update billing account +*CheckoutApi* | [**frontier_service_create_checkout**](docs/CheckoutApi.md#frontier_service_create_checkout) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription +*CheckoutApi* | [**frontier_service_list_checkouts**](docs/CheckoutApi.md#frontier_service_list_checkouts) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | List checkouts +*EntitlementApi* | [**frontier_service_check_feature_entitlement**](docs/EntitlementApi.md#frontier_service_check_feature_entitlement) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/check | Check entitlement +*FeatureApi* | [**frontier_service_create_feature**](docs/FeatureApi.md#frontier_service_create_feature) | **POST** /v1beta1/billing/features | Create feature +*FeatureApi* | [**frontier_service_get_feature**](docs/FeatureApi.md#frontier_service_get_feature) | **GET** /v1beta1/billing/features/{id} | Get feature +*FeatureApi* | [**frontier_service_list_features**](docs/FeatureApi.md#frontier_service_list_features) | **GET** /v1beta1/billing/features | List features +*FeatureApi* | [**frontier_service_update_feature**](docs/FeatureApi.md#frontier_service_update_feature) | **PUT** /v1beta1/billing/features/{id} | Update feature +*GroupApi* | [**admin_service_list_groups**](docs/GroupApi.md#admin_service_list_groups) | **GET** /v1beta1/admin/groups | List all groups +*GroupApi* | [**frontier_service_add_group_users**](docs/GroupApi.md#frontier_service_add_group_users) | **POST** /v1beta1/organizations/{orgId}/groups/{id}/users | Add group user +*GroupApi* | [**frontier_service_create_group**](docs/GroupApi.md#frontier_service_create_group) | **POST** /v1beta1/organizations/{orgId}/groups | Create group +*GroupApi* | [**frontier_service_delete_group**](docs/GroupApi.md#frontier_service_delete_group) | **DELETE** /v1beta1/organizations/{orgId}/groups/{id} | Delete group +*GroupApi* | [**frontier_service_disable_group**](docs/GroupApi.md#frontier_service_disable_group) | **POST** /v1beta1/organizations/{orgId}/groups/{id}/disable | Disable group +*GroupApi* | [**frontier_service_enable_group**](docs/GroupApi.md#frontier_service_enable_group) | **POST** /v1beta1/organizations/{orgId}/groups/{id}/enable | Enable group +*GroupApi* | [**frontier_service_get_group**](docs/GroupApi.md#frontier_service_get_group) | **GET** /v1beta1/organizations/{orgId}/groups/{id} | Get group +*GroupApi* | [**frontier_service_list_group_users**](docs/GroupApi.md#frontier_service_list_group_users) | **GET** /v1beta1/organizations/{orgId}/groups/{id}/users | List group users +*GroupApi* | [**frontier_service_list_organization_groups**](docs/GroupApi.md#frontier_service_list_organization_groups) | **GET** /v1beta1/organizations/{orgId}/groups | List organization groups +*GroupApi* | [**frontier_service_remove_group_user**](docs/GroupApi.md#frontier_service_remove_group_user) | **DELETE** /v1beta1/organizations/{orgId}/groups/{id}/users/{userId} | Remove group user +*GroupApi* | [**frontier_service_update_group**](docs/GroupApi.md#frontier_service_update_group) | **PUT** /v1beta1/organizations/{orgId}/groups/{id} | Update group +*MetaSchemaApi* | [**frontier_service_create_meta_schema**](docs/MetaSchemaApi.md#frontier_service_create_meta_schema) | **POST** /v1beta1/meta/schemas | Create metaschema +*MetaSchemaApi* | [**frontier_service_delete_meta_schema**](docs/MetaSchemaApi.md#frontier_service_delete_meta_schema) | **DELETE** /v1beta1/meta/schemas/{id} | Delete metaschema +*MetaSchemaApi* | [**frontier_service_get_meta_schema**](docs/MetaSchemaApi.md#frontier_service_get_meta_schema) | **GET** /v1beta1/meta/schemas/{id} | Get metaschema +*MetaSchemaApi* | [**frontier_service_list_meta_schemas**](docs/MetaSchemaApi.md#frontier_service_list_meta_schemas) | **GET** /v1beta1/meta/schemas | List metaschemas +*MetaSchemaApi* | [**frontier_service_update_meta_schema**](docs/MetaSchemaApi.md#frontier_service_update_meta_schema) | **PUT** /v1beta1/meta/schemas/{id} | Update metaschema +*NamespaceApi* | [**frontier_service_get_namespace**](docs/NamespaceApi.md#frontier_service_get_namespace) | **GET** /v1beta1/namespaces/{id} | Get namespace +*NamespaceApi* | [**frontier_service_list_namespaces**](docs/NamespaceApi.md#frontier_service_list_namespaces) | **GET** /v1beta1/namespaces | Get all namespaces +*OrganizationApi* | [**admin_service_list_all_organizations**](docs/OrganizationApi.md#admin_service_list_all_organizations) | **GET** /v1beta1/admin/organizations | List all organizations +*OrganizationApi* | [**frontier_service_accept_organization_invitation**](docs/OrganizationApi.md#frontier_service_accept_organization_invitation) | **POST** /v1beta1/organizations/{orgId}/invitations/{id}/accept | Accept pending invitation +*OrganizationApi* | [**frontier_service_add_organization_users**](docs/OrganizationApi.md#frontier_service_add_organization_users) | **POST** /v1beta1/organizations/{id}/users | Add organization user +*OrganizationApi* | [**frontier_service_create_organization**](docs/OrganizationApi.md#frontier_service_create_organization) | **POST** /v1beta1/organizations | Create organization +*OrganizationApi* | [**frontier_service_create_organization_domain**](docs/OrganizationApi.md#frontier_service_create_organization_domain) | **POST** /v1beta1/organizations/{orgId}/domains | Create org domain +*OrganizationApi* | [**frontier_service_create_organization_invitation**](docs/OrganizationApi.md#frontier_service_create_organization_invitation) | **POST** /v1beta1/organizations/{orgId}/invitations | Invite user +*OrganizationApi* | [**frontier_service_delete_organization**](docs/OrganizationApi.md#frontier_service_delete_organization) | **DELETE** /v1beta1/organizations/{id} | Delete organization +*OrganizationApi* | [**frontier_service_delete_organization_domain**](docs/OrganizationApi.md#frontier_service_delete_organization_domain) | **DELETE** /v1beta1/organizations/{orgId}/domains/{id} | Delete org domain +*OrganizationApi* | [**frontier_service_delete_organization_invitation**](docs/OrganizationApi.md#frontier_service_delete_organization_invitation) | **DELETE** /v1beta1/organizations/{orgId}/invitations/{id} | Delete pending invitation +*OrganizationApi* | [**frontier_service_disable_organization**](docs/OrganizationApi.md#frontier_service_disable_organization) | **POST** /v1beta1/organizations/{id}/disable | Disable organization +*OrganizationApi* | [**frontier_service_enable_organization**](docs/OrganizationApi.md#frontier_service_enable_organization) | **POST** /v1beta1/organizations/{id}/enable | Enable organization +*OrganizationApi* | [**frontier_service_get_organization**](docs/OrganizationApi.md#frontier_service_get_organization) | **GET** /v1beta1/organizations/{id} | Get organization +*OrganizationApi* | [**frontier_service_get_organization_domain**](docs/OrganizationApi.md#frontier_service_get_organization_domain) | **GET** /v1beta1/organizations/{orgId}/domains/{id} | Get org domain +*OrganizationApi* | [**frontier_service_get_organization_invitation**](docs/OrganizationApi.md#frontier_service_get_organization_invitation) | **GET** /v1beta1/organizations/{orgId}/invitations/{id} | Get pending invitation +*OrganizationApi* | [**frontier_service_join_organization**](docs/OrganizationApi.md#frontier_service_join_organization) | **POST** /v1beta1/organizations/{orgId}/join | Join organization +*OrganizationApi* | [**frontier_service_list_organization_admins**](docs/OrganizationApi.md#frontier_service_list_organization_admins) | **GET** /v1beta1/organizations/{id}/admins | List organization admins +*OrganizationApi* | [**frontier_service_list_organization_domains**](docs/OrganizationApi.md#frontier_service_list_organization_domains) | **GET** /v1beta1/organizations/{orgId}/domains | List org domains +*OrganizationApi* | [**frontier_service_list_organization_invitations**](docs/OrganizationApi.md#frontier_service_list_organization_invitations) | **GET** /v1beta1/organizations/{orgId}/invitations | List pending invitations +*OrganizationApi* | [**frontier_service_list_organization_projects**](docs/OrganizationApi.md#frontier_service_list_organization_projects) | **GET** /v1beta1/organizations/{id}/projects | Get organization projects +*OrganizationApi* | [**frontier_service_list_organization_service_users**](docs/OrganizationApi.md#frontier_service_list_organization_service_users) | **GET** /v1beta1/organizations/{id}/serviceusers | List organization service users +*OrganizationApi* | [**frontier_service_list_organization_users**](docs/OrganizationApi.md#frontier_service_list_organization_users) | **GET** /v1beta1/organizations/{id}/users | List organization users +*OrganizationApi* | [**frontier_service_list_organizations**](docs/OrganizationApi.md#frontier_service_list_organizations) | **GET** /v1beta1/organizations | List organizations +*OrganizationApi* | [**frontier_service_remove_organization_user**](docs/OrganizationApi.md#frontier_service_remove_organization_user) | **DELETE** /v1beta1/organizations/{id}/users/{userId} | Remove organization user +*OrganizationApi* | [**frontier_service_update_organization**](docs/OrganizationApi.md#frontier_service_update_organization) | **PUT** /v1beta1/organizations/{id} | Update organization +*OrganizationApi* | [**frontier_service_verify_organization_domain**](docs/OrganizationApi.md#frontier_service_verify_organization_domain) | **POST** /v1beta1/organizations/{orgId}/domains/{id}/verify | Verify org domain +*PermissionApi* | [**admin_service_create_permission**](docs/PermissionApi.md#admin_service_create_permission) | **POST** /v1beta1/permissions | Create platform permission +*PermissionApi* | [**admin_service_delete_permission**](docs/PermissionApi.md#admin_service_delete_permission) | **DELETE** /v1beta1/permissions/{id} | Delete platform permission +*PermissionApi* | [**admin_service_update_permission**](docs/PermissionApi.md#admin_service_update_permission) | **PUT** /v1beta1/permissions/{id} | Update platform permission +*PermissionApi* | [**frontier_service_get_permission**](docs/PermissionApi.md#frontier_service_get_permission) | **GET** /v1beta1/permissions/{id} | Get permission +*PermissionApi* | [**frontier_service_list_permissions**](docs/PermissionApi.md#frontier_service_list_permissions) | **GET** /v1beta1/permissions | Get all permissions +*PlanApi* | [**frontier_service_create_plan**](docs/PlanApi.md#frontier_service_create_plan) | **POST** /v1beta1/billing/plans | Create plan +*PlanApi* | [**frontier_service_get_plan**](docs/PlanApi.md#frontier_service_get_plan) | **GET** /v1beta1/billing/plans/{id} | Get plan +*PlanApi* | [**frontier_service_list_plans**](docs/PlanApi.md#frontier_service_list_plans) | **GET** /v1beta1/billing/plans | List plans +*PlanApi* | [**frontier_service_update_plan**](docs/PlanApi.md#frontier_service_update_plan) | **PUT** /v1beta1/billing/plans/{id} | Update plan +*PlatformApi* | [**admin_service_add_platform_user**](docs/PlatformApi.md#admin_service_add_platform_user) | **POST** /v1beta1/admin/platform/users | Add platform user +*PolicyApi* | [**frontier_service_create_policy**](docs/PolicyApi.md#frontier_service_create_policy) | **POST** /v1beta1/policies | Create policy +*PolicyApi* | [**frontier_service_delete_policy**](docs/PolicyApi.md#frontier_service_delete_policy) | **DELETE** /v1beta1/policies/{id} | Delete Policy +*PolicyApi* | [**frontier_service_get_policy**](docs/PolicyApi.md#frontier_service_get_policy) | **GET** /v1beta1/policies/{id} | Get policy +*PolicyApi* | [**frontier_service_list_policies**](docs/PolicyApi.md#frontier_service_list_policies) | **GET** /v1beta1/policies | List all policies +*PolicyApi* | [**frontier_service_update_policy**](docs/PolicyApi.md#frontier_service_update_policy) | **PUT** /v1beta1/policies/{id} | Update policy +*PreferenceApi* | [**admin_service_create_preferences**](docs/PreferenceApi.md#admin_service_create_preferences) | **POST** /v1beta1/preferences | Create platform preferences +*PreferenceApi* | [**admin_service_list_preferences**](docs/PreferenceApi.md#admin_service_list_preferences) | **GET** /v1beta1/preferences | List platform preferences +*PreferenceApi* | [**frontier_service_create_current_user_preferences**](docs/PreferenceApi.md#frontier_service_create_current_user_preferences) | **POST** /v1beta1/users/self/preferences | Create current user preferences +*PreferenceApi* | [**frontier_service_create_group_preferences**](docs/PreferenceApi.md#frontier_service_create_group_preferences) | **POST** /v1beta1/groups/{id}/preferences | Create group preferences +*PreferenceApi* | [**frontier_service_create_organization_preferences**](docs/PreferenceApi.md#frontier_service_create_organization_preferences) | **POST** /v1beta1/organizations/{id}/preferences | Create organization preferences +*PreferenceApi* | [**frontier_service_create_project_preferences**](docs/PreferenceApi.md#frontier_service_create_project_preferences) | **POST** /v1beta1/projects/{id}/preferences | Create project preferences +*PreferenceApi* | [**frontier_service_create_user_preferences**](docs/PreferenceApi.md#frontier_service_create_user_preferences) | **POST** /v1beta1/users/{id}/preferences | Create user preferences +*PreferenceApi* | [**frontier_service_describe_preferences**](docs/PreferenceApi.md#frontier_service_describe_preferences) | **GET** /v1beta1/preferences/traits | Describe preferences +*PreferenceApi* | [**frontier_service_list_current_user_preferences**](docs/PreferenceApi.md#frontier_service_list_current_user_preferences) | **GET** /v1beta1/users/self/preferences | List current user preferences +*PreferenceApi* | [**frontier_service_list_group_preferences**](docs/PreferenceApi.md#frontier_service_list_group_preferences) | **GET** /v1beta1/groups/{id}/preferences | List group preferences +*PreferenceApi* | [**frontier_service_list_organization_preferences**](docs/PreferenceApi.md#frontier_service_list_organization_preferences) | **GET** /v1beta1/organizations/{id}/preferences | List organization preferences +*PreferenceApi* | [**frontier_service_list_project_preferences**](docs/PreferenceApi.md#frontier_service_list_project_preferences) | **GET** /v1beta1/projects/{id}/preferences | List project preferences +*PreferenceApi* | [**frontier_service_list_user_preferences**](docs/PreferenceApi.md#frontier_service_list_user_preferences) | **GET** /v1beta1/users/{id}/preferences | List user preferences +*ProjectApi* | [**admin_service_list_projects**](docs/ProjectApi.md#admin_service_list_projects) | **GET** /v1beta1/admin/projects | List all projects +*ProjectApi* | [**frontier_service_create_project**](docs/ProjectApi.md#frontier_service_create_project) | **POST** /v1beta1/projects | Create project +*ProjectApi* | [**frontier_service_delete_project**](docs/ProjectApi.md#frontier_service_delete_project) | **DELETE** /v1beta1/projects/{id} | Delete Project +*ProjectApi* | [**frontier_service_disable_project**](docs/ProjectApi.md#frontier_service_disable_project) | **POST** /v1beta1/projects/{id}/disable | Disable project +*ProjectApi* | [**frontier_service_enable_project**](docs/ProjectApi.md#frontier_service_enable_project) | **POST** /v1beta1/projects/{id}/enable | Enable project +*ProjectApi* | [**frontier_service_get_project**](docs/ProjectApi.md#frontier_service_get_project) | **GET** /v1beta1/projects/{id} | Get project +*ProjectApi* | [**frontier_service_list_project_admins**](docs/ProjectApi.md#frontier_service_list_project_admins) | **GET** /v1beta1/projects/{id}/admins | List project admins +*ProjectApi* | [**frontier_service_list_project_groups**](docs/ProjectApi.md#frontier_service_list_project_groups) | **GET** /v1beta1/projects/{id}/groups | List project groups +*ProjectApi* | [**frontier_service_list_project_service_users**](docs/ProjectApi.md#frontier_service_list_project_service_users) | **GET** /v1beta1/projects/{id}/serviceusers | List project serviceusers +*ProjectApi* | [**frontier_service_list_project_users**](docs/ProjectApi.md#frontier_service_list_project_users) | **GET** /v1beta1/projects/{id}/users | List project users +*ProjectApi* | [**frontier_service_update_project**](docs/ProjectApi.md#frontier_service_update_project) | **PUT** /v1beta1/projects/{id} | Update project +*RelationApi* | [**admin_service_list_relations**](docs/RelationApi.md#admin_service_list_relations) | **GET** /v1beta1/admin/relations | List all relations +*RelationApi* | [**frontier_service_create_relation**](docs/RelationApi.md#frontier_service_create_relation) | **POST** /v1beta1/relations | Create relation +*RelationApi* | [**frontier_service_delete_relation**](docs/RelationApi.md#frontier_service_delete_relation) | **DELETE** /v1beta1/relations/{relation}/object/{object}/subject/{subject} | Delete relation +*RelationApi* | [**frontier_service_get_relation**](docs/RelationApi.md#frontier_service_get_relation) | **GET** /v1beta1/relations/{id} | Get relation +*ResourceApi* | [**admin_service_list_resources**](docs/ResourceApi.md#admin_service_list_resources) | **GET** /v1beta1/admin/resources | List all resources +*ResourceApi* | [**frontier_service_create_project_resource**](docs/ResourceApi.md#frontier_service_create_project_resource) | **POST** /v1beta1/projects/{projectId}/resources | Create resource +*ResourceApi* | [**frontier_service_delete_project_resource**](docs/ResourceApi.md#frontier_service_delete_project_resource) | **DELETE** /v1beta1/projects/{projectId}/resources/{id} | Delete resource +*ResourceApi* | [**frontier_service_get_project_resource**](docs/ResourceApi.md#frontier_service_get_project_resource) | **GET** /v1beta1/projects/{projectId}/resources/{id} | Get resource +*ResourceApi* | [**frontier_service_list_project_resources**](docs/ResourceApi.md#frontier_service_list_project_resources) | **GET** /v1beta1/projects/{projectId}/resources | Get all resources +*ResourceApi* | [**frontier_service_update_project_resource**](docs/ResourceApi.md#frontier_service_update_project_resource) | **PUT** /v1beta1/projects/{projectId}/resources/{id} | Update resource +*RoleApi* | [**admin_service_create_role**](docs/RoleApi.md#admin_service_create_role) | **POST** /v1beta1/roles | Create platform role +*RoleApi* | [**admin_service_delete_role**](docs/RoleApi.md#admin_service_delete_role) | **DELETE** /v1beta1/roles/{id} | Delete platform role +*RoleApi* | [**admin_service_update_role**](docs/RoleApi.md#admin_service_update_role) | **PUT** /v1beta1/roles/{id} | Update role +*RoleApi* | [**frontier_service_create_organization_role**](docs/RoleApi.md#frontier_service_create_organization_role) | **POST** /v1beta1/organizations/{orgId}/roles | Create organization role +*RoleApi* | [**frontier_service_delete_organization_role**](docs/RoleApi.md#frontier_service_delete_organization_role) | **DELETE** /v1beta1/organizations/{orgId}/roles/{id} | Delete organization role +*RoleApi* | [**frontier_service_get_organization_role**](docs/RoleApi.md#frontier_service_get_organization_role) | **GET** /v1beta1/organizations/{orgId}/roles/{id} | Get organization role +*RoleApi* | [**frontier_service_list_organization_roles**](docs/RoleApi.md#frontier_service_list_organization_roles) | **GET** /v1beta1/organizations/{orgId}/roles | List organization roles +*RoleApi* | [**frontier_service_list_roles**](docs/RoleApi.md#frontier_service_list_roles) | **GET** /v1beta1/roles | List platform roles +*RoleApi* | [**frontier_service_update_organization_role**](docs/RoleApi.md#frontier_service_update_organization_role) | **PUT** /v1beta1/organizations/{orgId}/roles/{id} | Update organization role +*ServiceUserApi* | [**frontier_service_create_service_user**](docs/ServiceUserApi.md#frontier_service_create_service_user) | **POST** /v1beta1/serviceusers | Create service user +*ServiceUserApi* | [**frontier_service_create_service_user_key**](docs/ServiceUserApi.md#frontier_service_create_service_user_key) | **POST** /v1beta1/serviceusers/{id}/keys | Create service user key +*ServiceUserApi* | [**frontier_service_create_service_user_secret**](docs/ServiceUserApi.md#frontier_service_create_service_user_secret) | **POST** /v1beta1/serviceusers/{id}/secrets | Create service user secret +*ServiceUserApi* | [**frontier_service_delete_service_user**](docs/ServiceUserApi.md#frontier_service_delete_service_user) | **DELETE** /v1beta1/serviceusers/{id} | Delete service user +*ServiceUserApi* | [**frontier_service_delete_service_user_key**](docs/ServiceUserApi.md#frontier_service_delete_service_user_key) | **DELETE** /v1beta1/serviceusers/{id}/keys/{keyId} | Delete service user key +*ServiceUserApi* | [**frontier_service_delete_service_user_secret**](docs/ServiceUserApi.md#frontier_service_delete_service_user_secret) | **DELETE** /v1beta1/serviceusers/{id}/secrets/{secretId} | Delete service user secret +*ServiceUserApi* | [**frontier_service_get_service_user**](docs/ServiceUserApi.md#frontier_service_get_service_user) | **GET** /v1beta1/serviceusers/{id} | Get service user +*ServiceUserApi* | [**frontier_service_get_service_user_key**](docs/ServiceUserApi.md#frontier_service_get_service_user_key) | **GET** /v1beta1/serviceusers/{id}/keys/{keyId} | Get service user key +*ServiceUserApi* | [**frontier_service_list_service_user_keys**](docs/ServiceUserApi.md#frontier_service_list_service_user_keys) | **GET** /v1beta1/serviceusers/{id}/keys | List service user keys +*ServiceUserApi* | [**frontier_service_list_service_user_secrets**](docs/ServiceUserApi.md#frontier_service_list_service_user_secrets) | **GET** /v1beta1/serviceusers/{id}/secrets | List service user secrets +*ServiceUserApi* | [**frontier_service_list_service_users**](docs/ServiceUserApi.md#frontier_service_list_service_users) | **GET** /v1beta1/serviceusers | List org service users +*SubscriptionApi* | [**frontier_service_cancel_subscription**](docs/SubscriptionApi.md#frontier_service_cancel_subscription) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id}/cancel | Cancel subscription +*SubscriptionApi* | [**frontier_service_get_subscription**](docs/SubscriptionApi.md#frontier_service_get_subscription) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id} | Get subscription +*SubscriptionApi* | [**frontier_service_list_subscriptions**](docs/SubscriptionApi.md#frontier_service_list_subscriptions) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions | List subscriptions +*SubscriptionApi* | [**frontier_service_update_subscription**](docs/SubscriptionApi.md#frontier_service_update_subscription) | **PUT** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id} | Update subscription +*TransactionApi* | [**frontier_service_list_billing_transactions**](docs/TransactionApi.md#frontier_service_list_billing_transactions) | **GET** /v1beta1/billing/{billingId}/transactions | List billing transactions +*UsageApi* | [**frontier_service_create_billing_usage**](docs/UsageApi.md#frontier_service_create_billing_usage) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/usages | Create billing usage +*UserApi* | [**admin_service_list_all_users**](docs/UserApi.md#admin_service_list_all_users) | **GET** /v1beta1/admin/users | List all users +*UserApi* | [**frontier_service_create_user**](docs/UserApi.md#frontier_service_create_user) | **POST** /v1beta1/users | Create user +*UserApi* | [**frontier_service_delete_user**](docs/UserApi.md#frontier_service_delete_user) | **DELETE** /v1beta1/users/{id} | Delete user +*UserApi* | [**frontier_service_disable_user**](docs/UserApi.md#frontier_service_disable_user) | **POST** /v1beta1/users/{id}/disable | Disable user +*UserApi* | [**frontier_service_enable_user**](docs/UserApi.md#frontier_service_enable_user) | **POST** /v1beta1/users/{id}/enable | Enable user +*UserApi* | [**frontier_service_get_current_user**](docs/UserApi.md#frontier_service_get_current_user) | **GET** /v1beta1/users/self | Get current user +*UserApi* | [**frontier_service_get_user**](docs/UserApi.md#frontier_service_get_user) | **GET** /v1beta1/users/{id} | Get user +*UserApi* | [**frontier_service_list_current_user_groups**](docs/UserApi.md#frontier_service_list_current_user_groups) | **GET** /v1beta1/users/self/groups | List my groups +*UserApi* | [**frontier_service_list_current_user_invitations**](docs/UserApi.md#frontier_service_list_current_user_invitations) | **GET** /v1beta1/users/self/invitations | List user invitations +*UserApi* | [**frontier_service_list_organizations_by_current_user**](docs/UserApi.md#frontier_service_list_organizations_by_current_user) | **GET** /v1beta1/users/self/organizations | Get my organizations +*UserApi* | [**frontier_service_list_organizations_by_user**](docs/UserApi.md#frontier_service_list_organizations_by_user) | **GET** /v1beta1/users/{id}/organizations | Get user organizations +*UserApi* | [**frontier_service_list_projects_by_current_user**](docs/UserApi.md#frontier_service_list_projects_by_current_user) | **GET** /v1beta1/users/self/projects | Get my projects +*UserApi* | [**frontier_service_list_projects_by_user**](docs/UserApi.md#frontier_service_list_projects_by_user) | **GET** /v1beta1/users/{id}/projects | Get user projects +*UserApi* | [**frontier_service_list_user_groups**](docs/UserApi.md#frontier_service_list_user_groups) | **GET** /v1beta1/users/{id}/groups | List user groups +*UserApi* | [**frontier_service_list_user_invitations**](docs/UserApi.md#frontier_service_list_user_invitations) | **GET** /v1beta1/users/{id}/invitations | List user invitations +*UserApi* | [**frontier_service_list_users**](docs/UserApi.md#frontier_service_list_users) | **GET** /v1beta1/users | List public users +*UserApi* | [**frontier_service_update_current_user**](docs/UserApi.md#frontier_service_update_current_user) | **PUT** /v1beta1/users/self | Update current user +*UserApi* | [**frontier_service_update_user**](docs/UserApi.md#frontier_service_update_user) | **PUT** /v1beta1/users/{id} | Update user -## Documentation For Models - - [ProtobufAny](docs/models/ProtobufAny.md) - - [ProtobufNullValue](docs/models/ProtobufNullValue.md) - - [RpcStatus](docs/models/RpcStatus.md) - - [V1beta1AuditLog](docs/models/V1beta1AuditLog.md) - - [V1beta1AuditLogActor](docs/models/V1beta1AuditLogActor.md) - - [V1beta1AuditLogTarget](docs/models/V1beta1AuditLogTarget.md) - - [V1beta1AuthCallbackRequest](docs/models/V1beta1AuthCallbackRequest.md) - - [V1beta1AuthStrategy](docs/models/V1beta1AuthStrategy.md) - - [V1beta1AuthTokenRequest](docs/models/V1beta1AuthTokenRequest.md) - - [V1beta1AuthTokenResponse](docs/models/V1beta1AuthTokenResponse.md) - - [V1beta1AuthenticateResponse](docs/models/V1beta1AuthenticateResponse.md) - - [V1beta1BatchCheckPermissionBody](docs/models/V1beta1BatchCheckPermissionBody.md) - - [V1beta1BatchCheckPermissionRequest](docs/models/V1beta1BatchCheckPermissionRequest.md) - - [V1beta1BatchCheckPermissionResponse](docs/models/V1beta1BatchCheckPermissionResponse.md) - - [V1beta1BatchCheckPermissionResponsePair](docs/models/V1beta1BatchCheckPermissionResponsePair.md) - - [V1beta1CheckResourcePermissionRequest](docs/models/V1beta1CheckResourcePermissionRequest.md) - - [V1beta1CheckResourcePermissionResponse](docs/models/V1beta1CheckResourcePermissionResponse.md) - - [V1beta1CreateCurrentUserPreferencesRequest](docs/models/V1beta1CreateCurrentUserPreferencesRequest.md) - - [V1beta1CreateCurrentUserPreferencesResponse](docs/models/V1beta1CreateCurrentUserPreferencesResponse.md) - - [V1beta1CreateGroupPreferencesResponse](docs/models/V1beta1CreateGroupPreferencesResponse.md) - - [V1beta1CreateGroupResponse](docs/models/V1beta1CreateGroupResponse.md) - - [V1beta1CreateMetaSchemaResponse](docs/models/V1beta1CreateMetaSchemaResponse.md) - - [V1beta1CreateOrganizationDomainResponse](docs/models/V1beta1CreateOrganizationDomainResponse.md) - - [V1beta1CreateOrganizationInvitationResponse](docs/models/V1beta1CreateOrganizationInvitationResponse.md) - - [V1beta1CreateOrganizationPreferencesResponse](docs/models/V1beta1CreateOrganizationPreferencesResponse.md) - - [V1beta1CreateOrganizationResponse](docs/models/V1beta1CreateOrganizationResponse.md) - - [V1beta1CreateOrganizationRoleResponse](docs/models/V1beta1CreateOrganizationRoleResponse.md) - - [V1beta1CreatePermissionRequest](docs/models/V1beta1CreatePermissionRequest.md) - - [V1beta1CreatePermissionResponse](docs/models/V1beta1CreatePermissionResponse.md) - - [V1beta1CreatePolicyResponse](docs/models/V1beta1CreatePolicyResponse.md) - - [V1beta1CreatePreferencesRequest](docs/models/V1beta1CreatePreferencesRequest.md) - - [V1beta1CreatePreferencesResponse](docs/models/V1beta1CreatePreferencesResponse.md) - - [V1beta1CreateProjectPreferencesResponse](docs/models/V1beta1CreateProjectPreferencesResponse.md) - - [V1beta1CreateProjectResourceResponse](docs/models/V1beta1CreateProjectResourceResponse.md) - - [V1beta1CreateProjectResponse](docs/models/V1beta1CreateProjectResponse.md) - - [V1beta1CreateRelationResponse](docs/models/V1beta1CreateRelationResponse.md) - - [V1beta1CreateRoleResponse](docs/models/V1beta1CreateRoleResponse.md) - - [V1beta1CreateServiceUserKeyResponse](docs/models/V1beta1CreateServiceUserKeyResponse.md) - - [V1beta1CreateServiceUserRequest](docs/models/V1beta1CreateServiceUserRequest.md) - - [V1beta1CreateServiceUserResponse](docs/models/V1beta1CreateServiceUserResponse.md) - - [V1beta1CreateServiceUserSecretResponse](docs/models/V1beta1CreateServiceUserSecretResponse.md) - - [V1beta1CreateUserPreferencesResponse](docs/models/V1beta1CreateUserPreferencesResponse.md) - - [V1beta1CreateUserResponse](docs/models/V1beta1CreateUserResponse.md) - - [V1beta1DescribePreferencesResponse](docs/models/V1beta1DescribePreferencesResponse.md) - - [V1beta1Domain](docs/models/V1beta1Domain.md) - - [V1beta1GetCurrentUserResponse](docs/models/V1beta1GetCurrentUserResponse.md) - - [V1beta1GetGroupResponse](docs/models/V1beta1GetGroupResponse.md) - - [V1beta1GetJWKsResponse](docs/models/V1beta1GetJWKsResponse.md) - - [V1beta1GetMetaSchemaResponse](docs/models/V1beta1GetMetaSchemaResponse.md) - - [V1beta1GetNamespaceResponse](docs/models/V1beta1GetNamespaceResponse.md) - - [V1beta1GetOrganizationAuditLogResponse](docs/models/V1beta1GetOrganizationAuditLogResponse.md) - - [V1beta1GetOrganizationDomainResponse](docs/models/V1beta1GetOrganizationDomainResponse.md) - - [V1beta1GetOrganizationInvitationResponse](docs/models/V1beta1GetOrganizationInvitationResponse.md) - - [V1beta1GetOrganizationResponse](docs/models/V1beta1GetOrganizationResponse.md) - - [V1beta1GetOrganizationRoleResponse](docs/models/V1beta1GetOrganizationRoleResponse.md) - - [V1beta1GetPermissionResponse](docs/models/V1beta1GetPermissionResponse.md) - - [V1beta1GetPolicyResponse](docs/models/V1beta1GetPolicyResponse.md) - - [V1beta1GetProjectResourceResponse](docs/models/V1beta1GetProjectResourceResponse.md) - - [V1beta1GetProjectResponse](docs/models/V1beta1GetProjectResponse.md) - - [V1beta1GetRelationResponse](docs/models/V1beta1GetRelationResponse.md) - - [V1beta1GetServiceUserKeyResponse](docs/models/V1beta1GetServiceUserKeyResponse.md) - - [V1beta1GetServiceUserResponse](docs/models/V1beta1GetServiceUserResponse.md) - - [V1beta1GetUserResponse](docs/models/V1beta1GetUserResponse.md) - - [V1beta1Group](docs/models/V1beta1Group.md) - - [V1beta1GroupRequestBody](docs/models/V1beta1GroupRequestBody.md) - - [V1beta1Invitation](docs/models/V1beta1Invitation.md) - - [V1beta1JSONWebKey](docs/models/V1beta1JSONWebKey.md) - - [V1beta1KeyCredential](docs/models/V1beta1KeyCredential.md) - - [V1beta1ListAllOrganizationsResponse](docs/models/V1beta1ListAllOrganizationsResponse.md) - - [V1beta1ListAllUsersResponse](docs/models/V1beta1ListAllUsersResponse.md) - - [V1beta1ListAuthStrategiesResponse](docs/models/V1beta1ListAuthStrategiesResponse.md) - - [V1beta1ListCurrentUserGroupsResponse](docs/models/V1beta1ListCurrentUserGroupsResponse.md) - - [V1beta1ListCurrentUserGroupsResponseAccessPair](docs/models/V1beta1ListCurrentUserGroupsResponseAccessPair.md) - - [V1beta1ListCurrentUserPreferencesResponse](docs/models/V1beta1ListCurrentUserPreferencesResponse.md) - - [V1beta1ListGroupPreferencesResponse](docs/models/V1beta1ListGroupPreferencesResponse.md) - - [V1beta1ListGroupUsersResponse](docs/models/V1beta1ListGroupUsersResponse.md) - - [V1beta1ListGroupUsersResponseRolePair](docs/models/V1beta1ListGroupUsersResponseRolePair.md) - - [V1beta1ListGroupsResponse](docs/models/V1beta1ListGroupsResponse.md) - - [V1beta1ListMetaSchemasResponse](docs/models/V1beta1ListMetaSchemasResponse.md) - - [V1beta1ListNamespacesResponse](docs/models/V1beta1ListNamespacesResponse.md) - - [V1beta1ListOrganizationAdminsResponse](docs/models/V1beta1ListOrganizationAdminsResponse.md) - - [V1beta1ListOrganizationAuditLogsResponse](docs/models/V1beta1ListOrganizationAuditLogsResponse.md) - - [V1beta1ListOrganizationDomainsResponse](docs/models/V1beta1ListOrganizationDomainsResponse.md) - - [V1beta1ListOrganizationGroupsResponse](docs/models/V1beta1ListOrganizationGroupsResponse.md) - - [V1beta1ListOrganizationInvitationsResponse](docs/models/V1beta1ListOrganizationInvitationsResponse.md) - - [V1beta1ListOrganizationPreferencesResponse](docs/models/V1beta1ListOrganizationPreferencesResponse.md) - - [V1beta1ListOrganizationProjectsResponse](docs/models/V1beta1ListOrganizationProjectsResponse.md) - - [V1beta1ListOrganizationRolesResponse](docs/models/V1beta1ListOrganizationRolesResponse.md) - - [V1beta1ListOrganizationServiceUsersResponse](docs/models/V1beta1ListOrganizationServiceUsersResponse.md) - - [V1beta1ListOrganizationUsersResponse](docs/models/V1beta1ListOrganizationUsersResponse.md) - - [V1beta1ListOrganizationsByCurrentUserResponse](docs/models/V1beta1ListOrganizationsByCurrentUserResponse.md) - - [V1beta1ListOrganizationsByUserResponse](docs/models/V1beta1ListOrganizationsByUserResponse.md) - - [V1beta1ListOrganizationsResponse](docs/models/V1beta1ListOrganizationsResponse.md) - - [V1beta1ListPermissionsResponse](docs/models/V1beta1ListPermissionsResponse.md) - - [V1beta1ListPoliciesResponse](docs/models/V1beta1ListPoliciesResponse.md) - - [V1beta1ListPreferencesResponse](docs/models/V1beta1ListPreferencesResponse.md) - - [V1beta1ListProjectAdminsResponse](docs/models/V1beta1ListProjectAdminsResponse.md) - - [V1beta1ListProjectPreferencesResponse](docs/models/V1beta1ListProjectPreferencesResponse.md) - - [V1beta1ListProjectResourcesResponse](docs/models/V1beta1ListProjectResourcesResponse.md) - - [V1beta1ListProjectServiceUsersResponse](docs/models/V1beta1ListProjectServiceUsersResponse.md) - - [V1beta1ListProjectServiceUsersResponseRolePair](docs/models/V1beta1ListProjectServiceUsersResponseRolePair.md) - - [V1beta1ListProjectUsersResponse](docs/models/V1beta1ListProjectUsersResponse.md) - - [V1beta1ListProjectUsersResponseRolePair](docs/models/V1beta1ListProjectUsersResponseRolePair.md) - - [V1beta1ListProjectsByCurrentUserResponse](docs/models/V1beta1ListProjectsByCurrentUserResponse.md) - - [V1beta1ListProjectsByCurrentUserResponseAccessPair](docs/models/V1beta1ListProjectsByCurrentUserResponseAccessPair.md) - - [V1beta1ListProjectsByUserResponse](docs/models/V1beta1ListProjectsByUserResponse.md) - - [V1beta1ListProjectsResponse](docs/models/V1beta1ListProjectsResponse.md) - - [V1beta1ListRelationsResponse](docs/models/V1beta1ListRelationsResponse.md) - - [V1beta1ListResourcesResponse](docs/models/V1beta1ListResourcesResponse.md) - - [V1beta1ListRolesResponse](docs/models/V1beta1ListRolesResponse.md) - - [V1beta1ListServiceUserKeysResponse](docs/models/V1beta1ListServiceUserKeysResponse.md) - - [V1beta1ListServiceUserSecretsResponse](docs/models/V1beta1ListServiceUserSecretsResponse.md) - - [V1beta1ListServiceUsersResponse](docs/models/V1beta1ListServiceUsersResponse.md) - - [V1beta1ListUserGroupsResponse](docs/models/V1beta1ListUserGroupsResponse.md) - - [V1beta1ListUserInvitationsResponse](docs/models/V1beta1ListUserInvitationsResponse.md) - - [V1beta1ListUserPreferencesResponse](docs/models/V1beta1ListUserPreferencesResponse.md) - - [V1beta1ListUsersResponse](docs/models/V1beta1ListUsersResponse.md) - - [V1beta1MetaSchema](docs/models/V1beta1MetaSchema.md) - - [V1beta1MetaSchemaRequestBody](docs/models/V1beta1MetaSchemaRequestBody.md) - - [V1beta1Namespace](docs/models/V1beta1Namespace.md) - - [V1beta1Organization](docs/models/V1beta1Organization.md) - - [V1beta1OrganizationRequestBody](docs/models/V1beta1OrganizationRequestBody.md) - - [V1beta1Permission](docs/models/V1beta1Permission.md) - - [V1beta1PermissionRequestBody](docs/models/V1beta1PermissionRequestBody.md) - - [V1beta1Policy](docs/models/V1beta1Policy.md) - - [V1beta1PolicyRequestBody](docs/models/V1beta1PolicyRequestBody.md) - - [V1beta1Preference](docs/models/V1beta1Preference.md) - - [V1beta1PreferenceRequestBody](docs/models/V1beta1PreferenceRequestBody.md) - - [V1beta1PreferenceTrait](docs/models/V1beta1PreferenceTrait.md) - - [V1beta1Project](docs/models/V1beta1Project.md) - - [V1beta1ProjectRequestBody](docs/models/V1beta1ProjectRequestBody.md) - - [V1beta1Relation](docs/models/V1beta1Relation.md) - - [V1beta1RelationRequestBody](docs/models/V1beta1RelationRequestBody.md) - - [V1beta1Resource](docs/models/V1beta1Resource.md) - - [V1beta1ResourceRequestBody](docs/models/V1beta1ResourceRequestBody.md) - - [V1beta1Role](docs/models/V1beta1Role.md) - - [V1beta1RoleRequestBody](docs/models/V1beta1RoleRequestBody.md) - - [V1beta1SecretCredential](docs/models/V1beta1SecretCredential.md) - - [V1beta1ServiceUser](docs/models/V1beta1ServiceUser.md) - - [V1beta1ServiceUserKey](docs/models/V1beta1ServiceUserKey.md) - - [V1beta1ServiceUserRequestBody](docs/models/V1beta1ServiceUserRequestBody.md) - - [V1beta1UpdateCurrentUserResponse](docs/models/V1beta1UpdateCurrentUserResponse.md) - - [V1beta1UpdateGroupResponse](docs/models/V1beta1UpdateGroupResponse.md) - - [V1beta1UpdateMetaSchemaResponse](docs/models/V1beta1UpdateMetaSchemaResponse.md) - - [V1beta1UpdateOrganizationResponse](docs/models/V1beta1UpdateOrganizationResponse.md) - - [V1beta1UpdateOrganizationRoleResponse](docs/models/V1beta1UpdateOrganizationRoleResponse.md) - - [V1beta1UpdatePermissionResponse](docs/models/V1beta1UpdatePermissionResponse.md) - - [V1beta1UpdatePolicyResponse](docs/models/V1beta1UpdatePolicyResponse.md) - - [V1beta1UpdateProjectResourceResponse](docs/models/V1beta1UpdateProjectResourceResponse.md) - - [V1beta1UpdateProjectResponse](docs/models/V1beta1UpdateProjectResponse.md) - - [V1beta1UpdateRoleResponse](docs/models/V1beta1UpdateRoleResponse.md) - - [V1beta1UpdateUserResponse](docs/models/V1beta1UpdateUserResponse.md) - - [V1beta1User](docs/models/V1beta1User.md) - - [V1beta1UserRequestBody](docs/models/V1beta1UserRequestBody.md) - - [V1beta1VerifyOrganizationDomainResponse](docs/models/V1beta1VerifyOrganizationDomainResponse.md) +## Documentation For Models + - [BillingAccountAddress](docs/BillingAccountAddress.md) + - [BillingAccountBalance](docs/BillingAccountBalance.md) + - [FrontierServiceAddGroupUsersRequest](docs/FrontierServiceAddGroupUsersRequest.md) + - [FrontierServiceAddOrganizationUsersRequest](docs/FrontierServiceAddOrganizationUsersRequest.md) + - [FrontierServiceAuthenticate2Request](docs/FrontierServiceAuthenticate2Request.md) + - [FrontierServiceCheckFeatureEntitlementRequest](docs/FrontierServiceCheckFeatureEntitlementRequest.md) + - [FrontierServiceCreateBillingAccountRequest](docs/FrontierServiceCreateBillingAccountRequest.md) + - [FrontierServiceCreateBillingUsageRequest](docs/FrontierServiceCreateBillingUsageRequest.md) + - [FrontierServiceCreateCheckoutRequest](docs/FrontierServiceCreateCheckoutRequest.md) + - [FrontierServiceCreateGroupPreferencesRequest](docs/FrontierServiceCreateGroupPreferencesRequest.md) + - [FrontierServiceCreateOrganizationAuditLogsRequest](docs/FrontierServiceCreateOrganizationAuditLogsRequest.md) + - [FrontierServiceCreateOrganizationDomainRequest](docs/FrontierServiceCreateOrganizationDomainRequest.md) + - [FrontierServiceCreateOrganizationInvitationRequest](docs/FrontierServiceCreateOrganizationInvitationRequest.md) + - [FrontierServiceCreateServiceUserKeyRequest](docs/FrontierServiceCreateServiceUserKeyRequest.md) + - [FrontierServiceUpdateFeatureRequest](docs/FrontierServiceUpdateFeatureRequest.md) + - [FrontierServiceUpdatePlanRequest](docs/FrontierServiceUpdatePlanRequest.md) + - [FrontierServiceUpdateSubscriptionRequest](docs/FrontierServiceUpdateSubscriptionRequest.md) + - [ProtobufAny](docs/ProtobufAny.md) + - [ProtobufNullValue](docs/ProtobufNullValue.md) + - [RpcStatus](docs/RpcStatus.md) + - [V1beta1AddPlatformUserRequest](docs/V1beta1AddPlatformUserRequest.md) + - [V1beta1AuditLog](docs/V1beta1AuditLog.md) + - [V1beta1AuditLogActor](docs/V1beta1AuditLogActor.md) + - [V1beta1AuditLogTarget](docs/V1beta1AuditLogTarget.md) + - [V1beta1AuthCallbackRequest](docs/V1beta1AuthCallbackRequest.md) + - [V1beta1AuthStrategy](docs/V1beta1AuthStrategy.md) + - [V1beta1AuthTokenRequest](docs/V1beta1AuthTokenRequest.md) + - [V1beta1AuthTokenResponse](docs/V1beta1AuthTokenResponse.md) + - [V1beta1AuthenticateResponse](docs/V1beta1AuthenticateResponse.md) + - [V1beta1BatchCheckPermissionBody](docs/V1beta1BatchCheckPermissionBody.md) + - [V1beta1BatchCheckPermissionRequest](docs/V1beta1BatchCheckPermissionRequest.md) + - [V1beta1BatchCheckPermissionResponse](docs/V1beta1BatchCheckPermissionResponse.md) + - [V1beta1BatchCheckPermissionResponsePair](docs/V1beta1BatchCheckPermissionResponsePair.md) + - [V1beta1BillingAccount](docs/V1beta1BillingAccount.md) + - [V1beta1BillingAccountRequestBody](docs/V1beta1BillingAccountRequestBody.md) + - [V1beta1BillingTransaction](docs/V1beta1BillingTransaction.md) + - [V1beta1CheckFeatureEntitlementResponse](docs/V1beta1CheckFeatureEntitlementResponse.md) + - [V1beta1CheckFederatedResourcePermissionRequest](docs/V1beta1CheckFederatedResourcePermissionRequest.md) + - [V1beta1CheckFederatedResourcePermissionResponse](docs/V1beta1CheckFederatedResourcePermissionResponse.md) + - [V1beta1CheckResourcePermissionRequest](docs/V1beta1CheckResourcePermissionRequest.md) + - [V1beta1CheckResourcePermissionResponse](docs/V1beta1CheckResourcePermissionResponse.md) + - [V1beta1CheckoutFeatureBody](docs/V1beta1CheckoutFeatureBody.md) + - [V1beta1CheckoutSession](docs/V1beta1CheckoutSession.md) + - [V1beta1CheckoutSubscriptionBody](docs/V1beta1CheckoutSubscriptionBody.md) + - [V1beta1CreateBillingAccountResponse](docs/V1beta1CreateBillingAccountResponse.md) + - [V1beta1CreateCheckoutResponse](docs/V1beta1CreateCheckoutResponse.md) + - [V1beta1CreateCurrentUserPreferencesRequest](docs/V1beta1CreateCurrentUserPreferencesRequest.md) + - [V1beta1CreateCurrentUserPreferencesResponse](docs/V1beta1CreateCurrentUserPreferencesResponse.md) + - [V1beta1CreateFeatureRequest](docs/V1beta1CreateFeatureRequest.md) + - [V1beta1CreateFeatureResponse](docs/V1beta1CreateFeatureResponse.md) + - [V1beta1CreateGroupPreferencesResponse](docs/V1beta1CreateGroupPreferencesResponse.md) + - [V1beta1CreateGroupResponse](docs/V1beta1CreateGroupResponse.md) + - [V1beta1CreateMetaSchemaResponse](docs/V1beta1CreateMetaSchemaResponse.md) + - [V1beta1CreateOrganizationDomainResponse](docs/V1beta1CreateOrganizationDomainResponse.md) + - [V1beta1CreateOrganizationInvitationResponse](docs/V1beta1CreateOrganizationInvitationResponse.md) + - [V1beta1CreateOrganizationPreferencesResponse](docs/V1beta1CreateOrganizationPreferencesResponse.md) + - [V1beta1CreateOrganizationResponse](docs/V1beta1CreateOrganizationResponse.md) + - [V1beta1CreateOrganizationRoleResponse](docs/V1beta1CreateOrganizationRoleResponse.md) + - [V1beta1CreatePermissionRequest](docs/V1beta1CreatePermissionRequest.md) + - [V1beta1CreatePermissionResponse](docs/V1beta1CreatePermissionResponse.md) + - [V1beta1CreatePlanRequest](docs/V1beta1CreatePlanRequest.md) + - [V1beta1CreatePlanResponse](docs/V1beta1CreatePlanResponse.md) + - [V1beta1CreatePolicyResponse](docs/V1beta1CreatePolicyResponse.md) + - [V1beta1CreatePreferencesRequest](docs/V1beta1CreatePreferencesRequest.md) + - [V1beta1CreatePreferencesResponse](docs/V1beta1CreatePreferencesResponse.md) + - [V1beta1CreateProjectPreferencesResponse](docs/V1beta1CreateProjectPreferencesResponse.md) + - [V1beta1CreateProjectResourceResponse](docs/V1beta1CreateProjectResourceResponse.md) + - [V1beta1CreateProjectResponse](docs/V1beta1CreateProjectResponse.md) + - [V1beta1CreateRelationResponse](docs/V1beta1CreateRelationResponse.md) + - [V1beta1CreateRoleResponse](docs/V1beta1CreateRoleResponse.md) + - [V1beta1CreateServiceUserKeyResponse](docs/V1beta1CreateServiceUserKeyResponse.md) + - [V1beta1CreateServiceUserRequest](docs/V1beta1CreateServiceUserRequest.md) + - [V1beta1CreateServiceUserResponse](docs/V1beta1CreateServiceUserResponse.md) + - [V1beta1CreateServiceUserSecretResponse](docs/V1beta1CreateServiceUserSecretResponse.md) + - [V1beta1CreateUserPreferencesResponse](docs/V1beta1CreateUserPreferencesResponse.md) + - [V1beta1CreateUserResponse](docs/V1beta1CreateUserResponse.md) + - [V1beta1DescribePreferencesResponse](docs/V1beta1DescribePreferencesResponse.md) + - [V1beta1Domain](docs/V1beta1Domain.md) + - [V1beta1Feature](docs/V1beta1Feature.md) + - [V1beta1FeatureRequestBody](docs/V1beta1FeatureRequestBody.md) + - [V1beta1GetBillingAccountResponse](docs/V1beta1GetBillingAccountResponse.md) + - [V1beta1GetBillingBalanceResponse](docs/V1beta1GetBillingBalanceResponse.md) + - [V1beta1GetCurrentUserResponse](docs/V1beta1GetCurrentUserResponse.md) + - [V1beta1GetFeatureResponse](docs/V1beta1GetFeatureResponse.md) + - [V1beta1GetGroupResponse](docs/V1beta1GetGroupResponse.md) + - [V1beta1GetJWKsResponse](docs/V1beta1GetJWKsResponse.md) + - [V1beta1GetMetaSchemaResponse](docs/V1beta1GetMetaSchemaResponse.md) + - [V1beta1GetNamespaceResponse](docs/V1beta1GetNamespaceResponse.md) + - [V1beta1GetOrganizationAuditLogResponse](docs/V1beta1GetOrganizationAuditLogResponse.md) + - [V1beta1GetOrganizationDomainResponse](docs/V1beta1GetOrganizationDomainResponse.md) + - [V1beta1GetOrganizationInvitationResponse](docs/V1beta1GetOrganizationInvitationResponse.md) + - [V1beta1GetOrganizationResponse](docs/V1beta1GetOrganizationResponse.md) + - [V1beta1GetOrganizationRoleResponse](docs/V1beta1GetOrganizationRoleResponse.md) + - [V1beta1GetPermissionResponse](docs/V1beta1GetPermissionResponse.md) + - [V1beta1GetPlanResponse](docs/V1beta1GetPlanResponse.md) + - [V1beta1GetPolicyResponse](docs/V1beta1GetPolicyResponse.md) + - [V1beta1GetProjectResourceResponse](docs/V1beta1GetProjectResourceResponse.md) + - [V1beta1GetProjectResponse](docs/V1beta1GetProjectResponse.md) + - [V1beta1GetRelationResponse](docs/V1beta1GetRelationResponse.md) + - [V1beta1GetServiceUserKeyResponse](docs/V1beta1GetServiceUserKeyResponse.md) + - [V1beta1GetServiceUserResponse](docs/V1beta1GetServiceUserResponse.md) + - [V1beta1GetSubscriptionResponse](docs/V1beta1GetSubscriptionResponse.md) + - [V1beta1GetUserResponse](docs/V1beta1GetUserResponse.md) + - [V1beta1Group](docs/V1beta1Group.md) + - [V1beta1GroupRequestBody](docs/V1beta1GroupRequestBody.md) + - [V1beta1Invitation](docs/V1beta1Invitation.md) + - [V1beta1JSONWebKey](docs/V1beta1JSONWebKey.md) + - [V1beta1KeyCredential](docs/V1beta1KeyCredential.md) + - [V1beta1ListAllOrganizationsResponse](docs/V1beta1ListAllOrganizationsResponse.md) + - [V1beta1ListAllUsersResponse](docs/V1beta1ListAllUsersResponse.md) + - [V1beta1ListAuthStrategiesResponse](docs/V1beta1ListAuthStrategiesResponse.md) + - [V1beta1ListBillingAccountsResponse](docs/V1beta1ListBillingAccountsResponse.md) + - [V1beta1ListBillingTransactionsResponse](docs/V1beta1ListBillingTransactionsResponse.md) + - [V1beta1ListCheckoutsResponse](docs/V1beta1ListCheckoutsResponse.md) + - [V1beta1ListCurrentUserGroupsResponse](docs/V1beta1ListCurrentUserGroupsResponse.md) + - [V1beta1ListCurrentUserGroupsResponseAccessPair](docs/V1beta1ListCurrentUserGroupsResponseAccessPair.md) + - [V1beta1ListCurrentUserInvitationsResponse](docs/V1beta1ListCurrentUserInvitationsResponse.md) + - [V1beta1ListCurrentUserPreferencesResponse](docs/V1beta1ListCurrentUserPreferencesResponse.md) + - [V1beta1ListFeaturesResponse](docs/V1beta1ListFeaturesResponse.md) + - [V1beta1ListGroupPreferencesResponse](docs/V1beta1ListGroupPreferencesResponse.md) + - [V1beta1ListGroupUsersResponse](docs/V1beta1ListGroupUsersResponse.md) + - [V1beta1ListGroupUsersResponseRolePair](docs/V1beta1ListGroupUsersResponseRolePair.md) + - [V1beta1ListGroupsResponse](docs/V1beta1ListGroupsResponse.md) + - [V1beta1ListMetaSchemasResponse](docs/V1beta1ListMetaSchemasResponse.md) + - [V1beta1ListNamespacesResponse](docs/V1beta1ListNamespacesResponse.md) + - [V1beta1ListOrganizationAdminsResponse](docs/V1beta1ListOrganizationAdminsResponse.md) + - [V1beta1ListOrganizationAuditLogsResponse](docs/V1beta1ListOrganizationAuditLogsResponse.md) + - [V1beta1ListOrganizationDomainsResponse](docs/V1beta1ListOrganizationDomainsResponse.md) + - [V1beta1ListOrganizationGroupsResponse](docs/V1beta1ListOrganizationGroupsResponse.md) + - [V1beta1ListOrganizationInvitationsResponse](docs/V1beta1ListOrganizationInvitationsResponse.md) + - [V1beta1ListOrganizationPreferencesResponse](docs/V1beta1ListOrganizationPreferencesResponse.md) + - [V1beta1ListOrganizationProjectsResponse](docs/V1beta1ListOrganizationProjectsResponse.md) + - [V1beta1ListOrganizationRolesResponse](docs/V1beta1ListOrganizationRolesResponse.md) + - [V1beta1ListOrganizationServiceUsersResponse](docs/V1beta1ListOrganizationServiceUsersResponse.md) + - [V1beta1ListOrganizationUsersResponse](docs/V1beta1ListOrganizationUsersResponse.md) + - [V1beta1ListOrganizationUsersResponseRolePair](docs/V1beta1ListOrganizationUsersResponseRolePair.md) + - [V1beta1ListOrganizationsByCurrentUserResponse](docs/V1beta1ListOrganizationsByCurrentUserResponse.md) + - [V1beta1ListOrganizationsByUserResponse](docs/V1beta1ListOrganizationsByUserResponse.md) + - [V1beta1ListOrganizationsResponse](docs/V1beta1ListOrganizationsResponse.md) + - [V1beta1ListPermissionsResponse](docs/V1beta1ListPermissionsResponse.md) + - [V1beta1ListPlansResponse](docs/V1beta1ListPlansResponse.md) + - [V1beta1ListPoliciesResponse](docs/V1beta1ListPoliciesResponse.md) + - [V1beta1ListPreferencesResponse](docs/V1beta1ListPreferencesResponse.md) + - [V1beta1ListProjectAdminsResponse](docs/V1beta1ListProjectAdminsResponse.md) + - [V1beta1ListProjectGroupsResponse](docs/V1beta1ListProjectGroupsResponse.md) + - [V1beta1ListProjectGroupsResponseRolePair](docs/V1beta1ListProjectGroupsResponseRolePair.md) + - [V1beta1ListProjectPreferencesResponse](docs/V1beta1ListProjectPreferencesResponse.md) + - [V1beta1ListProjectResourcesResponse](docs/V1beta1ListProjectResourcesResponse.md) + - [V1beta1ListProjectServiceUsersResponse](docs/V1beta1ListProjectServiceUsersResponse.md) + - [V1beta1ListProjectServiceUsersResponseRolePair](docs/V1beta1ListProjectServiceUsersResponseRolePair.md) + - [V1beta1ListProjectUsersResponse](docs/V1beta1ListProjectUsersResponse.md) + - [V1beta1ListProjectUsersResponseRolePair](docs/V1beta1ListProjectUsersResponseRolePair.md) + - [V1beta1ListProjectsByCurrentUserResponse](docs/V1beta1ListProjectsByCurrentUserResponse.md) + - [V1beta1ListProjectsByCurrentUserResponseAccessPair](docs/V1beta1ListProjectsByCurrentUserResponseAccessPair.md) + - [V1beta1ListProjectsByUserResponse](docs/V1beta1ListProjectsByUserResponse.md) + - [V1beta1ListProjectsResponse](docs/V1beta1ListProjectsResponse.md) + - [V1beta1ListRelationsResponse](docs/V1beta1ListRelationsResponse.md) + - [V1beta1ListResourcesResponse](docs/V1beta1ListResourcesResponse.md) + - [V1beta1ListRolesResponse](docs/V1beta1ListRolesResponse.md) + - [V1beta1ListServiceUserKeysResponse](docs/V1beta1ListServiceUserKeysResponse.md) + - [V1beta1ListServiceUserSecretsResponse](docs/V1beta1ListServiceUserSecretsResponse.md) + - [V1beta1ListServiceUsersResponse](docs/V1beta1ListServiceUsersResponse.md) + - [V1beta1ListSubscriptionsResponse](docs/V1beta1ListSubscriptionsResponse.md) + - [V1beta1ListUserGroupsResponse](docs/V1beta1ListUserGroupsResponse.md) + - [V1beta1ListUserInvitationsResponse](docs/V1beta1ListUserInvitationsResponse.md) + - [V1beta1ListUserPreferencesResponse](docs/V1beta1ListUserPreferencesResponse.md) + - [V1beta1ListUsersResponse](docs/V1beta1ListUsersResponse.md) + - [V1beta1MetaSchema](docs/V1beta1MetaSchema.md) + - [V1beta1MetaSchemaRequestBody](docs/V1beta1MetaSchemaRequestBody.md) + - [V1beta1Namespace](docs/V1beta1Namespace.md) + - [V1beta1Organization](docs/V1beta1Organization.md) + - [V1beta1OrganizationRequestBody](docs/V1beta1OrganizationRequestBody.md) + - [V1beta1Permission](docs/V1beta1Permission.md) + - [V1beta1PermissionRequestBody](docs/V1beta1PermissionRequestBody.md) + - [V1beta1Plan](docs/V1beta1Plan.md) + - [V1beta1PlanRequestBody](docs/V1beta1PlanRequestBody.md) + - [V1beta1Policy](docs/V1beta1Policy.md) + - [V1beta1PolicyRequestBody](docs/V1beta1PolicyRequestBody.md) + - [V1beta1Preference](docs/V1beta1Preference.md) + - [V1beta1PreferenceRequestBody](docs/V1beta1PreferenceRequestBody.md) + - [V1beta1PreferenceTrait](docs/V1beta1PreferenceTrait.md) + - [V1beta1Price](docs/V1beta1Price.md) + - [V1beta1Project](docs/V1beta1Project.md) + - [V1beta1ProjectRequestBody](docs/V1beta1ProjectRequestBody.md) + - [V1beta1Relation](docs/V1beta1Relation.md) + - [V1beta1RelationRequestBody](docs/V1beta1RelationRequestBody.md) + - [V1beta1Resource](docs/V1beta1Resource.md) + - [V1beta1ResourceRequestBody](docs/V1beta1ResourceRequestBody.md) + - [V1beta1Role](docs/V1beta1Role.md) + - [V1beta1RoleRequestBody](docs/V1beta1RoleRequestBody.md) + - [V1beta1SecretCredential](docs/V1beta1SecretCredential.md) + - [V1beta1ServiceUser](docs/V1beta1ServiceUser.md) + - [V1beta1ServiceUserKey](docs/V1beta1ServiceUserKey.md) + - [V1beta1ServiceUserRequestBody](docs/V1beta1ServiceUserRequestBody.md) + - [V1beta1Subscription](docs/V1beta1Subscription.md) + - [V1beta1UpdateBillingAccountResponse](docs/V1beta1UpdateBillingAccountResponse.md) + - [V1beta1UpdateCurrentUserResponse](docs/V1beta1UpdateCurrentUserResponse.md) + - [V1beta1UpdateFeatureResponse](docs/V1beta1UpdateFeatureResponse.md) + - [V1beta1UpdateGroupResponse](docs/V1beta1UpdateGroupResponse.md) + - [V1beta1UpdateMetaSchemaResponse](docs/V1beta1UpdateMetaSchemaResponse.md) + - [V1beta1UpdateOrganizationResponse](docs/V1beta1UpdateOrganizationResponse.md) + - [V1beta1UpdateOrganizationRoleResponse](docs/V1beta1UpdateOrganizationRoleResponse.md) + - [V1beta1UpdatePermissionResponse](docs/V1beta1UpdatePermissionResponse.md) + - [V1beta1UpdatePlanResponse](docs/V1beta1UpdatePlanResponse.md) + - [V1beta1UpdatePolicyResponse](docs/V1beta1UpdatePolicyResponse.md) + - [V1beta1UpdateProjectResourceResponse](docs/V1beta1UpdateProjectResourceResponse.md) + - [V1beta1UpdateProjectResponse](docs/V1beta1UpdateProjectResponse.md) + - [V1beta1UpdateRoleResponse](docs/V1beta1UpdateRoleResponse.md) + - [V1beta1UpdateSubscriptionResponse](docs/V1beta1UpdateSubscriptionResponse.md) + - [V1beta1UpdateUserResponse](docs/V1beta1UpdateUserResponse.md) + - [V1beta1Usage](docs/V1beta1Usage.md) + - [V1beta1User](docs/V1beta1User.md) + - [V1beta1UserRequestBody](docs/V1beta1UserRequestBody.md) + - [V1beta1VerifyOrganizationDomainResponse](docs/V1beta1VerifyOrganizationDomainResponse.md) + + + ## Documentation For Authorization + Authentication schemes defined for the API: ### Basic @@ -510,23 +495,6 @@ Authentication schemes defined for the API: ## Author -hello@raystack.or - -## Notes for Large OpenAPI documents -If the OpenAPI document is large, imports in frontier_api.apis and frontier_api.models may fail with a -RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: +hello@raystack.org -Solution 1: -Use specific imports for apis and models like: -- `from frontier_api.apis.default_api import DefaultApi` -- `from frontier_api.model.pet import Pet` -Solution 1: -Before importing the package, adjust the maximum recursion limit as shown below: -``` -import sys -sys.setrecursionlimit(1500) -import frontier_api -from frontier_api.apis import * -from frontier_api.models import * -``` diff --git a/docs/AuditLogApi.md b/docs/AuditLogApi.md new file mode 100644 index 0000000..6d077ef --- /dev/null +++ b/docs/AuditLogApi.md @@ -0,0 +1,275 @@ +# frontier_api.AuditLogApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_organization_audit_logs**](AuditLogApi.md#frontier_service_create_organization_audit_logs) | **POST** /v1beta1/organization/{orgId}/auditlogs | Create audit log +[**frontier_service_get_organization_audit_log**](AuditLogApi.md#frontier_service_get_organization_audit_log) | **GET** /v1beta1/organization/{orgId}/auditlogs/{id} | Get audit log +[**frontier_service_list_organization_audit_logs**](AuditLogApi.md#frontier_service_list_organization_audit_logs) | **GET** /v1beta1/organization/{orgId}/auditlogs | List audit logs + + +# **frontier_service_create_organization_audit_logs** +> object frontier_service_create_organization_audit_logs(org_id, body) + +Create audit log + +Create new audit logs in a batch. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_organization_audit_logs_request import FrontierServiceCreateOrganizationAuditLogsRequest +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuditLogApi(api_client) + org_id = 'org_id_example' # str | + body = frontier_api.FrontierServiceCreateOrganizationAuditLogsRequest() # FrontierServiceCreateOrganizationAuditLogsRequest | + + try: + # Create audit log + api_response = api_instance.frontier_service_create_organization_audit_logs(org_id, body) + print("The response of AuditLogApi->frontier_service_create_organization_audit_logs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogApi->frontier_service_create_organization_audit_logs: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **body** | [**FrontierServiceCreateOrganizationAuditLogsRequest**](FrontierServiceCreateOrganizationAuditLogsRequest.md)| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_organization_audit_log** +> V1beta1GetOrganizationAuditLogResponse frontier_service_get_organization_audit_log(org_id, id) + +Get audit log + +Get an audit log by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuditLogApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Get audit log + api_response = api_instance.frontier_service_get_organization_audit_log(org_id, id) + print("The response of AuditLogApi->frontier_service_get_organization_audit_log:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogApi->frontier_service_get_organization_audit_log: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +[**V1beta1GetOrganizationAuditLogResponse**](V1beta1GetOrganizationAuditLogResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_audit_logs** +> V1beta1ListOrganizationAuditLogsResponse frontier_service_list_organization_audit_logs(org_id, source=source, action=action, start_time=start_time, end_time=end_time) + +List audit logs + +Returns a list of audit logs of an organization in Frontier. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuditLogApi(api_client) + org_id = 'org_id_example' # str | + source = 'source_example' # str | (optional) + action = 'action_example' # str | (optional) + start_time = '2013-10-20T19:20:30+01:00' # datetime | start_time and end_time are inclusive (optional) + end_time = '2013-10-20T19:20:30+01:00' # datetime | (optional) + + try: + # List audit logs + api_response = api_instance.frontier_service_list_organization_audit_logs(org_id, source=source, action=action, start_time=start_time, end_time=end_time) + print("The response of AuditLogApi->frontier_service_list_organization_audit_logs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogApi->frontier_service_list_organization_audit_logs: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **source** | **str**| | [optional] + **action** | **str**| | [optional] + **start_time** | **datetime**| start_time and end_time are inclusive | [optional] + **end_time** | **datetime**| | [optional] + +### Return type + +[**V1beta1ListOrganizationAuditLogsResponse**](V1beta1ListOrganizationAuditLogsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthnApi.md b/docs/AuthnApi.md new file mode 100644 index 0000000..1ecabbc --- /dev/null +++ b/docs/AuthnApi.md @@ -0,0 +1,687 @@ +# frontier_api.AuthnApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_auth_callback**](AuthnApi.md#frontier_service_auth_callback) | **GET** /v1beta1/auth/callback | Callback from a strategy +[**frontier_service_auth_callback2**](AuthnApi.md#frontier_service_auth_callback2) | **POST** /v1beta1/auth/callback | Callback from a strategy +[**frontier_service_auth_logout**](AuthnApi.md#frontier_service_auth_logout) | **GET** /v1beta1/auth/logout | Logout from a strategy +[**frontier_service_auth_logout2**](AuthnApi.md#frontier_service_auth_logout2) | **DELETE** /v1beta1/auth/logout | Logout from a strategy +[**frontier_service_auth_token**](AuthnApi.md#frontier_service_auth_token) | **POST** /v1beta1/auth/token | Generate access token by given credentials +[**frontier_service_authenticate**](AuthnApi.md#frontier_service_authenticate) | **GET** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy +[**frontier_service_authenticate2**](AuthnApi.md#frontier_service_authenticate2) | **POST** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy +[**frontier_service_list_auth_strategies**](AuthnApi.md#frontier_service_list_auth_strategies) | **GET** /v1beta1/auth | List authentication strategies + + +# **frontier_service_auth_callback** +> object frontier_service_auth_callback(strategy_name=strategy_name, state=state, code=code, state_options=state_options) + +Callback from a strategy + +Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + strategy_name = 'strategy_name_example' # str | strategy_name will not be set for oidc but can be utilized for methods like email magic links (optional) + state = 'state_example' # str | for oidc & magic links (optional) + code = 'code_example' # str | (optional) + state_options = None # object | state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key (optional) + + try: + # Callback from a strategy + api_response = api_instance.frontier_service_auth_callback(strategy_name=strategy_name, state=state, code=code, state_options=state_options) + print("The response of AuthnApi->frontier_service_auth_callback:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_auth_callback: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **strategy_name** | **str**| strategy_name will not be set for oidc but can be utilized for methods like email magic links | [optional] + **state** | **str**| for oidc & magic links | [optional] + **code** | **str**| | [optional] + **state_options** | [**object**](.md)| state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key | [optional] + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_auth_callback2** +> object frontier_service_auth_callback2(body) + +Callback from a strategy + +Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + body = frontier_api.V1beta1AuthCallbackRequest() # V1beta1AuthCallbackRequest | + + try: + # Callback from a strategy + api_response = api_instance.frontier_service_auth_callback2(body) + print("The response of AuthnApi->frontier_service_auth_callback2:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_auth_callback2: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1AuthCallbackRequest**](V1beta1AuthCallbackRequest.md)| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_auth_logout** +> object frontier_service_auth_logout() + +Logout from a strategy + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + + try: + # Logout from a strategy + api_response = api_instance.frontier_service_auth_logout() + print("The response of AuthnApi->frontier_service_auth_logout:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_auth_logout: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_auth_logout2** +> object frontier_service_auth_logout2() + +Logout from a strategy + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + + try: + # Logout from a strategy + api_response = api_instance.frontier_service_auth_logout2() + print("The response of AuthnApi->frontier_service_auth_logout2:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_auth_logout2: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_auth_token** +> V1beta1AuthTokenResponse frontier_service_auth_token(body) + +Generate access token by given credentials + +Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_auth_token_request import V1beta1AuthTokenRequest +from frontier_api.models.v1beta1_auth_token_response import V1beta1AuthTokenResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + body = frontier_api.V1beta1AuthTokenRequest() # V1beta1AuthTokenRequest | + + try: + # Generate access token by given credentials + api_response = api_instance.frontier_service_auth_token(body) + print("The response of AuthnApi->frontier_service_auth_token:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_auth_token: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1AuthTokenRequest**](V1beta1AuthTokenRequest.md)| | + +### Return type + +[**V1beta1AuthTokenResponse**](V1beta1AuthTokenResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_authenticate** +> V1beta1AuthenticateResponse frontier_service_authenticate(strategy_name, redirect_onstart=redirect_onstart, return_to=return_to, email=email, callback_url=callback_url) + +Authenticate with a strategy + +Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + strategy_name = 'strategy_name_example' # str | Name of the strategy to use for authentication.
*Example:* `google` + redirect_onstart = True # bool | by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow (optional) + return_to = 'return_to_example' # str | by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"` (optional) + email = 'email_example' # str | email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org` (optional) + callback_url = 'callback_url_example' # str | callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback` (optional) + + try: + # Authenticate with a strategy + api_response = api_instance.frontier_service_authenticate(strategy_name, redirect_onstart=redirect_onstart, return_to=return_to, email=email, callback_url=callback_url) + print("The response of AuthnApi->frontier_service_authenticate:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_authenticate: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **strategy_name** | **str**| Name of the strategy to use for authentication.<br/> *Example:* `google` | + **redirect_onstart** | **bool**| by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow | [optional] + **return_to** | **str**| by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.<br/> *Example:*`\"https://frontier.example.com\"` | [optional] + **email** | **str**| email of the user for magic links Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org` | [optional] + **callback_url** | **str**| callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback` | [optional] + +### Return type + +[**V1beta1AuthenticateResponse**](V1beta1AuthenticateResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_authenticate2** +> V1beta1AuthenticateResponse frontier_service_authenticate2(strategy_name, body) + +Authenticate with a strategy + +Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_authenticate2_request import FrontierServiceAuthenticate2Request +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + strategy_name = 'strategy_name_example' # str | Name of the strategy to use for authentication.
*Example:* `google` + body = frontier_api.FrontierServiceAuthenticate2Request() # FrontierServiceAuthenticate2Request | + + try: + # Authenticate with a strategy + api_response = api_instance.frontier_service_authenticate2(strategy_name, body) + print("The response of AuthnApi->frontier_service_authenticate2:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_authenticate2: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **strategy_name** | **str**| Name of the strategy to use for authentication.<br/> *Example:* `google` | + **body** | [**FrontierServiceAuthenticate2Request**](FrontierServiceAuthenticate2Request.md)| | + +### Return type + +[**V1beta1AuthenticateResponse**](V1beta1AuthenticateResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_auth_strategies** +> V1beta1ListAuthStrategiesResponse frontier_service_list_auth_strategies() + +List authentication strategies + +Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthnApi(api_client) + + try: + # List authentication strategies + api_response = api_instance.frontier_service_list_auth_strategies() + print("The response of AuthnApi->frontier_service_list_auth_strategies:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthnApi->frontier_service_list_auth_strategies: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListAuthStrategiesResponse**](V1beta1ListAuthStrategiesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AuthzApi.md b/docs/AuthzApi.md new file mode 100644 index 0000000..2e7b8c1 --- /dev/null +++ b/docs/AuthzApi.md @@ -0,0 +1,424 @@ +# frontier_api.AuthzApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_check_federated_resource_permission**](AuthzApi.md#admin_service_check_federated_resource_permission) | **POST** /v1beta1/admin/check | Check +[**frontier_service_batch_check_permission**](AuthzApi.md#frontier_service_batch_check_permission) | **POST** /v1beta1/batchcheck | Batch check +[**frontier_service_check_resource_permission**](AuthzApi.md#frontier_service_check_resource_permission) | **POST** /v1beta1/check | Check +[**frontier_service_get_jwks**](AuthzApi.md#frontier_service_get_jwks) | **GET** /v1beta1/auth/jwks | Get well known JWKs +[**frontier_service_get_jwks2**](AuthzApi.md#frontier_service_get_jwks2) | **GET** /.well-known/jwks.json | Get well known JWKs + + +# **admin_service_check_federated_resource_permission** +> V1beta1CheckFederatedResourcePermissionResponse admin_service_check_federated_resource_permission(body) + +Check + +Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user, group or a service account. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_check_federated_resource_permission_request import V1beta1CheckFederatedResourcePermissionRequest +from frontier_api.models.v1beta1_check_federated_resource_permission_response import V1beta1CheckFederatedResourcePermissionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthzApi(api_client) + body = frontier_api.V1beta1CheckFederatedResourcePermissionRequest() # V1beta1CheckFederatedResourcePermissionRequest | + + try: + # Check + api_response = api_instance.admin_service_check_federated_resource_permission(body) + print("The response of AuthzApi->admin_service_check_federated_resource_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthzApi->admin_service_check_federated_resource_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CheckFederatedResourcePermissionRequest**](V1beta1CheckFederatedResourcePermissionRequest.md)| | + +### Return type + +[**V1beta1CheckFederatedResourcePermissionResponse**](V1beta1CheckFederatedResourcePermissionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_batch_check_permission** +> V1beta1BatchCheckPermissionResponse frontier_service_batch_check_permission(body) + +Batch check + +Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts). + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest +from frontier_api.models.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthzApi(api_client) + body = frontier_api.V1beta1BatchCheckPermissionRequest() # V1beta1BatchCheckPermissionRequest | + + try: + # Batch check + api_response = api_instance.frontier_service_batch_check_permission(body) + print("The response of AuthzApi->frontier_service_batch_check_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthzApi->frontier_service_batch_check_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1BatchCheckPermissionRequest**](V1beta1BatchCheckPermissionRequest.md)| | + +### Return type + +[**V1beta1BatchCheckPermissionResponse**](V1beta1BatchCheckPermissionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_check_resource_permission** +> V1beta1CheckResourcePermissionResponse frontier_service_check_resource_permission(body) + +Check + +Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account. Frontier will extract principal from the current logged in session cookie (if any), or the client id and secret (in case of service users) or the access token. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest +from frontier_api.models.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthzApi(api_client) + body = frontier_api.V1beta1CheckResourcePermissionRequest() # V1beta1CheckResourcePermissionRequest | + + try: + # Check + api_response = api_instance.frontier_service_check_resource_permission(body) + print("The response of AuthzApi->frontier_service_check_resource_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthzApi->frontier_service_check_resource_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CheckResourcePermissionRequest**](V1beta1CheckResourcePermissionRequest.md)| | + +### Return type + +[**V1beta1CheckResourcePermissionResponse**](V1beta1CheckResourcePermissionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_jwks** +> V1beta1GetJWKsResponse frontier_service_get_jwks() + +Get well known JWKs + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthzApi(api_client) + + try: + # Get well known JWKs + api_response = api_instance.frontier_service_get_jwks() + print("The response of AuthzApi->frontier_service_get_jwks:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthzApi->frontier_service_get_jwks: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1GetJWKsResponse**](V1beta1GetJWKsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_jwks2** +> V1beta1GetJWKsResponse frontier_service_get_jwks2() + +Get well known JWKs + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.AuthzApi(api_client) + + try: + # Get well known JWKs + api_response = api_instance.frontier_service_get_jwks2() + print("The response of AuthzApi->frontier_service_get_jwks2:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuthzApi->frontier_service_get_jwks2: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1GetJWKsResponse**](V1beta1GetJWKsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BillingAccountAddress.md b/docs/BillingAccountAddress.md new file mode 100644 index 0000000..5791ab3 --- /dev/null +++ b/docs/BillingAccountAddress.md @@ -0,0 +1,33 @@ +# BillingAccountAddress + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**line1** | **str** | | [optional] +**line2** | **str** | | [optional] +**city** | **str** | | [optional] +**state** | **str** | | [optional] +**postal_code** | **str** | | [optional] +**country** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.billing_account_address import BillingAccountAddress + +# TODO update the JSON string below +json = "{}" +# create an instance of BillingAccountAddress from a JSON string +billing_account_address_instance = BillingAccountAddress.from_json(json) +# print the JSON string representation of the object +print BillingAccountAddress.to_json() + +# convert the object into a dict +billing_account_address_dict = billing_account_address_instance.to_dict() +# create an instance of BillingAccountAddress from a dict +billing_account_address_form_dict = billing_account_address.from_dict(billing_account_address_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BillingAccountBalance.md b/docs/BillingAccountBalance.md new file mode 100644 index 0000000..dceb8ef --- /dev/null +++ b/docs/BillingAccountBalance.md @@ -0,0 +1,30 @@ +# BillingAccountBalance + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **str** | | [optional] +**currency** | **str** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.billing_account_balance import BillingAccountBalance + +# TODO update the JSON string below +json = "{}" +# create an instance of BillingAccountBalance from a JSON string +billing_account_balance_instance = BillingAccountBalance.from_json(json) +# print the JSON string representation of the object +print BillingAccountBalance.to_json() + +# convert the object into a dict +billing_account_balance_dict = billing_account_balance_instance.to_dict() +# create an instance of BillingAccountBalance from a dict +billing_account_balance_form_dict = billing_account_balance.from_dict(billing_account_balance_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BillingApi.md b/docs/BillingApi.md new file mode 100644 index 0000000..81637f5 --- /dev/null +++ b/docs/BillingApi.md @@ -0,0 +1,531 @@ +# frontier_api.BillingApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_billing_account**](BillingApi.md#frontier_service_create_billing_account) | **POST** /v1beta1/organizations/{orgId}/billing | Create billing account +[**frontier_service_delete_billing_account**](BillingApi.md#frontier_service_delete_billing_account) | **DELETE** /v1beta1/organizations/{orgId}/billing/{id} | Delete billing account +[**frontier_service_get_billing_account**](BillingApi.md#frontier_service_get_billing_account) | **GET** /v1beta1/organizations/{orgId}/billing/{id} | Get billing account +[**frontier_service_get_billing_balance**](BillingApi.md#frontier_service_get_billing_balance) | **GET** /v1beta1/organizations/{orgId}/billing/{id}/balance | Get billing balance +[**frontier_service_list_billing_accounts**](BillingApi.md#frontier_service_list_billing_accounts) | **GET** /v1beta1/organizations/{orgId}/billing | List billing accounts +[**frontier_service_update_billing_account**](BillingApi.md#frontier_service_update_billing_account) | **PUT** /v1beta1/organizations/{orgId}/billing/{id} | Update billing account + + +# **frontier_service_create_billing_account** +> V1beta1CreateBillingAccountResponse frontier_service_create_billing_account(org_id, body) + +Create billing account + +Create a new billing account for an organization. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest +from frontier_api.models.v1beta1_create_billing_account_response import V1beta1CreateBillingAccountResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.BillingApi(api_client) + org_id = 'org_id_example' # str | ID of the organization to create the billing account for + body = frontier_api.FrontierServiceCreateBillingAccountRequest() # FrontierServiceCreateBillingAccountRequest | + + try: + # Create billing account + api_response = api_instance.frontier_service_create_billing_account(org_id, body) + print("The response of BillingApi->frontier_service_create_billing_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BillingApi->frontier_service_create_billing_account: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| ID of the organization to create the billing account for | + **body** | [**FrontierServiceCreateBillingAccountRequest**](FrontierServiceCreateBillingAccountRequest.md)| | + +### Return type + +[**V1beta1CreateBillingAccountResponse**](V1beta1CreateBillingAccountResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_billing_account** +> object frontier_service_delete_billing_account(org_id, id) + +Delete billing account + +Delete a billing account by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.BillingApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | ID of the billing account to delete + + try: + # Delete billing account + api_response = api_instance.frontier_service_delete_billing_account(org_id, id) + print("The response of BillingApi->frontier_service_delete_billing_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BillingApi->frontier_service_delete_billing_account: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| ID of the billing account to delete | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_billing_account** +> V1beta1GetBillingAccountResponse frontier_service_get_billing_account(org_id, id) + +Get billing account + +Get a billing account by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_billing_account_response import V1beta1GetBillingAccountResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.BillingApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | ID of the billing account to get + + try: + # Get billing account + api_response = api_instance.frontier_service_get_billing_account(org_id, id) + print("The response of BillingApi->frontier_service_get_billing_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BillingApi->frontier_service_get_billing_account: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| ID of the billing account to get | + +### Return type + +[**V1beta1GetBillingAccountResponse**](V1beta1GetBillingAccountResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_billing_balance** +> V1beta1GetBillingBalanceResponse frontier_service_get_billing_balance(org_id, id) + +Get billing balance + +Get the balance of a billing account by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_billing_balance_response import V1beta1GetBillingBalanceResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.BillingApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | ID of the billing account to get the balance for + + try: + # Get billing balance + api_response = api_instance.frontier_service_get_billing_balance(org_id, id) + print("The response of BillingApi->frontier_service_get_billing_balance:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BillingApi->frontier_service_get_billing_balance: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| ID of the billing account to get the balance for | + +### Return type + +[**V1beta1GetBillingBalanceResponse**](V1beta1GetBillingBalanceResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_billing_accounts** +> V1beta1ListBillingAccountsResponse frontier_service_list_billing_accounts(org_id) + +List billing accounts + +List billing accounts of an organization. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_billing_accounts_response import V1beta1ListBillingAccountsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.BillingApi(api_client) + org_id = 'org_id_example' # str | ID of the organization to list billing accounts for + + try: + # List billing accounts + api_response = api_instance.frontier_service_list_billing_accounts(org_id) + print("The response of BillingApi->frontier_service_list_billing_accounts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BillingApi->frontier_service_list_billing_accounts: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| ID of the organization to list billing accounts for | + +### Return type + +[**V1beta1ListBillingAccountsResponse**](V1beta1ListBillingAccountsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_billing_account** +> V1beta1UpdateBillingAccountResponse frontier_service_update_billing_account(org_id, id, body) + +Update billing account + +Update a billing account by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest +from frontier_api.models.v1beta1_update_billing_account_response import V1beta1UpdateBillingAccountResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.BillingApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | ID of the billing account to update + body = frontier_api.FrontierServiceCreateBillingAccountRequest() # FrontierServiceCreateBillingAccountRequest | + + try: + # Update billing account + api_response = api_instance.frontier_service_update_billing_account(org_id, id, body) + print("The response of BillingApi->frontier_service_update_billing_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling BillingApi->frontier_service_update_billing_account: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| ID of the billing account to update | + **body** | [**FrontierServiceCreateBillingAccountRequest**](FrontierServiceCreateBillingAccountRequest.md)| | + +### Return type + +[**V1beta1UpdateBillingAccountResponse**](V1beta1UpdateBillingAccountResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CheckoutApi.md b/docs/CheckoutApi.md new file mode 100644 index 0000000..490a613 --- /dev/null +++ b/docs/CheckoutApi.md @@ -0,0 +1,185 @@ +# frontier_api.CheckoutApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_checkout**](CheckoutApi.md#frontier_service_create_checkout) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | Checkout a feature or subscription +[**frontier_service_list_checkouts**](CheckoutApi.md#frontier_service_list_checkouts) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/checkouts | List checkouts + + +# **frontier_service_create_checkout** +> V1beta1CreateCheckoutResponse frontier_service_create_checkout(org_id, billing_id, body) + +Checkout a feature or subscription + +Checkout a feature to buy it one time or start a subscription plan on a billing account. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_checkout_request import FrontierServiceCreateCheckoutRequest +from frontier_api.models.v1beta1_create_checkout_response import V1beta1CreateCheckoutResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.CheckoutApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + body = frontier_api.FrontierServiceCreateCheckoutRequest() # FrontierServiceCreateCheckoutRequest | + + try: + # Checkout a feature or subscription + api_response = api_instance.frontier_service_create_checkout(org_id, billing_id, body) + print("The response of CheckoutApi->frontier_service_create_checkout:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CheckoutApi->frontier_service_create_checkout: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to update the subscription for | + **body** | [**FrontierServiceCreateCheckoutRequest**](FrontierServiceCreateCheckoutRequest.md)| | + +### Return type + +[**V1beta1CreateCheckoutResponse**](V1beta1CreateCheckoutResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_checkouts** +> V1beta1ListCheckoutsResponse frontier_service_list_checkouts(org_id, billing_id) + +List checkouts + +List all checkouts of a billing account. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_checkouts_response import V1beta1ListCheckoutsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.CheckoutApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + + try: + # List checkouts + api_response = api_instance.frontier_service_list_checkouts(org_id, billing_id) + print("The response of CheckoutApi->frontier_service_list_checkouts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CheckoutApi->frontier_service_list_checkouts: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to update the subscription for | + +### Return type + +[**V1beta1ListCheckoutsResponse**](V1beta1ListCheckoutsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EntitlementApi.md b/docs/EntitlementApi.md new file mode 100644 index 0000000..ce85836 --- /dev/null +++ b/docs/EntitlementApi.md @@ -0,0 +1,98 @@ +# frontier_api.EntitlementApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_check_feature_entitlement**](EntitlementApi.md#frontier_service_check_feature_entitlement) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/check | Check entitlement + + +# **frontier_service_check_feature_entitlement** +> V1beta1CheckFeatureEntitlementResponse frontier_service_check_feature_entitlement(org_id, billing_id, body) + +Check entitlement + +Check if a billing account is entitled to a feature. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_check_feature_entitlement_request import FrontierServiceCheckFeatureEntitlementRequest +from frontier_api.models.v1beta1_check_feature_entitlement_response import V1beta1CheckFeatureEntitlementResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.EntitlementApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + body = frontier_api.FrontierServiceCheckFeatureEntitlementRequest() # FrontierServiceCheckFeatureEntitlementRequest | + + try: + # Check entitlement + api_response = api_instance.frontier_service_check_feature_entitlement(org_id, billing_id, body) + print("The response of EntitlementApi->frontier_service_check_feature_entitlement:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EntitlementApi->frontier_service_check_feature_entitlement: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to update the subscription for | + **body** | [**FrontierServiceCheckFeatureEntitlementRequest**](FrontierServiceCheckFeatureEntitlementRequest.md)| | + +### Return type + +[**V1beta1CheckFeatureEntitlementResponse**](V1beta1CheckFeatureEntitlementResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FeatureApi.md b/docs/FeatureApi.md new file mode 100644 index 0000000..5e92409 --- /dev/null +++ b/docs/FeatureApi.md @@ -0,0 +1,348 @@ +# frontier_api.FeatureApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_feature**](FeatureApi.md#frontier_service_create_feature) | **POST** /v1beta1/billing/features | Create feature +[**frontier_service_get_feature**](FeatureApi.md#frontier_service_get_feature) | **GET** /v1beta1/billing/features/{id} | Get feature +[**frontier_service_list_features**](FeatureApi.md#frontier_service_list_features) | **GET** /v1beta1/billing/features | List features +[**frontier_service_update_feature**](FeatureApi.md#frontier_service_update_feature) | **PUT** /v1beta1/billing/features/{id} | Update feature + + +# **frontier_service_create_feature** +> V1beta1CreateFeatureResponse frontier_service_create_feature(body) + +Create feature + +Create a new feature for platform. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_feature_request import V1beta1CreateFeatureRequest +from frontier_api.models.v1beta1_create_feature_response import V1beta1CreateFeatureResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.FeatureApi(api_client) + body = frontier_api.V1beta1CreateFeatureRequest() # V1beta1CreateFeatureRequest | + + try: + # Create feature + api_response = api_instance.frontier_service_create_feature(body) + print("The response of FeatureApi->frontier_service_create_feature:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FeatureApi->frontier_service_create_feature: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CreateFeatureRequest**](V1beta1CreateFeatureRequest.md)| | + +### Return type + +[**V1beta1CreateFeatureResponse**](V1beta1CreateFeatureResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_feature** +> V1beta1GetFeatureResponse frontier_service_get_feature(id) + +Get feature + +Get a feature by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_feature_response import V1beta1GetFeatureResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.FeatureApi(api_client) + id = 'id_example' # str | ID of the feature to get + + try: + # Get feature + api_response = api_instance.frontier_service_get_feature(id) + print("The response of FeatureApi->frontier_service_get_feature:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FeatureApi->frontier_service_get_feature: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the feature to get | + +### Return type + +[**V1beta1GetFeatureResponse**](V1beta1GetFeatureResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_features** +> V1beta1ListFeaturesResponse frontier_service_list_features() + +List features + +List all features of a platform. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_features_response import V1beta1ListFeaturesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.FeatureApi(api_client) + + try: + # List features + api_response = api_instance.frontier_service_list_features() + print("The response of FeatureApi->frontier_service_list_features:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FeatureApi->frontier_service_list_features: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListFeaturesResponse**](V1beta1ListFeaturesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_feature** +> V1beta1UpdateFeatureResponse frontier_service_update_feature(id, body) + +Update feature + +Update a feature by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_update_feature_request import FrontierServiceUpdateFeatureRequest +from frontier_api.models.v1beta1_update_feature_response import V1beta1UpdateFeatureResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.FeatureApi(api_client) + id = 'id_example' # str | ID of the feature to update + body = frontier_api.FrontierServiceUpdateFeatureRequest() # FrontierServiceUpdateFeatureRequest | + + try: + # Update feature + api_response = api_instance.frontier_service_update_feature(id, body) + print("The response of FeatureApi->frontier_service_update_feature:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FeatureApi->frontier_service_update_feature: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the feature to update | + **body** | [**FrontierServiceUpdateFeatureRequest**](FrontierServiceUpdateFeatureRequest.md)| | + +### Return type + +[**V1beta1UpdateFeatureResponse**](V1beta1UpdateFeatureResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FrontierServiceAddGroupUsersRequest.md b/docs/FrontierServiceAddGroupUsersRequest.md new file mode 100644 index 0000000..29c5e1f --- /dev/null +++ b/docs/FrontierServiceAddGroupUsersRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceAddGroupUsersRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_ids** | **List[str]** | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_add_group_users_request import FrontierServiceAddGroupUsersRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceAddGroupUsersRequest from a JSON string +frontier_service_add_group_users_request_instance = FrontierServiceAddGroupUsersRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceAddGroupUsersRequest.to_json() + +# convert the object into a dict +frontier_service_add_group_users_request_dict = frontier_service_add_group_users_request_instance.to_dict() +# create an instance of FrontierServiceAddGroupUsersRequest from a dict +frontier_service_add_group_users_request_form_dict = frontier_service_add_group_users_request.from_dict(frontier_service_add_group_users_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceAddOrganizationUsersRequest.md b/docs/FrontierServiceAddOrganizationUsersRequest.md new file mode 100644 index 0000000..83472c9 --- /dev/null +++ b/docs/FrontierServiceAddOrganizationUsersRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceAddOrganizationUsersRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_ids** | **List[str]** | List of user IDs to be added to the organization. | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_add_organization_users_request import FrontierServiceAddOrganizationUsersRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceAddOrganizationUsersRequest from a JSON string +frontier_service_add_organization_users_request_instance = FrontierServiceAddOrganizationUsersRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceAddOrganizationUsersRequest.to_json() + +# convert the object into a dict +frontier_service_add_organization_users_request_dict = frontier_service_add_organization_users_request_instance.to_dict() +# create an instance of FrontierServiceAddOrganizationUsersRequest from a dict +frontier_service_add_organization_users_request_form_dict = frontier_service_add_organization_users_request.from_dict(frontier_service_add_organization_users_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceAuthenticate2Request.md b/docs/FrontierServiceAuthenticate2Request.md new file mode 100644 index 0000000..8e93523 --- /dev/null +++ b/docs/FrontierServiceAuthenticate2Request.md @@ -0,0 +1,31 @@ +# FrontierServiceAuthenticate2Request + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**redirect_onstart** | **bool** | If set to true, location header will be set for redirect to start auth flow | [optional] +**return_to** | **str** | URL to redirect after successful authentication.<br/> *Example:*`\"https://frontier.example.com\"` | [optional] +**email** | **str** | Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org` | [optional] +**callback_url** | **str** | Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback` | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_authenticate2_request import FrontierServiceAuthenticate2Request + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceAuthenticate2Request from a JSON string +frontier_service_authenticate2_request_instance = FrontierServiceAuthenticate2Request.from_json(json) +# print the JSON string representation of the object +print FrontierServiceAuthenticate2Request.to_json() + +# convert the object into a dict +frontier_service_authenticate2_request_dict = frontier_service_authenticate2_request_instance.to_dict() +# create an instance of FrontierServiceAuthenticate2Request from a dict +frontier_service_authenticate2_request_form_dict = frontier_service_authenticate2_request.from_dict(frontier_service_authenticate2_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCheckFeatureEntitlementRequest.md b/docs/FrontierServiceCheckFeatureEntitlementRequest.md new file mode 100644 index 0000000..6c9678e --- /dev/null +++ b/docs/FrontierServiceCheckFeatureEntitlementRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCheckFeatureEntitlementRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_check_feature_entitlement_request import FrontierServiceCheckFeatureEntitlementRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCheckFeatureEntitlementRequest from a JSON string +frontier_service_check_feature_entitlement_request_instance = FrontierServiceCheckFeatureEntitlementRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCheckFeatureEntitlementRequest.to_json() + +# convert the object into a dict +frontier_service_check_feature_entitlement_request_dict = frontier_service_check_feature_entitlement_request_instance.to_dict() +# create an instance of FrontierServiceCheckFeatureEntitlementRequest from a dict +frontier_service_check_feature_entitlement_request_form_dict = frontier_service_check_feature_entitlement_request.from_dict(frontier_service_check_feature_entitlement_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateBillingAccountRequest.md b/docs/FrontierServiceCreateBillingAccountRequest.md new file mode 100644 index 0000000..e5ef7e5 --- /dev/null +++ b/docs/FrontierServiceCreateBillingAccountRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCreateBillingAccountRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1BillingAccountRequestBody**](V1beta1BillingAccountRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateBillingAccountRequest from a JSON string +frontier_service_create_billing_account_request_instance = FrontierServiceCreateBillingAccountRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateBillingAccountRequest.to_json() + +# convert the object into a dict +frontier_service_create_billing_account_request_dict = frontier_service_create_billing_account_request_instance.to_dict() +# create an instance of FrontierServiceCreateBillingAccountRequest from a dict +frontier_service_create_billing_account_request_form_dict = frontier_service_create_billing_account_request.from_dict(frontier_service_create_billing_account_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateBillingUsageRequest.md b/docs/FrontierServiceCreateBillingUsageRequest.md new file mode 100644 index 0000000..39f3346 --- /dev/null +++ b/docs/FrontierServiceCreateBillingUsageRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCreateBillingUsageRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usages** | [**List[V1beta1Usage]**](V1beta1Usage.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_billing_usage_request import FrontierServiceCreateBillingUsageRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateBillingUsageRequest from a JSON string +frontier_service_create_billing_usage_request_instance = FrontierServiceCreateBillingUsageRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateBillingUsageRequest.to_json() + +# convert the object into a dict +frontier_service_create_billing_usage_request_dict = frontier_service_create_billing_usage_request_instance.to_dict() +# create an instance of FrontierServiceCreateBillingUsageRequest from a dict +frontier_service_create_billing_usage_request_form_dict = frontier_service_create_billing_usage_request.from_dict(frontier_service_create_billing_usage_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateCheckoutRequest.md b/docs/FrontierServiceCreateCheckoutRequest.md new file mode 100644 index 0000000..09f2185 --- /dev/null +++ b/docs/FrontierServiceCreateCheckoutRequest.md @@ -0,0 +1,31 @@ +# FrontierServiceCreateCheckoutRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success_url** | **str** | | [optional] +**cancel_url** | **str** | | [optional] +**subscription_body** | [**V1beta1CheckoutSubscriptionBody**](V1beta1CheckoutSubscriptionBody.md) | | [optional] +**feature_body** | [**V1beta1CheckoutFeatureBody**](V1beta1CheckoutFeatureBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_checkout_request import FrontierServiceCreateCheckoutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateCheckoutRequest from a JSON string +frontier_service_create_checkout_request_instance = FrontierServiceCreateCheckoutRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateCheckoutRequest.to_json() + +# convert the object into a dict +frontier_service_create_checkout_request_dict = frontier_service_create_checkout_request_instance.to_dict() +# create an instance of FrontierServiceCreateCheckoutRequest from a dict +frontier_service_create_checkout_request_form_dict = frontier_service_create_checkout_request.from_dict(frontier_service_create_checkout_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateGroupPreferencesRequest.md b/docs/FrontierServiceCreateGroupPreferencesRequest.md new file mode 100644 index 0000000..41317c4 --- /dev/null +++ b/docs/FrontierServiceCreateGroupPreferencesRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCreateGroupPreferencesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bodies** | [**List[V1beta1PreferenceRequestBody]**](V1beta1PreferenceRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateGroupPreferencesRequest from a JSON string +frontier_service_create_group_preferences_request_instance = FrontierServiceCreateGroupPreferencesRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateGroupPreferencesRequest.to_json() + +# convert the object into a dict +frontier_service_create_group_preferences_request_dict = frontier_service_create_group_preferences_request_instance.to_dict() +# create an instance of FrontierServiceCreateGroupPreferencesRequest from a dict +frontier_service_create_group_preferences_request_form_dict = frontier_service_create_group_preferences_request.from_dict(frontier_service_create_group_preferences_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateOrganizationAuditLogsRequest.md b/docs/FrontierServiceCreateOrganizationAuditLogsRequest.md new file mode 100644 index 0000000..998f2b1 --- /dev/null +++ b/docs/FrontierServiceCreateOrganizationAuditLogsRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCreateOrganizationAuditLogsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [**List[V1beta1AuditLog]**](V1beta1AuditLog.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_organization_audit_logs_request import FrontierServiceCreateOrganizationAuditLogsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateOrganizationAuditLogsRequest from a JSON string +frontier_service_create_organization_audit_logs_request_instance = FrontierServiceCreateOrganizationAuditLogsRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateOrganizationAuditLogsRequest.to_json() + +# convert the object into a dict +frontier_service_create_organization_audit_logs_request_dict = frontier_service_create_organization_audit_logs_request_instance.to_dict() +# create an instance of FrontierServiceCreateOrganizationAuditLogsRequest from a dict +frontier_service_create_organization_audit_logs_request_form_dict = frontier_service_create_organization_audit_logs_request.from_dict(frontier_service_create_organization_audit_logs_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateOrganizationDomainRequest.md b/docs/FrontierServiceCreateOrganizationDomainRequest.md new file mode 100644 index 0000000..daeac6b --- /dev/null +++ b/docs/FrontierServiceCreateOrganizationDomainRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCreateOrganizationDomainRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | domain name to be added to the trusted domain list | + +## Example + +```python +from frontier_api.models.frontier_service_create_organization_domain_request import FrontierServiceCreateOrganizationDomainRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateOrganizationDomainRequest from a JSON string +frontier_service_create_organization_domain_request_instance = FrontierServiceCreateOrganizationDomainRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateOrganizationDomainRequest.to_json() + +# convert the object into a dict +frontier_service_create_organization_domain_request_dict = frontier_service_create_organization_domain_request_instance.to_dict() +# create an instance of FrontierServiceCreateOrganizationDomainRequest from a dict +frontier_service_create_organization_domain_request_form_dict = frontier_service_create_organization_domain_request.from_dict(frontier_service_create_organization_domain_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateOrganizationInvitationRequest.md b/docs/FrontierServiceCreateOrganizationInvitationRequest.md new file mode 100644 index 0000000..4335029 --- /dev/null +++ b/docs/FrontierServiceCreateOrganizationInvitationRequest.md @@ -0,0 +1,30 @@ +# FrontierServiceCreateOrganizationInvitationRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_ids** | **List[str]** | user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified | +**group_ids** | **List[str]** | list of group ids to which user needs to be added as a member. | [optional] +**role_ids** | **List[str]** | list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_organization_invitation_request import FrontierServiceCreateOrganizationInvitationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateOrganizationInvitationRequest from a JSON string +frontier_service_create_organization_invitation_request_instance = FrontierServiceCreateOrganizationInvitationRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateOrganizationInvitationRequest.to_json() + +# convert the object into a dict +frontier_service_create_organization_invitation_request_dict = frontier_service_create_organization_invitation_request_instance.to_dict() +# create an instance of FrontierServiceCreateOrganizationInvitationRequest from a dict +frontier_service_create_organization_invitation_request_form_dict = frontier_service_create_organization_invitation_request.from_dict(frontier_service_create_organization_invitation_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceCreateServiceUserKeyRequest.md b/docs/FrontierServiceCreateServiceUserKeyRequest.md new file mode 100644 index 0000000..8a71826 --- /dev/null +++ b/docs/FrontierServiceCreateServiceUserKeyRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceCreateServiceUserKeyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceCreateServiceUserKeyRequest from a JSON string +frontier_service_create_service_user_key_request_instance = FrontierServiceCreateServiceUserKeyRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceCreateServiceUserKeyRequest.to_json() + +# convert the object into a dict +frontier_service_create_service_user_key_request_dict = frontier_service_create_service_user_key_request_instance.to_dict() +# create an instance of FrontierServiceCreateServiceUserKeyRequest from a dict +frontier_service_create_service_user_key_request_form_dict = frontier_service_create_service_user_key_request.from_dict(frontier_service_create_service_user_key_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceUpdateFeatureRequest.md b/docs/FrontierServiceUpdateFeatureRequest.md new file mode 100644 index 0000000..b8b0bc8 --- /dev/null +++ b/docs/FrontierServiceUpdateFeatureRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceUpdateFeatureRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1FeatureRequestBody**](V1beta1FeatureRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_update_feature_request import FrontierServiceUpdateFeatureRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceUpdateFeatureRequest from a JSON string +frontier_service_update_feature_request_instance = FrontierServiceUpdateFeatureRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceUpdateFeatureRequest.to_json() + +# convert the object into a dict +frontier_service_update_feature_request_dict = frontier_service_update_feature_request_instance.to_dict() +# create an instance of FrontierServiceUpdateFeatureRequest from a dict +frontier_service_update_feature_request_form_dict = frontier_service_update_feature_request.from_dict(frontier_service_update_feature_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceUpdatePlanRequest.md b/docs/FrontierServiceUpdatePlanRequest.md new file mode 100644 index 0000000..7b92e88 --- /dev/null +++ b/docs/FrontierServiceUpdatePlanRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceUpdatePlanRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1PlanRequestBody**](V1beta1PlanRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_update_plan_request import FrontierServiceUpdatePlanRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceUpdatePlanRequest from a JSON string +frontier_service_update_plan_request_instance = FrontierServiceUpdatePlanRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceUpdatePlanRequest.to_json() + +# convert the object into a dict +frontier_service_update_plan_request_dict = frontier_service_update_plan_request_instance.to_dict() +# create an instance of FrontierServiceUpdatePlanRequest from a dict +frontier_service_update_plan_request_form_dict = frontier_service_update_plan_request.from_dict(frontier_service_update_plan_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontierServiceUpdateSubscriptionRequest.md b/docs/FrontierServiceUpdateSubscriptionRequest.md new file mode 100644 index 0000000..5eab58a --- /dev/null +++ b/docs/FrontierServiceUpdateSubscriptionRequest.md @@ -0,0 +1,28 @@ +# FrontierServiceUpdateSubscriptionRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.frontier_service_update_subscription_request import FrontierServiceUpdateSubscriptionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontierServiceUpdateSubscriptionRequest from a JSON string +frontier_service_update_subscription_request_instance = FrontierServiceUpdateSubscriptionRequest.from_json(json) +# print the JSON string representation of the object +print FrontierServiceUpdateSubscriptionRequest.to_json() + +# convert the object into a dict +frontier_service_update_subscription_request_dict = frontier_service_update_subscription_request_instance.to_dict() +# create an instance of FrontierServiceUpdateSubscriptionRequest from a dict +frontier_service_update_subscription_request_form_dict = frontier_service_update_subscription_request.from_dict(frontier_service_update_subscription_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupApi.md b/docs/GroupApi.md new file mode 100644 index 0000000..2b5f5da --- /dev/null +++ b/docs/GroupApi.md @@ -0,0 +1,977 @@ +# frontier_api.GroupApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_list_groups**](GroupApi.md#admin_service_list_groups) | **GET** /v1beta1/admin/groups | List all groups +[**frontier_service_add_group_users**](GroupApi.md#frontier_service_add_group_users) | **POST** /v1beta1/organizations/{orgId}/groups/{id}/users | Add group user +[**frontier_service_create_group**](GroupApi.md#frontier_service_create_group) | **POST** /v1beta1/organizations/{orgId}/groups | Create group +[**frontier_service_delete_group**](GroupApi.md#frontier_service_delete_group) | **DELETE** /v1beta1/organizations/{orgId}/groups/{id} | Delete group +[**frontier_service_disable_group**](GroupApi.md#frontier_service_disable_group) | **POST** /v1beta1/organizations/{orgId}/groups/{id}/disable | Disable group +[**frontier_service_enable_group**](GroupApi.md#frontier_service_enable_group) | **POST** /v1beta1/organizations/{orgId}/groups/{id}/enable | Enable group +[**frontier_service_get_group**](GroupApi.md#frontier_service_get_group) | **GET** /v1beta1/organizations/{orgId}/groups/{id} | Get group +[**frontier_service_list_group_users**](GroupApi.md#frontier_service_list_group_users) | **GET** /v1beta1/organizations/{orgId}/groups/{id}/users | List group users +[**frontier_service_list_organization_groups**](GroupApi.md#frontier_service_list_organization_groups) | **GET** /v1beta1/organizations/{orgId}/groups | List organization groups +[**frontier_service_remove_group_user**](GroupApi.md#frontier_service_remove_group_user) | **DELETE** /v1beta1/organizations/{orgId}/groups/{id}/users/{userId} | Remove group user +[**frontier_service_update_group**](GroupApi.md#frontier_service_update_group) | **PUT** /v1beta1/organizations/{orgId}/groups/{id} | Update group + + +# **admin_service_list_groups** +> V1beta1ListGroupsResponse admin_service_list_groups(org_id=org_id, state=state) + +List all groups + +Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_groups_response import V1beta1ListGroupsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | The organization id to filter by. (optional) + state = 'state_example' # str | The state to filter by. It can be enabled or disabled. (optional) + + try: + # List all groups + api_response = api_instance.admin_service_list_groups(org_id=org_id, state=state) + print("The response of GroupApi->admin_service_list_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->admin_service_list_groups: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization id to filter by. | [optional] + **state** | **str**| The state to filter by. It can be enabled or disabled. | [optional] + +### Return type + +[**V1beta1ListGroupsResponse**](V1beta1ListGroupsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_add_group_users** +> object frontier_service_add_group_users(org_id, id, body) + +Add group user + +Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_add_group_users_request import FrontierServiceAddGroupUsersRequest +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + body = frontier_api.FrontierServiceAddGroupUsersRequest() # FrontierServiceAddGroupUsersRequest | + + try: + # Add group user + api_response = api_instance.frontier_service_add_group_users(org_id, id, body) + print("The response of GroupApi->frontier_service_add_group_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_add_group_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **body** | [**FrontierServiceAddGroupUsersRequest**](FrontierServiceAddGroupUsersRequest.md)| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_group** +> V1beta1CreateGroupResponse frontier_service_create_group(org_id, body) + +Create group + +Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_group_response import V1beta1CreateGroupResponse +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | The organization ID to which the group belongs to. + body = frontier_api.V1beta1GroupRequestBody() # V1beta1GroupRequestBody | + + try: + # Create group + api_response = api_instance.frontier_service_create_group(org_id, body) + print("The response of GroupApi->frontier_service_create_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_create_group: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization ID to which the group belongs to. | + **body** | [**V1beta1GroupRequestBody**](V1beta1GroupRequestBody.md)| | + +### Return type + +[**V1beta1CreateGroupResponse**](V1beta1CreateGroupResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_group** +> object frontier_service_delete_group(org_id, id) + +Delete group + +Delete an organization group permanently and all of its relations + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Delete group + api_response = api_instance.frontier_service_delete_group(org_id, id) + print("The response of GroupApi->frontier_service_delete_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_delete_group: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_disable_group** +> object frontier_service_disable_group(org_id, id, body) + +Disable group + +Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + body = None # object | + + try: + # Disable group + api_response = api_instance.frontier_service_disable_group(org_id, id, body) + print("The response of GroupApi->frontier_service_disable_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_disable_group: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_enable_group** +> object frontier_service_enable_group(org_id, id, body) + +Enable group + +Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + body = None # object | + + try: + # Enable group + api_response = api_instance.frontier_service_enable_group(org_id, id, body) + print("The response of GroupApi->frontier_service_enable_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_enable_group: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_group** +> V1beta1GetGroupResponse frontier_service_get_group(org_id, id, with_members=with_members) + +Get group + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_group_response import V1beta1GetGroupResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + with_members = True # bool | (optional) + + try: + # Get group + api_response = api_instance.frontier_service_get_group(org_id, id, with_members=with_members) + print("The response of GroupApi->frontier_service_get_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_get_group: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **with_members** | **bool**| | [optional] + +### Return type + +[**V1beta1GetGroupResponse**](V1beta1GetGroupResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_group_users** +> V1beta1ListGroupUsersResponse frontier_service_list_group_users(org_id, id, with_roles=with_roles) + +List group users + +Returns a list of users that belong to a group. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + with_roles = True # bool | (optional) + + try: + # List group users + api_response = api_instance.frontier_service_list_group_users(org_id, id, with_roles=with_roles) + print("The response of GroupApi->frontier_service_list_group_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_list_group_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **with_roles** | **bool**| | [optional] + +### Return type + +[**V1beta1ListGroupUsersResponse**](V1beta1ListGroupUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_groups** +> V1beta1ListOrganizationGroupsResponse frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members) + +List organization groups + +Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + state = 'state_example' # str | The state of the group to filter by. It can be enabled or disabled. (optional) + group_ids = ['group_ids_example'] # List[str] | (optional) + with_members = True # bool | (optional) + + try: + # List organization groups + api_response = api_instance.frontier_service_list_organization_groups(org_id, state=state, group_ids=group_ids, with_members=with_members) + print("The response of GroupApi->frontier_service_list_organization_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_list_organization_groups: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **state** | **str**| The state of the group to filter by. It can be enabled or disabled. | [optional] + **group_ids** | [**List[str]**](str.md)| | [optional] + **with_members** | **bool**| | [optional] + +### Return type + +[**V1beta1ListOrganizationGroupsResponse**](V1beta1ListOrganizationGroupsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_remove_group_user** +> object frontier_service_remove_group_user(org_id, id, user_id) + +Remove group user + +Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + user_id = 'user_id_example' # str | + + try: + # Remove group user + api_response = api_instance.frontier_service_remove_group_user(org_id, id, user_id) + print("The response of GroupApi->frontier_service_remove_group_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_remove_group_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **user_id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_group** +> V1beta1UpdateGroupResponse frontier_service_update_group(org_id, id, body) + +Update group + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody +from frontier_api.models.v1beta1_update_group_response import V1beta1UpdateGroupResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.GroupApi(api_client) + org_id = 'org_id_example' # str | The organization ID to which the group belongs to. + id = 'id_example' # str | + body = frontier_api.V1beta1GroupRequestBody() # V1beta1GroupRequestBody | + + try: + # Update group + api_response = api_instance.frontier_service_update_group(org_id, id, body) + print("The response of GroupApi->frontier_service_update_group:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling GroupApi->frontier_service_update_group: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization ID to which the group belongs to. | + **id** | **str**| | + **body** | [**V1beta1GroupRequestBody**](V1beta1GroupRequestBody.md)| | + +### Return type + +[**V1beta1UpdateGroupResponse**](V1beta1UpdateGroupResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MetaSchemaApi.md b/docs/MetaSchemaApi.md new file mode 100644 index 0000000..1df3e68 --- /dev/null +++ b/docs/MetaSchemaApi.md @@ -0,0 +1,432 @@ +# frontier_api.MetaSchemaApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_meta_schema**](MetaSchemaApi.md#frontier_service_create_meta_schema) | **POST** /v1beta1/meta/schemas | Create metaschema +[**frontier_service_delete_meta_schema**](MetaSchemaApi.md#frontier_service_delete_meta_schema) | **DELETE** /v1beta1/meta/schemas/{id} | Delete metaschema +[**frontier_service_get_meta_schema**](MetaSchemaApi.md#frontier_service_get_meta_schema) | **GET** /v1beta1/meta/schemas/{id} | Get metaschema +[**frontier_service_list_meta_schemas**](MetaSchemaApi.md#frontier_service_list_meta_schemas) | **GET** /v1beta1/meta/schemas | List metaschemas +[**frontier_service_update_meta_schema**](MetaSchemaApi.md#frontier_service_update_meta_schema) | **PUT** /v1beta1/meta/schemas/{id} | Update metaschema + + +# **frontier_service_create_meta_schema** +> V1beta1CreateMetaSchemaResponse frontier_service_create_meta_schema(body) + +Create metaschema + +Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.MetaSchemaApi(api_client) + body = frontier_api.V1beta1MetaSchemaRequestBody() # V1beta1MetaSchemaRequestBody | + + try: + # Create metaschema + api_response = api_instance.frontier_service_create_meta_schema(body) + print("The response of MetaSchemaApi->frontier_service_create_meta_schema:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetaSchemaApi->frontier_service_create_meta_schema: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1MetaSchemaRequestBody**](V1beta1MetaSchemaRequestBody.md)| | + +### Return type + +[**V1beta1CreateMetaSchemaResponse**](V1beta1CreateMetaSchemaResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_meta_schema** +> object frontier_service_delete_meta_schema(id) + +Delete metaschema + +Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata). + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.MetaSchemaApi(api_client) + id = 'id_example' # str | + + try: + # Delete metaschema + api_response = api_instance.frontier_service_delete_meta_schema(id) + print("The response of MetaSchemaApi->frontier_service_delete_meta_schema:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetaSchemaApi->frontier_service_delete_meta_schema: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_meta_schema** +> V1beta1GetMetaSchemaResponse frontier_service_get_meta_schema(id) + +Get metaschema + +Get a metadata schema by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.MetaSchemaApi(api_client) + id = 'id_example' # str | + + try: + # Get metaschema + api_response = api_instance.frontier_service_get_meta_schema(id) + print("The response of MetaSchemaApi->frontier_service_get_meta_schema:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetaSchemaApi->frontier_service_get_meta_schema: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetMetaSchemaResponse**](V1beta1GetMetaSchemaResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_meta_schemas** +> V1beta1ListMetaSchemasResponse frontier_service_list_meta_schemas() + +List metaschemas + +Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.MetaSchemaApi(api_client) + + try: + # List metaschemas + api_response = api_instance.frontier_service_list_meta_schemas() + print("The response of MetaSchemaApi->frontier_service_list_meta_schemas:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetaSchemaApi->frontier_service_list_meta_schemas: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListMetaSchemasResponse**](V1beta1ListMetaSchemasResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_meta_schema** +> V1beta1UpdateMetaSchemaResponse frontier_service_update_meta_schema(id, body) + +Update metaschema + +Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody +from frontier_api.models.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.MetaSchemaApi(api_client) + id = 'id_example' # str | + body = frontier_api.V1beta1MetaSchemaRequestBody() # V1beta1MetaSchemaRequestBody | + + try: + # Update metaschema + api_response = api_instance.frontier_service_update_meta_schema(id, body) + print("The response of MetaSchemaApi->frontier_service_update_meta_schema:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetaSchemaApi->frontier_service_update_meta_schema: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**V1beta1MetaSchemaRequestBody**](V1beta1MetaSchemaRequestBody.md)| | + +### Return type + +[**V1beta1UpdateMetaSchemaResponse**](V1beta1UpdateMetaSchemaResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NamespaceApi.md b/docs/NamespaceApi.md new file mode 100644 index 0000000..d2685ad --- /dev/null +++ b/docs/NamespaceApi.md @@ -0,0 +1,174 @@ +# frontier_api.NamespaceApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_get_namespace**](NamespaceApi.md#frontier_service_get_namespace) | **GET** /v1beta1/namespaces/{id} | Get namespace +[**frontier_service_list_namespaces**](NamespaceApi.md#frontier_service_list_namespaces) | **GET** /v1beta1/namespaces | Get all namespaces + + +# **frontier_service_get_namespace** +> V1beta1GetNamespaceResponse frontier_service_get_namespace(id) + +Get namespace + +Returns a namespace by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.NamespaceApi(api_client) + id = 'id_example' # str | + + try: + # Get namespace + api_response = api_instance.frontier_service_get_namespace(id) + print("The response of NamespaceApi->frontier_service_get_namespace:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NamespaceApi->frontier_service_get_namespace: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetNamespaceResponse**](V1beta1GetNamespaceResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_namespaces** +> V1beta1ListNamespacesResponse frontier_service_list_namespaces() + +Get all namespaces + +Returns the list of all namespaces in a Frontier instance + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.NamespaceApi(api_client) + + try: + # Get all namespaces + api_response = api_instance.frontier_service_list_namespaces() + print("The response of NamespaceApi->frontier_service_list_namespaces:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling NamespaceApi->frontier_service_list_namespaces: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListNamespacesResponse**](V1beta1ListNamespacesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md new file mode 100644 index 0000000..01adf60 --- /dev/null +++ b/docs/OrganizationApi.md @@ -0,0 +1,2165 @@ +# frontier_api.OrganizationApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_list_all_organizations**](OrganizationApi.md#admin_service_list_all_organizations) | **GET** /v1beta1/admin/organizations | List all organizations +[**frontier_service_accept_organization_invitation**](OrganizationApi.md#frontier_service_accept_organization_invitation) | **POST** /v1beta1/organizations/{orgId}/invitations/{id}/accept | Accept pending invitation +[**frontier_service_add_organization_users**](OrganizationApi.md#frontier_service_add_organization_users) | **POST** /v1beta1/organizations/{id}/users | Add organization user +[**frontier_service_create_organization**](OrganizationApi.md#frontier_service_create_organization) | **POST** /v1beta1/organizations | Create organization +[**frontier_service_create_organization_domain**](OrganizationApi.md#frontier_service_create_organization_domain) | **POST** /v1beta1/organizations/{orgId}/domains | Create org domain +[**frontier_service_create_organization_invitation**](OrganizationApi.md#frontier_service_create_organization_invitation) | **POST** /v1beta1/organizations/{orgId}/invitations | Invite user +[**frontier_service_delete_organization**](OrganizationApi.md#frontier_service_delete_organization) | **DELETE** /v1beta1/organizations/{id} | Delete organization +[**frontier_service_delete_organization_domain**](OrganizationApi.md#frontier_service_delete_organization_domain) | **DELETE** /v1beta1/organizations/{orgId}/domains/{id} | Delete org domain +[**frontier_service_delete_organization_invitation**](OrganizationApi.md#frontier_service_delete_organization_invitation) | **DELETE** /v1beta1/organizations/{orgId}/invitations/{id} | Delete pending invitation +[**frontier_service_disable_organization**](OrganizationApi.md#frontier_service_disable_organization) | **POST** /v1beta1/organizations/{id}/disable | Disable organization +[**frontier_service_enable_organization**](OrganizationApi.md#frontier_service_enable_organization) | **POST** /v1beta1/organizations/{id}/enable | Enable organization +[**frontier_service_get_organization**](OrganizationApi.md#frontier_service_get_organization) | **GET** /v1beta1/organizations/{id} | Get organization +[**frontier_service_get_organization_domain**](OrganizationApi.md#frontier_service_get_organization_domain) | **GET** /v1beta1/organizations/{orgId}/domains/{id} | Get org domain +[**frontier_service_get_organization_invitation**](OrganizationApi.md#frontier_service_get_organization_invitation) | **GET** /v1beta1/organizations/{orgId}/invitations/{id} | Get pending invitation +[**frontier_service_join_organization**](OrganizationApi.md#frontier_service_join_organization) | **POST** /v1beta1/organizations/{orgId}/join | Join organization +[**frontier_service_list_organization_admins**](OrganizationApi.md#frontier_service_list_organization_admins) | **GET** /v1beta1/organizations/{id}/admins | List organization admins +[**frontier_service_list_organization_domains**](OrganizationApi.md#frontier_service_list_organization_domains) | **GET** /v1beta1/organizations/{orgId}/domains | List org domains +[**frontier_service_list_organization_invitations**](OrganizationApi.md#frontier_service_list_organization_invitations) | **GET** /v1beta1/organizations/{orgId}/invitations | List pending invitations +[**frontier_service_list_organization_projects**](OrganizationApi.md#frontier_service_list_organization_projects) | **GET** /v1beta1/organizations/{id}/projects | Get organization projects +[**frontier_service_list_organization_service_users**](OrganizationApi.md#frontier_service_list_organization_service_users) | **GET** /v1beta1/organizations/{id}/serviceusers | List organization service users +[**frontier_service_list_organization_users**](OrganizationApi.md#frontier_service_list_organization_users) | **GET** /v1beta1/organizations/{id}/users | List organization users +[**frontier_service_list_organizations**](OrganizationApi.md#frontier_service_list_organizations) | **GET** /v1beta1/organizations | List organizations +[**frontier_service_remove_organization_user**](OrganizationApi.md#frontier_service_remove_organization_user) | **DELETE** /v1beta1/organizations/{id}/users/{userId} | Remove organization user +[**frontier_service_update_organization**](OrganizationApi.md#frontier_service_update_organization) | **PUT** /v1beta1/organizations/{id} | Update organization +[**frontier_service_verify_organization_domain**](OrganizationApi.md#frontier_service_verify_organization_domain) | **POST** /v1beta1/organizations/{orgId}/domains/{id}/verify | Verify org domain + + +# **admin_service_list_all_organizations** +> V1beta1ListAllOrganizationsResponse admin_service_list_all_organizations(user_id=user_id, state=state) + +List all organizations + +Lists all the organizations in a Frontier instance. It can be filtered by user and state. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + user_id = 'user_id_example' # str | The user id to filter by. (optional) + state = 'state_example' # str | The state to filter by. It can be enabled or disabled. (optional) + + try: + # List all organizations + api_response = api_instance.admin_service_list_all_organizations(user_id=user_id, state=state) + print("The response of OrganizationApi->admin_service_list_all_organizations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->admin_service_list_all_organizations: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| The user id to filter by. | [optional] + **state** | **str**| The state to filter by. It can be enabled or disabled. | [optional] + +### Return type + +[**V1beta1ListAllOrganizationsResponse**](V1beta1ListAllOrganizationsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_accept_organization_invitation** +> object frontier_service_accept_organization_invitation(org_id, id) + +Accept pending invitation + +Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Accept pending invitation + api_response = api_instance.frontier_service_accept_organization_invitation(org_id, id) + print("The response of OrganizationApi->frontier_service_accept_organization_invitation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_accept_organization_invitation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_add_organization_users** +> object frontier_service_add_organization_users(id, body) + +Add organization user + +Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_add_organization_users_request import FrontierServiceAddOrganizationUsersRequest +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + body = frontier_api.FrontierServiceAddOrganizationUsersRequest() # FrontierServiceAddOrganizationUsersRequest | + + try: + # Add organization user + api_response = api_instance.frontier_service_add_organization_users(id, body) + print("The response of OrganizationApi->frontier_service_add_organization_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_add_organization_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**FrontierServiceAddOrganizationUsersRequest**](FrontierServiceAddOrganizationUsersRequest.md)| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_organization** +> V1beta1CreateOrganizationResponse frontier_service_create_organization(body) + +Create organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + body = frontier_api.V1beta1OrganizationRequestBody() # V1beta1OrganizationRequestBody | + + try: + # Create organization + api_response = api_instance.frontier_service_create_organization(body) + print("The response of OrganizationApi->frontier_service_create_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_create_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1OrganizationRequestBody**](V1beta1OrganizationRequestBody.md)| | + +### Return type + +[**V1beta1CreateOrganizationResponse**](V1beta1CreateOrganizationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_organization_domain** +> V1beta1CreateOrganizationDomainResponse frontier_service_create_organization_domain(org_id, body) + +Create org domain + +Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_organization_domain_request import FrontierServiceCreateOrganizationDomainRequest +from frontier_api.models.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization for which whitelisted domains are to be added + body = frontier_api.FrontierServiceCreateOrganizationDomainRequest() # FrontierServiceCreateOrganizationDomainRequest | + + try: + # Create org domain + api_response = api_instance.frontier_service_create_organization_domain(org_id, body) + print("The response of OrganizationApi->frontier_service_create_organization_domain:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_create_organization_domain: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization for which whitelisted domains are to be added | + **body** | [**FrontierServiceCreateOrganizationDomainRequest**](FrontierServiceCreateOrganizationDomainRequest.md)| | + +### Return type + +[**V1beta1CreateOrganizationDomainResponse**](V1beta1CreateOrganizationDomainResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_organization_invitation** +> V1beta1CreateOrganizationInvitationResponse frontier_service_create_organization_invitation(org_id, body) + +Invite user + +Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_organization_invitation_request import FrontierServiceCreateOrganizationInvitationRequest +from frontier_api.models.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization to which user is invited + body = frontier_api.FrontierServiceCreateOrganizationInvitationRequest() # FrontierServiceCreateOrganizationInvitationRequest | + + try: + # Invite user + api_response = api_instance.frontier_service_create_organization_invitation(org_id, body) + print("The response of OrganizationApi->frontier_service_create_organization_invitation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_create_organization_invitation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization to which user is invited | + **body** | [**FrontierServiceCreateOrganizationInvitationRequest**](FrontierServiceCreateOrganizationInvitationRequest.md)| | + +### Return type + +[**V1beta1CreateOrganizationInvitationResponse**](V1beta1CreateOrganizationInvitationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_organization** +> object frontier_service_delete_organization(id) + +Delete organization + +Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + + try: + # Delete organization + api_response = api_instance.frontier_service_delete_organization(id) + print("The response of OrganizationApi->frontier_service_delete_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_delete_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_organization_domain** +> object frontier_service_delete_organization_domain(org_id, id) + +Delete org domain + +Remove a domain from the list of an organization's trusted domains list + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization for which whitelisted domains are to be deleted + id = 'id_example' # str | unique id of the domain to be deleted + + try: + # Delete org domain + api_response = api_instance.frontier_service_delete_organization_domain(org_id, id) + print("The response of OrganizationApi->frontier_service_delete_organization_domain:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_delete_organization_domain: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization for which whitelisted domains are to be deleted | + **id** | **str**| unique id of the domain to be deleted | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_organization_invitation** +> object frontier_service_delete_organization_invitation(org_id, id) + +Delete pending invitation + +Delete a pending invitation queued for an organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Delete pending invitation + api_response = api_instance.frontier_service_delete_organization_invitation(org_id, id) + print("The response of OrganizationApi->frontier_service_delete_organization_invitation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_delete_organization_invitation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_disable_organization** +> object frontier_service_disable_organization(id, body) + +Disable organization + +Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + body = None # object | + + try: + # Disable organization + api_response = api_instance.frontier_service_disable_organization(id, body) + print("The response of OrganizationApi->frontier_service_disable_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_disable_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_enable_organization** +> object frontier_service_enable_organization(id, body) + +Enable organization + +Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + body = None # object | + + try: + # Enable organization + api_response = api_instance.frontier_service_enable_organization(id, body) + print("The response of OrganizationApi->frontier_service_enable_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_enable_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_organization** +> V1beta1GetOrganizationResponse frontier_service_get_organization(id) + +Get organization + +Get organization by ID or name + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_organization_response import V1beta1GetOrganizationResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + + try: + # Get organization + api_response = api_instance.frontier_service_get_organization(id) + print("The response of OrganizationApi->frontier_service_get_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_get_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetOrganizationResponse**](V1beta1GetOrganizationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_organization_domain** +> V1beta1GetOrganizationDomainResponse frontier_service_get_organization_domain(org_id, id) + +Get org domain + +Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization for which whitelisted domain is to be retrieved + id = 'id_example' # str | unique id of the domain to be retrieved + + try: + # Get org domain + api_response = api_instance.frontier_service_get_organization_domain(org_id, id) + print("The response of OrganizationApi->frontier_service_get_organization_domain:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_get_organization_domain: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization for which whitelisted domain is to be retrieved | + **id** | **str**| unique id of the domain to be retrieved | + +### Return type + +[**V1beta1GetOrganizationDomainResponse**](V1beta1GetOrganizationDomainResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_organization_invitation** +> V1beta1GetOrganizationInvitationResponse frontier_service_get_organization_invitation(org_id, id) + +Get pending invitation + +Returns a pending invitation queued for an organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Get pending invitation + api_response = api_instance.frontier_service_get_organization_invitation(org_id, id) + print("The response of OrganizationApi->frontier_service_get_organization_invitation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_get_organization_invitation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +[**V1beta1GetOrganizationInvitationResponse**](V1beta1GetOrganizationInvitationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_join_organization** +> object frontier_service_join_organization(org_id) + +Join organization + +Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | + + try: + # Join organization + api_response = api_instance.frontier_service_join_organization(org_id) + print("The response of OrganizationApi->frontier_service_join_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_join_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_admins** +> V1beta1ListOrganizationAdminsResponse frontier_service_list_organization_admins(id) + +List organization admins + +Returns a list admins of an organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + + try: + # List organization admins + api_response = api_instance.frontier_service_list_organization_admins(id) + print("The response of OrganizationApi->frontier_service_list_organization_admins:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organization_admins: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListOrganizationAdminsResponse**](V1beta1ListOrganizationAdminsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_domains** +> V1beta1ListOrganizationDomainsResponse frontier_service_list_organization_domains(org_id, state=state) + +List org domains + +Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization for which whitelisted domains are to be listed + state = 'state_example' # str | filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed (optional) + + try: + # List org domains + api_response = api_instance.frontier_service_list_organization_domains(org_id, state=state) + print("The response of OrganizationApi->frontier_service_list_organization_domains:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organization_domains: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization for which whitelisted domains are to be listed | + **state** | **str**| filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed | [optional] + +### Return type + +[**V1beta1ListOrganizationDomainsResponse**](V1beta1ListOrganizationDomainsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_invitations** +> V1beta1ListOrganizationInvitationsResponse frontier_service_list_organization_invitations(org_id, user_id=user_id) + +List pending invitations + +Returns all pending invitations queued for an organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization to which user is invited + user_id = 'user_id_example' # str | user_id filter is the email id of user who are invited inside the organization. (optional) + + try: + # List pending invitations + api_response = api_instance.frontier_service_list_organization_invitations(org_id, user_id=user_id) + print("The response of OrganizationApi->frontier_service_list_organization_invitations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organization_invitations: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization to which user is invited | + **user_id** | **str**| user_id filter is the email id of user who are invited inside the organization. | [optional] + +### Return type + +[**V1beta1ListOrganizationInvitationsResponse**](V1beta1ListOrganizationInvitationsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_projects** +> V1beta1ListOrganizationProjectsResponse frontier_service_list_organization_projects(id, state=state) + +Get organization projects + +Get all projects that belong to an organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + state = 'state_example' # str | Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled` (optional) + + try: + # Get organization projects + api_response = api_instance.frontier_service_list_organization_projects(id, state=state) + print("The response of OrganizationApi->frontier_service_list_organization_projects:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organization_projects: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **state** | **str**| Filter projects by state. If not specified, all projects are returned. <br/> *Possible values:* `enabled` or `disabled` | [optional] + +### Return type + +[**V1beta1ListOrganizationProjectsResponse**](V1beta1ListOrganizationProjectsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_service_users** +> V1beta1ListOrganizationServiceUsersResponse frontier_service_list_organization_service_users(id) + +List organization service users + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + + try: + # List organization service users + api_response = api_instance.frontier_service_list_organization_service_users(id) + print("The response of OrganizationApi->frontier_service_list_organization_service_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organization_service_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListOrganizationServiceUsersResponse**](V1beta1ListOrganizationServiceUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_users** +> V1beta1ListOrganizationUsersResponse frontier_service_list_organization_users(id, permission_filter=permission_filter, with_roles=with_roles) + +List organization users + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + permission_filter = 'permission_filter_example' # str | (optional) + with_roles = True # bool | (optional) + + try: + # List organization users + api_response = api_instance.frontier_service_list_organization_users(id, permission_filter=permission_filter, with_roles=with_roles) + print("The response of OrganizationApi->frontier_service_list_organization_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organization_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **permission_filter** | **str**| | [optional] + **with_roles** | **bool**| | [optional] + +### Return type + +[**V1beta1ListOrganizationUsersResponse**](V1beta1ListOrganizationUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organizations** +> V1beta1ListOrganizationsResponse frontier_service_list_organizations(user_id=user_id, state=state) + +List organizations + +Returns a list of organizations. It can be filtered by userID or organization state. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + user_id = 'user_id_example' # str | The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed. (optional) + state = 'state_example' # str | The state to filter by. It can be `enabled` or `disabled`. (optional) + + try: + # List organizations + api_response = api_instance.frontier_service_list_organizations(user_id=user_id, state=state) + print("The response of OrganizationApi->frontier_service_list_organizations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_list_organizations: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed. | [optional] + **state** | **str**| The state to filter by. It can be `enabled` or `disabled`. | [optional] + +### Return type + +[**V1beta1ListOrganizationsResponse**](V1beta1ListOrganizationsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_remove_organization_user** +> object frontier_service_remove_organization_user(id, user_id) + +Remove organization user + +Remove a user from an organization + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + user_id = 'user_id_example' # str | + + try: + # Remove organization user + api_response = api_instance.frontier_service_remove_organization_user(id, user_id) + print("The response of OrganizationApi->frontier_service_remove_organization_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_remove_organization_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **user_id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_organization** +> V1beta1UpdateOrganizationResponse frontier_service_update_organization(id, body) + +Update organization + +Update organization by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody +from frontier_api.models.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + id = 'id_example' # str | + body = frontier_api.V1beta1OrganizationRequestBody() # V1beta1OrganizationRequestBody | + + try: + # Update organization + api_response = api_instance.frontier_service_update_organization(id, body) + print("The response of OrganizationApi->frontier_service_update_organization:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_update_organization: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**V1beta1OrganizationRequestBody**](V1beta1OrganizationRequestBody.md)| | + +### Return type + +[**V1beta1UpdateOrganizationResponse**](V1beta1UpdateOrganizationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_verify_organization_domain** +> V1beta1VerifyOrganizationDomainResponse frontier_service_verify_organization_domain(org_id, id, body) + +Verify org domain + +Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.OrganizationApi(api_client) + org_id = 'org_id_example' # str | unique id of the organization for which whitelisted domains are to be verified + id = 'id_example' # str | unique id of the domain to be verified + body = None # object | + + try: + # Verify org domain + api_response = api_instance.frontier_service_verify_organization_domain(org_id, id, body) + print("The response of OrganizationApi->frontier_service_verify_organization_domain:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->frontier_service_verify_organization_domain: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| unique id of the organization for which whitelisted domains are to be verified | + **id** | **str**| unique id of the domain to be verified | + **body** | **object**| | + +### Return type + +[**V1beta1VerifyOrganizationDomainResponse**](V1beta1VerifyOrganizationDomainResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PermissionApi.md b/docs/PermissionApi.md new file mode 100644 index 0000000..1a222fa --- /dev/null +++ b/docs/PermissionApi.md @@ -0,0 +1,428 @@ +# frontier_api.PermissionApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_create_permission**](PermissionApi.md#admin_service_create_permission) | **POST** /v1beta1/permissions | Create platform permission +[**admin_service_delete_permission**](PermissionApi.md#admin_service_delete_permission) | **DELETE** /v1beta1/permissions/{id} | Delete platform permission +[**admin_service_update_permission**](PermissionApi.md#admin_service_update_permission) | **PUT** /v1beta1/permissions/{id} | Update platform permission +[**frontier_service_get_permission**](PermissionApi.md#frontier_service_get_permission) | **GET** /v1beta1/permissions/{id} | Get permission +[**frontier_service_list_permissions**](PermissionApi.md#frontier_service_list_permissions) | **GET** /v1beta1/permissions | Get all permissions + + +# **admin_service_create_permission** +> V1beta1CreatePermissionResponse admin_service_create_permission(body) + +Create platform permission + +Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_permission_request import V1beta1CreatePermissionRequest +from frontier_api.models.v1beta1_create_permission_response import V1beta1CreatePermissionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PermissionApi(api_client) + body = frontier_api.V1beta1CreatePermissionRequest() # V1beta1CreatePermissionRequest | + + try: + # Create platform permission + api_response = api_instance.admin_service_create_permission(body) + print("The response of PermissionApi->admin_service_create_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PermissionApi->admin_service_create_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CreatePermissionRequest**](V1beta1CreatePermissionRequest.md)| | + +### Return type + +[**V1beta1CreatePermissionResponse**](V1beta1CreatePermissionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_service_delete_permission** +> object admin_service_delete_permission(id) + +Delete platform permission + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PermissionApi(api_client) + id = 'id_example' # str | + + try: + # Delete platform permission + api_response = api_instance.admin_service_delete_permission(id) + print("The response of PermissionApi->admin_service_delete_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PermissionApi->admin_service_delete_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_service_update_permission** +> V1beta1UpdatePermissionResponse admin_service_update_permission(id, body) + +Update platform permission + +Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody +from frontier_api.models.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PermissionApi(api_client) + id = 'id_example' # str | + body = frontier_api.V1beta1PermissionRequestBody() # V1beta1PermissionRequestBody | + + try: + # Update platform permission + api_response = api_instance.admin_service_update_permission(id, body) + print("The response of PermissionApi->admin_service_update_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PermissionApi->admin_service_update_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**V1beta1PermissionRequestBody**](V1beta1PermissionRequestBody.md)| | + +### Return type + +[**V1beta1UpdatePermissionResponse**](V1beta1UpdatePermissionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_permission** +> V1beta1GetPermissionResponse frontier_service_get_permission(id) + +Get permission + +Returns a permission by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_permission_response import V1beta1GetPermissionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PermissionApi(api_client) + id = 'id_example' # str | + + try: + # Get permission + api_response = api_instance.frontier_service_get_permission(id) + print("The response of PermissionApi->frontier_service_get_permission:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PermissionApi->frontier_service_get_permission: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetPermissionResponse**](V1beta1GetPermissionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_permissions** +> V1beta1ListPermissionsResponse frontier_service_list_permissions() + +Get all permissions + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PermissionApi(api_client) + + try: + # Get all permissions + api_response = api_instance.frontier_service_list_permissions() + print("The response of PermissionApi->frontier_service_list_permissions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PermissionApi->frontier_service_list_permissions: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListPermissionsResponse**](V1beta1ListPermissionsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PlanApi.md b/docs/PlanApi.md new file mode 100644 index 0000000..ec0d568 --- /dev/null +++ b/docs/PlanApi.md @@ -0,0 +1,348 @@ +# frontier_api.PlanApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_plan**](PlanApi.md#frontier_service_create_plan) | **POST** /v1beta1/billing/plans | Create plan +[**frontier_service_get_plan**](PlanApi.md#frontier_service_get_plan) | **GET** /v1beta1/billing/plans/{id} | Get plan +[**frontier_service_list_plans**](PlanApi.md#frontier_service_list_plans) | **GET** /v1beta1/billing/plans | List plans +[**frontier_service_update_plan**](PlanApi.md#frontier_service_update_plan) | **PUT** /v1beta1/billing/plans/{id} | Update plan + + +# **frontier_service_create_plan** +> V1beta1CreatePlanResponse frontier_service_create_plan(body) + +Create plan + +Create a new plan for platform. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_plan_request import V1beta1CreatePlanRequest +from frontier_api.models.v1beta1_create_plan_response import V1beta1CreatePlanResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PlanApi(api_client) + body = frontier_api.V1beta1CreatePlanRequest() # V1beta1CreatePlanRequest | + + try: + # Create plan + api_response = api_instance.frontier_service_create_plan(body) + print("The response of PlanApi->frontier_service_create_plan:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PlanApi->frontier_service_create_plan: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CreatePlanRequest**](V1beta1CreatePlanRequest.md)| | + +### Return type + +[**V1beta1CreatePlanResponse**](V1beta1CreatePlanResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_plan** +> V1beta1GetPlanResponse frontier_service_get_plan(id) + +Get plan + +Get a plan by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_plan_response import V1beta1GetPlanResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PlanApi(api_client) + id = 'id_example' # str | ID of the plan to get + + try: + # Get plan + api_response = api_instance.frontier_service_get_plan(id) + print("The response of PlanApi->frontier_service_get_plan:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PlanApi->frontier_service_get_plan: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the plan to get | + +### Return type + +[**V1beta1GetPlanResponse**](V1beta1GetPlanResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_plans** +> V1beta1ListPlansResponse frontier_service_list_plans() + +List plans + +List all plans. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_plans_response import V1beta1ListPlansResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PlanApi(api_client) + + try: + # List plans + api_response = api_instance.frontier_service_list_plans() + print("The response of PlanApi->frontier_service_list_plans:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PlanApi->frontier_service_list_plans: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListPlansResponse**](V1beta1ListPlansResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_plan** +> V1beta1UpdatePlanResponse frontier_service_update_plan(id, body) + +Update plan + +Update a plan by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_update_plan_request import FrontierServiceUpdatePlanRequest +from frontier_api.models.v1beta1_update_plan_response import V1beta1UpdatePlanResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PlanApi(api_client) + id = 'id_example' # str | ID of the plan to update + body = frontier_api.FrontierServiceUpdatePlanRequest() # FrontierServiceUpdatePlanRequest | + + try: + # Update plan + api_response = api_instance.frontier_service_update_plan(id, body) + print("The response of PlanApi->frontier_service_update_plan:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PlanApi->frontier_service_update_plan: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the plan to update | + **body** | [**FrontierServiceUpdatePlanRequest**](FrontierServiceUpdatePlanRequest.md)| | + +### Return type + +[**V1beta1UpdatePlanResponse**](V1beta1UpdatePlanResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PlatformApi.md b/docs/PlatformApi.md new file mode 100644 index 0000000..569705d --- /dev/null +++ b/docs/PlatformApi.md @@ -0,0 +1,93 @@ +# frontier_api.PlatformApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_add_platform_user**](PlatformApi.md#admin_service_add_platform_user) | **POST** /v1beta1/admin/platform/users | Add platform user + + +# **admin_service_add_platform_user** +> object admin_service_add_platform_user(body) + +Add platform user + +Adds a user to a platform. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_add_platform_user_request import V1beta1AddPlatformUserRequest +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PlatformApi(api_client) + body = frontier_api.V1beta1AddPlatformUserRequest() # V1beta1AddPlatformUserRequest | + + try: + # Add platform user + api_response = api_instance.admin_service_add_platform_user(body) + print("The response of PlatformApi->admin_service_add_platform_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PlatformApi->admin_service_add_platform_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1AddPlatformUserRequest**](V1beta1AddPlatformUserRequest.md)| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PolicyApi.md b/docs/PolicyApi.md new file mode 100644 index 0000000..0d0937a --- /dev/null +++ b/docs/PolicyApi.md @@ -0,0 +1,444 @@ +# frontier_api.PolicyApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_policy**](PolicyApi.md#frontier_service_create_policy) | **POST** /v1beta1/policies | Create policy +[**frontier_service_delete_policy**](PolicyApi.md#frontier_service_delete_policy) | **DELETE** /v1beta1/policies/{id} | Delete Policy +[**frontier_service_get_policy**](PolicyApi.md#frontier_service_get_policy) | **GET** /v1beta1/policies/{id} | Get policy +[**frontier_service_list_policies**](PolicyApi.md#frontier_service_list_policies) | **GET** /v1beta1/policies | List all policies +[**frontier_service_update_policy**](PolicyApi.md#frontier_service_update_policy) | **PUT** /v1beta1/policies/{id} | Update policy + + +# **frontier_service_create_policy** +> V1beta1CreatePolicyResponse frontier_service_create_policy(body) + +Create policy + +Creates a policy + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_policy_response import V1beta1CreatePolicyResponse +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PolicyApi(api_client) + body = frontier_api.V1beta1PolicyRequestBody() # V1beta1PolicyRequestBody | + + try: + # Create policy + api_response = api_instance.frontier_service_create_policy(body) + print("The response of PolicyApi->frontier_service_create_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyApi->frontier_service_create_policy: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1PolicyRequestBody**](V1beta1PolicyRequestBody.md)| | + +### Return type + +[**V1beta1CreatePolicyResponse**](V1beta1CreatePolicyResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_policy** +> object frontier_service_delete_policy(id) + +Delete Policy + +Delete a policy all of its relations permanently. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PolicyApi(api_client) + id = 'id_example' # str | + + try: + # Delete Policy + api_response = api_instance.frontier_service_delete_policy(id) + print("The response of PolicyApi->frontier_service_delete_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyApi->frontier_service_delete_policy: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_policy** +> V1beta1GetPolicyResponse frontier_service_get_policy(id) + +Get policy + +Returns a policy by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_policy_response import V1beta1GetPolicyResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PolicyApi(api_client) + id = 'id_example' # str | + + try: + # Get policy + api_response = api_instance.frontier_service_get_policy(id) + print("The response of PolicyApi->frontier_service_get_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyApi->frontier_service_get_policy: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetPolicyResponse**](V1beta1GetPolicyResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_policies** +> V1beta1ListPoliciesResponse frontier_service_list_policies(org_id=org_id, project_id=project_id, user_id=user_id, role_id=role_id, group_id=group_id) + +List all policies + +Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_policies_response import V1beta1ListPoliciesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PolicyApi(api_client) + org_id = 'org_id_example' # str | The organization id to filter by. (optional) + project_id = 'project_id_example' # str | The project id to filter by. (optional) + user_id = 'user_id_example' # str | The user id to filter by. (optional) + role_id = 'role_id_example' # str | The role id to filter by. (optional) + group_id = 'group_id_example' # str | The group id to filter by. (optional) + + try: + # List all policies + api_response = api_instance.frontier_service_list_policies(org_id=org_id, project_id=project_id, user_id=user_id, role_id=role_id, group_id=group_id) + print("The response of PolicyApi->frontier_service_list_policies:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyApi->frontier_service_list_policies: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization id to filter by. | [optional] + **project_id** | **str**| The project id to filter by. | [optional] + **user_id** | **str**| The user id to filter by. | [optional] + **role_id** | **str**| The role id to filter by. | [optional] + **group_id** | **str**| The group id to filter by. | [optional] + +### Return type + +[**V1beta1ListPoliciesResponse**](V1beta1ListPoliciesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_policy** +> V1beta1UpdatePolicyResponse frontier_service_update_policy(id, body) + +Update policy + +Updates a policy by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody +from frontier_api.models.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PolicyApi(api_client) + id = 'id_example' # str | + body = frontier_api.V1beta1PolicyRequestBody() # V1beta1PolicyRequestBody | + + try: + # Update policy + api_response = api_instance.frontier_service_update_policy(id, body) + print("The response of PolicyApi->frontier_service_update_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PolicyApi->frontier_service_update_policy: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**V1beta1PolicyRequestBody**](V1beta1PolicyRequestBody.md)| | + +### Return type + +[**V1beta1UpdatePolicyResponse**](V1beta1UpdatePolicyResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PreferenceApi.md b/docs/PreferenceApi.md new file mode 100644 index 0000000..8b18fc8 --- /dev/null +++ b/docs/PreferenceApi.md @@ -0,0 +1,1115 @@ +# frontier_api.PreferenceApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_create_preferences**](PreferenceApi.md#admin_service_create_preferences) | **POST** /v1beta1/preferences | Create platform preferences +[**admin_service_list_preferences**](PreferenceApi.md#admin_service_list_preferences) | **GET** /v1beta1/preferences | List platform preferences +[**frontier_service_create_current_user_preferences**](PreferenceApi.md#frontier_service_create_current_user_preferences) | **POST** /v1beta1/users/self/preferences | Create current user preferences +[**frontier_service_create_group_preferences**](PreferenceApi.md#frontier_service_create_group_preferences) | **POST** /v1beta1/groups/{id}/preferences | Create group preferences +[**frontier_service_create_organization_preferences**](PreferenceApi.md#frontier_service_create_organization_preferences) | **POST** /v1beta1/organizations/{id}/preferences | Create organization preferences +[**frontier_service_create_project_preferences**](PreferenceApi.md#frontier_service_create_project_preferences) | **POST** /v1beta1/projects/{id}/preferences | Create project preferences +[**frontier_service_create_user_preferences**](PreferenceApi.md#frontier_service_create_user_preferences) | **POST** /v1beta1/users/{id}/preferences | Create user preferences +[**frontier_service_describe_preferences**](PreferenceApi.md#frontier_service_describe_preferences) | **GET** /v1beta1/preferences/traits | Describe preferences +[**frontier_service_list_current_user_preferences**](PreferenceApi.md#frontier_service_list_current_user_preferences) | **GET** /v1beta1/users/self/preferences | List current user preferences +[**frontier_service_list_group_preferences**](PreferenceApi.md#frontier_service_list_group_preferences) | **GET** /v1beta1/groups/{id}/preferences | List group preferences +[**frontier_service_list_organization_preferences**](PreferenceApi.md#frontier_service_list_organization_preferences) | **GET** /v1beta1/organizations/{id}/preferences | List organization preferences +[**frontier_service_list_project_preferences**](PreferenceApi.md#frontier_service_list_project_preferences) | **GET** /v1beta1/projects/{id}/preferences | List project preferences +[**frontier_service_list_user_preferences**](PreferenceApi.md#frontier_service_list_user_preferences) | **GET** /v1beta1/users/{id}/preferences | List user preferences + + +# **admin_service_create_preferences** +> V1beta1CreatePreferencesResponse admin_service_create_preferences(body) + +Create platform preferences + +Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest +from frontier_api.models.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + body = frontier_api.V1beta1CreatePreferencesRequest() # V1beta1CreatePreferencesRequest | + + try: + # Create platform preferences + api_response = api_instance.admin_service_create_preferences(body) + print("The response of PreferenceApi->admin_service_create_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->admin_service_create_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CreatePreferencesRequest**](V1beta1CreatePreferencesRequest.md)| | + +### Return type + +[**V1beta1CreatePreferencesResponse**](V1beta1CreatePreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_service_list_preferences** +> V1beta1ListPreferencesResponse admin_service_list_preferences() + +List platform preferences + +Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + + try: + # List platform preferences + api_response = api_instance.admin_service_list_preferences() + print("The response of PreferenceApi->admin_service_list_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->admin_service_list_preferences: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListPreferencesResponse**](V1beta1ListPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_current_user_preferences** +> V1beta1CreateCurrentUserPreferencesResponse frontier_service_create_current_user_preferences(body) + +Create current user preferences + +Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest +from frontier_api.models.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + body = frontier_api.V1beta1CreateCurrentUserPreferencesRequest() # V1beta1CreateCurrentUserPreferencesRequest | + + try: + # Create current user preferences + api_response = api_instance.frontier_service_create_current_user_preferences(body) + print("The response of PreferenceApi->frontier_service_create_current_user_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_create_current_user_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CreateCurrentUserPreferencesRequest**](V1beta1CreateCurrentUserPreferencesRequest.md)| | + +### Return type + +[**V1beta1CreateCurrentUserPreferencesResponse**](V1beta1CreateCurrentUserPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_group_preferences** +> V1beta1CreateGroupPreferencesResponse frontier_service_create_group_preferences(id, body) + +Create group preferences + +Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + body = frontier_api.FrontierServiceCreateGroupPreferencesRequest() # FrontierServiceCreateGroupPreferencesRequest | + + try: + # Create group preferences + api_response = api_instance.frontier_service_create_group_preferences(id, body) + print("The response of PreferenceApi->frontier_service_create_group_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_create_group_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**FrontierServiceCreateGroupPreferencesRequest**](FrontierServiceCreateGroupPreferencesRequest.md)| | + +### Return type + +[**V1beta1CreateGroupPreferencesResponse**](V1beta1CreateGroupPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_organization_preferences** +> V1beta1CreateOrganizationPreferencesResponse frontier_service_create_organization_preferences(id, body) + +Create organization preferences + +Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + body = frontier_api.FrontierServiceCreateGroupPreferencesRequest() # FrontierServiceCreateGroupPreferencesRequest | + + try: + # Create organization preferences + api_response = api_instance.frontier_service_create_organization_preferences(id, body) + print("The response of PreferenceApi->frontier_service_create_organization_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_create_organization_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**FrontierServiceCreateGroupPreferencesRequest**](FrontierServiceCreateGroupPreferencesRequest.md)| | + +### Return type + +[**V1beta1CreateOrganizationPreferencesResponse**](V1beta1CreateOrganizationPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_project_preferences** +> V1beta1CreateProjectPreferencesResponse frontier_service_create_project_preferences(id, body) + +Create project preferences + +Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + body = frontier_api.FrontierServiceCreateGroupPreferencesRequest() # FrontierServiceCreateGroupPreferencesRequest | + + try: + # Create project preferences + api_response = api_instance.frontier_service_create_project_preferences(id, body) + print("The response of PreferenceApi->frontier_service_create_project_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_create_project_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**FrontierServiceCreateGroupPreferencesRequest**](FrontierServiceCreateGroupPreferencesRequest.md)| | + +### Return type + +[**V1beta1CreateProjectPreferencesResponse**](V1beta1CreateProjectPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_user_preferences** +> V1beta1CreateUserPreferencesResponse frontier_service_create_user_preferences(id, body) + +Create user preferences + +Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + body = frontier_api.FrontierServiceCreateGroupPreferencesRequest() # FrontierServiceCreateGroupPreferencesRequest | + + try: + # Create user preferences + api_response = api_instance.frontier_service_create_user_preferences(id, body) + print("The response of PreferenceApi->frontier_service_create_user_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_create_user_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**FrontierServiceCreateGroupPreferencesRequest**](FrontierServiceCreateGroupPreferencesRequest.md)| | + +### Return type + +[**V1beta1CreateUserPreferencesResponse**](V1beta1CreateUserPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_describe_preferences** +> V1beta1DescribePreferencesResponse frontier_service_describe_preferences() + +Describe preferences + +Returns a list of all preferences supported by Frontier. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + + try: + # Describe preferences + api_response = api_instance.frontier_service_describe_preferences() + print("The response of PreferenceApi->frontier_service_describe_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_describe_preferences: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1DescribePreferencesResponse**](V1beta1DescribePreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_current_user_preferences** +> V1beta1ListCurrentUserPreferencesResponse frontier_service_list_current_user_preferences() + +List current user preferences + +List a user preferences by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + + try: + # List current user preferences + api_response = api_instance.frontier_service_list_current_user_preferences() + print("The response of PreferenceApi->frontier_service_list_current_user_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_list_current_user_preferences: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListCurrentUserPreferencesResponse**](V1beta1ListCurrentUserPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_group_preferences** +> V1beta1ListGroupPreferencesResponse frontier_service_list_group_preferences(id) + +List group preferences + +List a group preferences by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + + try: + # List group preferences + api_response = api_instance.frontier_service_list_group_preferences(id) + print("The response of PreferenceApi->frontier_service_list_group_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_list_group_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListGroupPreferencesResponse**](V1beta1ListGroupPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_preferences** +> V1beta1ListOrganizationPreferencesResponse frontier_service_list_organization_preferences(id) + +List organization preferences + +List an organization preferences by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + + try: + # List organization preferences + api_response = api_instance.frontier_service_list_organization_preferences(id) + print("The response of PreferenceApi->frontier_service_list_organization_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_list_organization_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListOrganizationPreferencesResponse**](V1beta1ListOrganizationPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_project_preferences** +> V1beta1ListProjectPreferencesResponse frontier_service_list_project_preferences(id) + +List project preferences + +List a project preferences by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + + try: + # List project preferences + api_response = api_instance.frontier_service_list_project_preferences(id) + print("The response of PreferenceApi->frontier_service_list_project_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_list_project_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListProjectPreferencesResponse**](V1beta1ListProjectPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_user_preferences** +> V1beta1ListUserPreferencesResponse frontier_service_list_user_preferences(id) + +List user preferences + +List a user preferences by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.PreferenceApi(api_client) + id = 'id_example' # str | + + try: + # List user preferences + api_response = api_instance.frontier_service_list_user_preferences(id) + print("The response of PreferenceApi->frontier_service_list_user_preferences:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PreferenceApi->frontier_service_list_user_preferences: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListUserPreferencesResponse**](V1beta1ListUserPreferencesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProjectApi.md b/docs/ProjectApi.md new file mode 100644 index 0000000..94cb9b1 --- /dev/null +++ b/docs/ProjectApi.md @@ -0,0 +1,952 @@ +# frontier_api.ProjectApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_list_projects**](ProjectApi.md#admin_service_list_projects) | **GET** /v1beta1/admin/projects | List all projects +[**frontier_service_create_project**](ProjectApi.md#frontier_service_create_project) | **POST** /v1beta1/projects | Create project +[**frontier_service_delete_project**](ProjectApi.md#frontier_service_delete_project) | **DELETE** /v1beta1/projects/{id} | Delete Project +[**frontier_service_disable_project**](ProjectApi.md#frontier_service_disable_project) | **POST** /v1beta1/projects/{id}/disable | Disable project +[**frontier_service_enable_project**](ProjectApi.md#frontier_service_enable_project) | **POST** /v1beta1/projects/{id}/enable | Enable project +[**frontier_service_get_project**](ProjectApi.md#frontier_service_get_project) | **GET** /v1beta1/projects/{id} | Get project +[**frontier_service_list_project_admins**](ProjectApi.md#frontier_service_list_project_admins) | **GET** /v1beta1/projects/{id}/admins | List project admins +[**frontier_service_list_project_groups**](ProjectApi.md#frontier_service_list_project_groups) | **GET** /v1beta1/projects/{id}/groups | List project groups +[**frontier_service_list_project_service_users**](ProjectApi.md#frontier_service_list_project_service_users) | **GET** /v1beta1/projects/{id}/serviceusers | List project serviceusers +[**frontier_service_list_project_users**](ProjectApi.md#frontier_service_list_project_users) | **GET** /v1beta1/projects/{id}/users | List project users +[**frontier_service_update_project**](ProjectApi.md#frontier_service_update_project) | **PUT** /v1beta1/projects/{id} | Update project + + +# **admin_service_list_projects** +> V1beta1ListProjectsResponse admin_service_list_projects(org_id=org_id, state=state) + +List all projects + +Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_projects_response import V1beta1ListProjectsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + org_id = 'org_id_example' # str | The organization id to filter by. (optional) + state = 'state_example' # str | The state to filter by. It can be enabled or disabled. (optional) + + try: + # List all projects + api_response = api_instance.admin_service_list_projects(org_id=org_id, state=state) + print("The response of ProjectApi->admin_service_list_projects:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->admin_service_list_projects: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization id to filter by. | [optional] + **state** | **str**| The state to filter by. It can be enabled or disabled. | [optional] + +### Return type + +[**V1beta1ListProjectsResponse**](V1beta1ListProjectsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_project** +> V1beta1CreateProjectResponse frontier_service_create_project(body) + +Create project + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_project_response import V1beta1CreateProjectResponse +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + body = frontier_api.V1beta1ProjectRequestBody() # V1beta1ProjectRequestBody | + + try: + # Create project + api_response = api_instance.frontier_service_create_project(body) + print("The response of ProjectApi->frontier_service_create_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_create_project: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1ProjectRequestBody**](V1beta1ProjectRequestBody.md)| | + +### Return type + +[**V1beta1CreateProjectResponse**](V1beta1CreateProjectResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_project** +> object frontier_service_delete_project(id) + +Delete Project + +Delete a project all of its relations permanently. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + + try: + # Delete Project + api_response = api_instance.frontier_service_delete_project(id) + print("The response of ProjectApi->frontier_service_delete_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_delete_project: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_disable_project** +> object frontier_service_disable_project(id, body) + +Disable project + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + body = None # object | + + try: + # Disable project + api_response = api_instance.frontier_service_disable_project(id, body) + print("The response of ProjectApi->frontier_service_disable_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_disable_project: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_enable_project** +> object frontier_service_enable_project(id, body) + +Enable project + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + body = None # object | + + try: + # Enable project + api_response = api_instance.frontier_service_enable_project(id, body) + print("The response of ProjectApi->frontier_service_enable_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_enable_project: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_project** +> V1beta1GetProjectResponse frontier_service_get_project(id) + +Get project + +Returns a project by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_project_response import V1beta1GetProjectResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + + try: + # Get project + api_response = api_instance.frontier_service_get_project(id) + print("The response of ProjectApi->frontier_service_get_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_get_project: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetProjectResponse**](V1beta1GetProjectResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_project_admins** +> V1beta1ListProjectAdminsResponse frontier_service_list_project_admins(id) + +List project admins + +Returns a collection of admins of a project + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + + try: + # List project admins + api_response = api_instance.frontier_service_list_project_admins(id) + print("The response of ProjectApi->frontier_service_list_project_admins:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_list_project_admins: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListProjectAdminsResponse**](V1beta1ListProjectAdminsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_project_groups** +> V1beta1ListProjectGroupsResponse frontier_service_list_project_groups(id, with_roles=with_roles) + +List project groups + +Returns a collection of groups of a project. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_project_groups_response import V1beta1ListProjectGroupsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + with_roles = True # bool | (optional) + + try: + # List project groups + api_response = api_instance.frontier_service_list_project_groups(id, with_roles=with_roles) + print("The response of ProjectApi->frontier_service_list_project_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_list_project_groups: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **with_roles** | **bool**| | [optional] + +### Return type + +[**V1beta1ListProjectGroupsResponse**](V1beta1ListProjectGroupsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_project_service_users** +> V1beta1ListProjectServiceUsersResponse frontier_service_list_project_service_users(id, with_roles=with_roles) + +List project serviceusers + +Returns a collection of users of a project. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + with_roles = True # bool | (optional) + + try: + # List project serviceusers + api_response = api_instance.frontier_service_list_project_service_users(id, with_roles=with_roles) + print("The response of ProjectApi->frontier_service_list_project_service_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_list_project_service_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **with_roles** | **bool**| | [optional] + +### Return type + +[**V1beta1ListProjectServiceUsersResponse**](V1beta1ListProjectServiceUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_project_users** +> V1beta1ListProjectUsersResponse frontier_service_list_project_users(id, permission_filter=permission_filter, with_roles=with_roles) + +List project users + +Returns a collection of users of a project. Filter by user permissions is supported. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + permission_filter = 'permission_filter_example' # str | (optional) + with_roles = True # bool | (optional) + + try: + # List project users + api_response = api_instance.frontier_service_list_project_users(id, permission_filter=permission_filter, with_roles=with_roles) + print("The response of ProjectApi->frontier_service_list_project_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_list_project_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **permission_filter** | **str**| | [optional] + **with_roles** | **bool**| | [optional] + +### Return type + +[**V1beta1ListProjectUsersResponse**](V1beta1ListProjectUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_project** +> V1beta1UpdateProjectResponse frontier_service_update_project(id, body) + +Update project + +Updates a project by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody +from frontier_api.models.v1beta1_update_project_response import V1beta1UpdateProjectResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ProjectApi(api_client) + id = 'id_example' # str | + body = frontier_api.V1beta1ProjectRequestBody() # V1beta1ProjectRequestBody | + + try: + # Update project + api_response = api_instance.frontier_service_update_project(id, body) + print("The response of ProjectApi->frontier_service_update_project:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ProjectApi->frontier_service_update_project: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**V1beta1ProjectRequestBody**](V1beta1ProjectRequestBody.md)| | + +### Return type + +[**V1beta1UpdateProjectResponse**](V1beta1UpdateProjectResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ProtobufAny.md b/docs/ProtobufAny.md new file mode 100644 index 0000000..090f4ca --- /dev/null +++ b/docs/ProtobufAny.md @@ -0,0 +1,28 @@ +# ProtobufAny + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.protobuf_any import ProtobufAny + +# TODO update the JSON string below +json = "{}" +# create an instance of ProtobufAny from a JSON string +protobuf_any_instance = ProtobufAny.from_json(json) +# print the JSON string representation of the object +print ProtobufAny.to_json() + +# convert the object into a dict +protobuf_any_dict = protobuf_any_instance.to_dict() +# create an instance of ProtobufAny from a dict +protobuf_any_form_dict = protobuf_any.from_dict(protobuf_any_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProtobufNullValue.md b/docs/ProtobufNullValue.md new file mode 100644 index 0000000..542693c --- /dev/null +++ b/docs/ProtobufNullValue.md @@ -0,0 +1,11 @@ +# ProtobufNullValue + +`NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RelationApi.md b/docs/RelationApi.md new file mode 100644 index 0000000..280e042 --- /dev/null +++ b/docs/RelationApi.md @@ -0,0 +1,344 @@ +# frontier_api.RelationApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_list_relations**](RelationApi.md#admin_service_list_relations) | **GET** /v1beta1/admin/relations | List all relations +[**frontier_service_create_relation**](RelationApi.md#frontier_service_create_relation) | **POST** /v1beta1/relations | Create relation +[**frontier_service_delete_relation**](RelationApi.md#frontier_service_delete_relation) | **DELETE** /v1beta1/relations/{relation}/object/{object}/subject/{subject} | Delete relation +[**frontier_service_get_relation**](RelationApi.md#frontier_service_get_relation) | **GET** /v1beta1/relations/{id} | Get relation + + +# **admin_service_list_relations** +> V1beta1ListRelationsResponse admin_service_list_relations() + +List all relations + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_relations_response import V1beta1ListRelationsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RelationApi(api_client) + + try: + # List all relations + api_response = api_instance.admin_service_list_relations() + print("The response of RelationApi->admin_service_list_relations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RelationApi->admin_service_list_relations: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListRelationsResponse**](V1beta1ListRelationsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_relation** +> V1beta1CreateRelationResponse frontier_service_create_relation(body) + +Create relation + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_relation_response import V1beta1CreateRelationResponse +from frontier_api.models.v1beta1_relation_request_body import V1beta1RelationRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RelationApi(api_client) + body = frontier_api.V1beta1RelationRequestBody() # V1beta1RelationRequestBody | + + try: + # Create relation + api_response = api_instance.frontier_service_create_relation(body) + print("The response of RelationApi->frontier_service_create_relation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RelationApi->frontier_service_create_relation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1RelationRequestBody**](V1beta1RelationRequestBody.md)| | + +### Return type + +[**V1beta1CreateRelationResponse**](V1beta1CreateRelationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_relation** +> object frontier_service_delete_relation(relation, object, subject) + +Delete relation + +Remove a subject having a relation from an object + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RelationApi(api_client) + relation = 'relation_example' # str | + object = 'object_example' # str | objectnamespace:uuid + subject = 'subject_example' # str | subjectnamespace:uuid + + try: + # Delete relation + api_response = api_instance.frontier_service_delete_relation(relation, object, subject) + print("The response of RelationApi->frontier_service_delete_relation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RelationApi->frontier_service_delete_relation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **relation** | **str**| | + **object** | **str**| objectnamespace:uuid | + **subject** | **str**| subjectnamespace:uuid | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_relation** +> V1beta1GetRelationResponse frontier_service_get_relation(id) + +Get relation + +Returns a relation by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_relation_response import V1beta1GetRelationResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RelationApi(api_client) + id = 'id_example' # str | + + try: + # Get relation + api_response = api_instance.frontier_service_get_relation(id) + print("The response of RelationApi->frontier_service_get_relation:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RelationApi->frontier_service_get_relation: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetRelationResponse**](V1beta1GetRelationResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ResourceApi.md b/docs/ResourceApi.md new file mode 100644 index 0000000..841ecd5 --- /dev/null +++ b/docs/ResourceApi.md @@ -0,0 +1,537 @@ +# frontier_api.ResourceApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_list_resources**](ResourceApi.md#admin_service_list_resources) | **GET** /v1beta1/admin/resources | List all resources +[**frontier_service_create_project_resource**](ResourceApi.md#frontier_service_create_project_resource) | **POST** /v1beta1/projects/{projectId}/resources | Create resource +[**frontier_service_delete_project_resource**](ResourceApi.md#frontier_service_delete_project_resource) | **DELETE** /v1beta1/projects/{projectId}/resources/{id} | Delete resource +[**frontier_service_get_project_resource**](ResourceApi.md#frontier_service_get_project_resource) | **GET** /v1beta1/projects/{projectId}/resources/{id} | Get resource +[**frontier_service_list_project_resources**](ResourceApi.md#frontier_service_list_project_resources) | **GET** /v1beta1/projects/{projectId}/resources | Get all resources +[**frontier_service_update_project_resource**](ResourceApi.md#frontier_service_update_project_resource) | **PUT** /v1beta1/projects/{projectId}/resources/{id} | Update resource + + +# **admin_service_list_resources** +> V1beta1ListResourcesResponse admin_service_list_resources(user_id=user_id, project_id=project_id, organization_id=organization_id, namespace=namespace) + +List all resources + +Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_resources_response import V1beta1ListResourcesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ResourceApi(api_client) + user_id = 'user_id_example' # str | The user id to filter by. (optional) + project_id = 'project_id_example' # str | The project id to filter by. (optional) + organization_id = 'organization_id_example' # str | The organization id to filter by. (optional) + namespace = 'namespace_example' # str | The namespace to filter by. (optional) + + try: + # List all resources + api_response = api_instance.admin_service_list_resources(user_id=user_id, project_id=project_id, organization_id=organization_id, namespace=namespace) + print("The response of ResourceApi->admin_service_list_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceApi->admin_service_list_resources: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| The user id to filter by. | [optional] + **project_id** | **str**| The project id to filter by. | [optional] + **organization_id** | **str**| The organization id to filter by. | [optional] + **namespace** | **str**| The namespace to filter by. | [optional] + +### Return type + +[**V1beta1ListResourcesResponse**](V1beta1ListResourcesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_project_resource** +> V1beta1CreateProjectResourceResponse frontier_service_create_project_resource(project_id, body, id=id) + +Create resource + +Creates a resource in a project + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ResourceApi(api_client) + project_id = 'project_id_example' # str | project uuid or name + body = frontier_api.V1beta1ResourceRequestBody() # V1beta1ResourceRequestBody | + id = 'id_example' # str | Autogenerated if skipped. (optional) + + try: + # Create resource + api_response = api_instance.frontier_service_create_project_resource(project_id, body, id=id) + print("The response of ResourceApi->frontier_service_create_project_resource:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceApi->frontier_service_create_project_resource: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| project uuid or name | + **body** | [**V1beta1ResourceRequestBody**](V1beta1ResourceRequestBody.md)| | + **id** | **str**| Autogenerated if skipped. | [optional] + +### Return type + +[**V1beta1CreateProjectResourceResponse**](V1beta1CreateProjectResourceResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_project_resource** +> object frontier_service_delete_project_resource(project_id, id) + +Delete resource + +Deletes a resource from a project permanently + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ResourceApi(api_client) + project_id = 'project_id_example' # str | + id = 'id_example' # str | + + try: + # Delete resource + api_response = api_instance.frontier_service_delete_project_resource(project_id, id) + print("The response of ResourceApi->frontier_service_delete_project_resource:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceApi->frontier_service_delete_project_resource: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| | + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_project_resource** +> V1beta1GetProjectResourceResponse frontier_service_get_project_resource(project_id, id) + +Get resource + +Returns a project resource by ID + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ResourceApi(api_client) + project_id = 'project_id_example' # str | + id = 'id_example' # str | + + try: + # Get resource + api_response = api_instance.frontier_service_get_project_resource(project_id, id) + print("The response of ResourceApi->frontier_service_get_project_resource:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceApi->frontier_service_get_project_resource: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| | + **id** | **str**| | + +### Return type + +[**V1beta1GetProjectResourceResponse**](V1beta1GetProjectResourceResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_project_resources** +> V1beta1ListProjectResourcesResponse frontier_service_list_project_resources(project_id, namespace=namespace) + +Get all resources + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ResourceApi(api_client) + project_id = 'project_id_example' # str | + namespace = 'namespace_example' # str | (optional) + + try: + # Get all resources + api_response = api_instance.frontier_service_list_project_resources(project_id, namespace=namespace) + print("The response of ResourceApi->frontier_service_list_project_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceApi->frontier_service_list_project_resources: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| | + **namespace** | **str**| | [optional] + +### Return type + +[**V1beta1ListProjectResourcesResponse**](V1beta1ListProjectResourcesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_project_resource** +> V1beta1UpdateProjectResourceResponse frontier_service_update_project_resource(project_id, id, body) + +Update resource + +Updates a resource in a project + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody +from frontier_api.models.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ResourceApi(api_client) + project_id = 'project_id_example' # str | + id = 'id_example' # str | + body = frontier_api.V1beta1ResourceRequestBody() # V1beta1ResourceRequestBody | + + try: + # Update resource + api_response = api_instance.frontier_service_update_project_resource(project_id, id, body) + print("The response of ResourceApi->frontier_service_update_project_resource:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ResourceApi->frontier_service_update_project_resource: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| | + **id** | **str**| | + **body** | [**V1beta1ResourceRequestBody**](V1beta1ResourceRequestBody.md)| | + +### Return type + +[**V1beta1UpdateProjectResourceResponse**](V1beta1UpdateProjectResourceResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RoleApi.md b/docs/RoleApi.md new file mode 100644 index 0000000..498b8ef --- /dev/null +++ b/docs/RoleApi.md @@ -0,0 +1,793 @@ +# frontier_api.RoleApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_create_role**](RoleApi.md#admin_service_create_role) | **POST** /v1beta1/roles | Create platform role +[**admin_service_delete_role**](RoleApi.md#admin_service_delete_role) | **DELETE** /v1beta1/roles/{id} | Delete platform role +[**admin_service_update_role**](RoleApi.md#admin_service_update_role) | **PUT** /v1beta1/roles/{id} | Update role +[**frontier_service_create_organization_role**](RoleApi.md#frontier_service_create_organization_role) | **POST** /v1beta1/organizations/{orgId}/roles | Create organization role +[**frontier_service_delete_organization_role**](RoleApi.md#frontier_service_delete_organization_role) | **DELETE** /v1beta1/organizations/{orgId}/roles/{id} | Delete organization role +[**frontier_service_get_organization_role**](RoleApi.md#frontier_service_get_organization_role) | **GET** /v1beta1/organizations/{orgId}/roles/{id} | Get organization role +[**frontier_service_list_organization_roles**](RoleApi.md#frontier_service_list_organization_roles) | **GET** /v1beta1/organizations/{orgId}/roles | List organization roles +[**frontier_service_list_roles**](RoleApi.md#frontier_service_list_roles) | **GET** /v1beta1/roles | List platform roles +[**frontier_service_update_organization_role**](RoleApi.md#frontier_service_update_organization_role) | **PUT** /v1beta1/organizations/{orgId}/roles/{id} | Update organization role + + +# **admin_service_create_role** +> V1beta1CreateRoleResponse admin_service_create_role(body) + +Create platform role + +Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_role_response import V1beta1CreateRoleResponse +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + body = frontier_api.V1beta1RoleRequestBody() # V1beta1RoleRequestBody | + + try: + # Create platform role + api_response = api_instance.admin_service_create_role(body) + print("The response of RoleApi->admin_service_create_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->admin_service_create_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1RoleRequestBody**](V1beta1RoleRequestBody.md)| | + +### Return type + +[**V1beta1CreateRoleResponse**](V1beta1CreateRoleResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_service_delete_role** +> object admin_service_delete_role(id) + +Delete platform role + +Delete a platform wide role and all of its relations. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + id = 'id_example' # str | The role id to delete. + + try: + # Delete platform role + api_response = api_instance.admin_service_delete_role(id) + print("The response of RoleApi->admin_service_delete_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->admin_service_delete_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The role id to delete. | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_service_update_role** +> V1beta1UpdateRoleResponse admin_service_update_role(id, body) + +Update role + +Update a role title, description and permissions. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.models.v1beta1_update_role_response import V1beta1UpdateRoleResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + id = 'id_example' # str | The role id to update. + body = frontier_api.V1beta1RoleRequestBody() # V1beta1RoleRequestBody | + + try: + # Update role + api_response = api_instance.admin_service_update_role(id, body) + print("The response of RoleApi->admin_service_update_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->admin_service_update_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The role id to update. | + **body** | [**V1beta1RoleRequestBody**](V1beta1RoleRequestBody.md)| | + +### Return type + +[**V1beta1UpdateRoleResponse**](V1beta1UpdateRoleResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_organization_role** +> V1beta1CreateOrganizationRoleResponse frontier_service_create_organization_role(org_id, body) + +Create organization role + +Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + org_id = 'org_id_example' # str | The organization ID to which the role belongs to. + body = frontier_api.V1beta1RoleRequestBody() # V1beta1RoleRequestBody | + + try: + # Create organization role + api_response = api_instance.frontier_service_create_organization_role(org_id, body) + print("The response of RoleApi->frontier_service_create_organization_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->frontier_service_create_organization_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization ID to which the role belongs to. | + **body** | [**V1beta1RoleRequestBody**](V1beta1RoleRequestBody.md)| | + +### Return type + +[**V1beta1CreateOrganizationRoleResponse**](V1beta1CreateOrganizationRoleResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_organization_role** +> object frontier_service_delete_organization_role(org_id, id) + +Delete organization role + +Delete a custom role and all of its relations under an organization permanently. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Delete organization role + api_response = api_instance.frontier_service_delete_organization_role(org_id, id) + print("The response of RoleApi->frontier_service_delete_organization_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->frontier_service_delete_organization_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_organization_role** +> V1beta1GetOrganizationRoleResponse frontier_service_get_organization_role(org_id, id) + +Get organization role + +Returns a custom role under an organization along with its associated permissions + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + + try: + # Get organization role + api_response = api_instance.frontier_service_get_organization_role(org_id, id) + print("The response of RoleApi->frontier_service_get_organization_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->frontier_service_get_organization_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + +### Return type + +[**V1beta1GetOrganizationRoleResponse**](V1beta1GetOrganizationRoleResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organization_roles** +> V1beta1ListOrganizationRolesResponse frontier_service_list_organization_roles(org_id, state=state, scopes=scopes) + +List organization roles + +Returns a list of custom roles created under an organization with their associated permissions + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + org_id = 'org_id_example' # str | + state = 'state_example' # str | (optional) + scopes = ['scopes_example'] # List[str] | (optional) + + try: + # List organization roles + api_response = api_instance.frontier_service_list_organization_roles(org_id, state=state, scopes=scopes) + print("The response of RoleApi->frontier_service_list_organization_roles:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->frontier_service_list_organization_roles: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **state** | **str**| | [optional] + **scopes** | [**List[str]**](str.md)| | [optional] + +### Return type + +[**V1beta1ListOrganizationRolesResponse**](V1beta1ListOrganizationRolesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_roles** +> V1beta1ListRolesResponse frontier_service_list_roles(state=state, scopes=scopes) + +List platform roles + +Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_roles_response import V1beta1ListRolesResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + state = 'state_example' # str | (optional) + scopes = ['scopes_example'] # List[str] | (optional) + + try: + # List platform roles + api_response = api_instance.frontier_service_list_roles(state=state, scopes=scopes) + print("The response of RoleApi->frontier_service_list_roles:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->frontier_service_list_roles: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **state** | **str**| | [optional] + **scopes** | [**List[str]**](str.md)| | [optional] + +### Return type + +[**V1beta1ListRolesResponse**](V1beta1ListRolesResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_organization_role** +> V1beta1UpdateOrganizationRoleResponse frontier_service_update_organization_role(org_id, id, body) + +Update organization role + +Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.models.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.RoleApi(api_client) + org_id = 'org_id_example' # str | + id = 'id_example' # str | + body = frontier_api.V1beta1RoleRequestBody() # V1beta1RoleRequestBody | + + try: + # Update organization role + api_response = api_instance.frontier_service_update_organization_role(org_id, id, body) + print("The response of RoleApi->frontier_service_update_organization_role:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling RoleApi->frontier_service_update_organization_role: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **id** | **str**| | + **body** | [**V1beta1RoleRequestBody**](V1beta1RoleRequestBody.md)| | + +### Return type + +[**V1beta1UpdateOrganizationRoleResponse**](V1beta1UpdateOrganizationRoleResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RpcStatus.md b/docs/RpcStatus.md new file mode 100644 index 0000000..5e0cea2 --- /dev/null +++ b/docs/RpcStatus.md @@ -0,0 +1,30 @@ +# RpcStatus + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **int** | | [optional] +**message** | **str** | | [optional] +**details** | [**List[ProtobufAny]**](ProtobufAny.md) | | [optional] + +## Example + +```python +from frontier_api.models.rpc_status import RpcStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of RpcStatus from a JSON string +rpc_status_instance = RpcStatus.from_json(json) +# print the JSON string representation of the object +print RpcStatus.to_json() + +# convert the object into a dict +rpc_status_dict = rpc_status_instance.to_dict() +# create an instance of RpcStatus from a dict +rpc_status_form_dict = rpc_status.from_dict(rpc_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceUserApi.md b/docs/ServiceUserApi.md new file mode 100644 index 0000000..11bf2f7 --- /dev/null +++ b/docs/ServiceUserApi.md @@ -0,0 +1,957 @@ +# frontier_api.ServiceUserApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_service_user**](ServiceUserApi.md#frontier_service_create_service_user) | **POST** /v1beta1/serviceusers | Create service user +[**frontier_service_create_service_user_key**](ServiceUserApi.md#frontier_service_create_service_user_key) | **POST** /v1beta1/serviceusers/{id}/keys | Create service user key +[**frontier_service_create_service_user_secret**](ServiceUserApi.md#frontier_service_create_service_user_secret) | **POST** /v1beta1/serviceusers/{id}/secrets | Create service user secret +[**frontier_service_delete_service_user**](ServiceUserApi.md#frontier_service_delete_service_user) | **DELETE** /v1beta1/serviceusers/{id} | Delete service user +[**frontier_service_delete_service_user_key**](ServiceUserApi.md#frontier_service_delete_service_user_key) | **DELETE** /v1beta1/serviceusers/{id}/keys/{keyId} | Delete service user key +[**frontier_service_delete_service_user_secret**](ServiceUserApi.md#frontier_service_delete_service_user_secret) | **DELETE** /v1beta1/serviceusers/{id}/secrets/{secretId} | Delete service user secret +[**frontier_service_get_service_user**](ServiceUserApi.md#frontier_service_get_service_user) | **GET** /v1beta1/serviceusers/{id} | Get service user +[**frontier_service_get_service_user_key**](ServiceUserApi.md#frontier_service_get_service_user_key) | **GET** /v1beta1/serviceusers/{id}/keys/{keyId} | Get service user key +[**frontier_service_list_service_user_keys**](ServiceUserApi.md#frontier_service_list_service_user_keys) | **GET** /v1beta1/serviceusers/{id}/keys | List service user keys +[**frontier_service_list_service_user_secrets**](ServiceUserApi.md#frontier_service_list_service_user_secrets) | **GET** /v1beta1/serviceusers/{id}/secrets | List service user secrets +[**frontier_service_list_service_users**](ServiceUserApi.md#frontier_service_list_service_users) | **GET** /v1beta1/serviceusers | List org service users + + +# **frontier_service_create_service_user** +> V1beta1CreateServiceUserResponse frontier_service_create_service_user(body) + +Create service user + +Create a service user. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest +from frontier_api.models.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + body = frontier_api.V1beta1CreateServiceUserRequest() # V1beta1CreateServiceUserRequest | + + try: + # Create service user + api_response = api_instance.frontier_service_create_service_user(body) + print("The response of ServiceUserApi->frontier_service_create_service_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_create_service_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1CreateServiceUserRequest**](V1beta1CreateServiceUserRequest.md)| | + +### Return type + +[**V1beta1CreateServiceUserResponse**](V1beta1CreateServiceUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_service_user_key** +> V1beta1CreateServiceUserKeyResponse frontier_service_create_service_user_key(id, body) + +Create service user key + +Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest +from frontier_api.models.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to create a key for. + body = frontier_api.FrontierServiceCreateServiceUserKeyRequest() # FrontierServiceCreateServiceUserKeyRequest | + + try: + # Create service user key + api_response = api_instance.frontier_service_create_service_user_key(id, body) + print("The response of ServiceUserApi->frontier_service_create_service_user_key:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_create_service_user_key: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to create a key for. | + **body** | [**FrontierServiceCreateServiceUserKeyRequest**](FrontierServiceCreateServiceUserKeyRequest.md)| | + +### Return type + +[**V1beta1CreateServiceUserKeyResponse**](V1beta1CreateServiceUserKeyResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_service_user_secret** +> V1beta1CreateServiceUserSecretResponse frontier_service_create_service_user_secret(id, body) + +Create service user secret + +Generate a service user secret and return it. The secret value will not be persisted and should be securely stored by client. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest +from frontier_api.models.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to create a key for. + body = frontier_api.FrontierServiceCreateServiceUserKeyRequest() # FrontierServiceCreateServiceUserKeyRequest | + + try: + # Create service user secret + api_response = api_instance.frontier_service_create_service_user_secret(id, body) + print("The response of ServiceUserApi->frontier_service_create_service_user_secret:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_create_service_user_secret: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to create a key for. | + **body** | [**FrontierServiceCreateServiceUserKeyRequest**](FrontierServiceCreateServiceUserKeyRequest.md)| | + +### Return type + +[**V1beta1CreateServiceUserSecretResponse**](V1beta1CreateServiceUserSecretResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_service_user** +> object frontier_service_delete_service_user(id, org_id=org_id) + +Delete service user + +Delete a service user permanently and all of its relations (keys, organizations, roles, etc) + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to delete. + org_id = 'org_id_example' # str | (optional) + + try: + # Delete service user + api_response = api_instance.frontier_service_delete_service_user(id, org_id=org_id) + print("The response of ServiceUserApi->frontier_service_delete_service_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_delete_service_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to delete. | + **org_id** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_service_user_key** +> object frontier_service_delete_service_user_key(id, key_id) + +Delete service user key + +Delete a service user key permanently. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to delete a key for. + key_id = 'key_id_example' # str | The unique ID of the key to delete. + + try: + # Delete service user key + api_response = api_instance.frontier_service_delete_service_user_key(id, key_id) + print("The response of ServiceUserApi->frontier_service_delete_service_user_key:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_delete_service_user_key: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to delete a key for. | + **key_id** | **str**| The unique ID of the key to delete. | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_service_user_secret** +> object frontier_service_delete_service_user_secret(id, secret_id) + +Delete service user secret + +Delete a service user secret credential. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to delete a secret for. + secret_id = 'secret_id_example' # str | The unique ID of the secret to delete. + + try: + # Delete service user secret + api_response = api_instance.frontier_service_delete_service_user_secret(id, secret_id) + print("The response of ServiceUserApi->frontier_service_delete_service_user_secret:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_delete_service_user_secret: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to delete a secret for. | + **secret_id** | **str**| The unique ID of the secret to delete. | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_service_user** +> V1beta1GetServiceUserResponse frontier_service_get_service_user(id) + +Get service user + +Get service user details by its id. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to get. + + try: + # Get service user + api_response = api_instance.frontier_service_get_service_user(id) + print("The response of ServiceUserApi->frontier_service_get_service_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_get_service_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to get. | + +### Return type + +[**V1beta1GetServiceUserResponse**](V1beta1GetServiceUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_service_user_key** +> V1beta1GetServiceUserKeyResponse frontier_service_get_service_user_key(id, key_id) + +Get service user key + +Get a service user public RSA JWK set. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to get a key for. + key_id = 'key_id_example' # str | The unique ID of the key to get. + + try: + # Get service user key + api_response = api_instance.frontier_service_get_service_user_key(id, key_id) + print("The response of ServiceUserApi->frontier_service_get_service_user_key:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_get_service_user_key: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to get a key for. | + **key_id** | **str**| The unique ID of the key to get. | + +### Return type + +[**V1beta1GetServiceUserKeyResponse**](V1beta1GetServiceUserKeyResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_service_user_keys** +> V1beta1ListServiceUserKeysResponse frontier_service_list_service_user_keys(id) + +List service user keys + +List all the keys of a service user with its details except jwk. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to list keys for. + + try: + # List service user keys + api_response = api_instance.frontier_service_list_service_user_keys(id) + print("The response of ServiceUserApi->frontier_service_list_service_user_keys:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_list_service_user_keys: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to list keys for. | + +### Return type + +[**V1beta1ListServiceUserKeysResponse**](V1beta1ListServiceUserKeysResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_service_user_secrets** +> V1beta1ListServiceUserSecretsResponse frontier_service_list_service_user_secrets(id) + +List service user secrets + +List all the secrets of a service user. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + id = 'id_example' # str | The unique ID of the service user to list secrets for. + + try: + # List service user secrets + api_response = api_instance.frontier_service_list_service_user_secrets(id) + print("The response of ServiceUserApi->frontier_service_list_service_user_secrets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_list_service_user_secrets: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the service user to list secrets for. | + +### Return type + +[**V1beta1ListServiceUserSecretsResponse**](V1beta1ListServiceUserSecretsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_service_users** +> V1beta1ListServiceUsersResponse frontier_service_list_service_users(org_id, state=state) + +List org service users + +Returns the service user of an organization in a Frontier instance. It can be filter by it's state + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.ServiceUserApi(api_client) + org_id = 'org_id_example' # str | The organization ID to filter service users by. + state = 'state_example' # str | The state to filter by. It can be enabled or disabled. (optional) + + try: + # List org service users + api_response = api_instance.frontier_service_list_service_users(org_id, state=state) + print("The response of ServiceUserApi->frontier_service_list_service_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ServiceUserApi->frontier_service_list_service_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| The organization ID to filter service users by. | + **state** | **str**| The state to filter by. It can be enabled or disabled. | [optional] + +### Return type + +[**V1beta1ListServiceUsersResponse**](V1beta1ListServiceUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SubscriptionApi.md b/docs/SubscriptionApi.md new file mode 100644 index 0000000..20a2c39 --- /dev/null +++ b/docs/SubscriptionApi.md @@ -0,0 +1,364 @@ +# frontier_api.SubscriptionApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_cancel_subscription**](SubscriptionApi.md#frontier_service_cancel_subscription) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id}/cancel | Cancel subscription +[**frontier_service_get_subscription**](SubscriptionApi.md#frontier_service_get_subscription) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id} | Get subscription +[**frontier_service_list_subscriptions**](SubscriptionApi.md#frontier_service_list_subscriptions) | **GET** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions | List subscriptions +[**frontier_service_update_subscription**](SubscriptionApi.md#frontier_service_update_subscription) | **PUT** /v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id} | Update subscription + + +# **frontier_service_cancel_subscription** +> object frontier_service_cancel_subscription(org_id, billing_id, id) + +Cancel subscription + +Cancel a subscription by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.SubscriptionApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + id = 'id_example' # str | ID of the subscription to cancel + + try: + # Cancel subscription + api_response = api_instance.frontier_service_cancel_subscription(org_id, billing_id, id) + print("The response of SubscriptionApi->frontier_service_cancel_subscription:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SubscriptionApi->frontier_service_cancel_subscription: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to update the subscription for | + **id** | **str**| ID of the subscription to cancel | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_subscription** +> V1beta1GetSubscriptionResponse frontier_service_get_subscription(org_id, billing_id, id) + +Get subscription + +Get a subscription by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_subscription_response import V1beta1GetSubscriptionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.SubscriptionApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to get the subscription for + id = 'id_example' # str | ID of the subscription to get + + try: + # Get subscription + api_response = api_instance.frontier_service_get_subscription(org_id, billing_id, id) + print("The response of SubscriptionApi->frontier_service_get_subscription:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SubscriptionApi->frontier_service_get_subscription: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to get the subscription for | + **id** | **str**| ID of the subscription to get | + +### Return type + +[**V1beta1GetSubscriptionResponse**](V1beta1GetSubscriptionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_subscriptions** +> V1beta1ListSubscriptionsResponse frontier_service_list_subscriptions(org_id, billing_id) + +List subscriptions + +List subscriptions of a billing account. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_subscriptions_response import V1beta1ListSubscriptionsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.SubscriptionApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to list subscriptions for + + try: + # List subscriptions + api_response = api_instance.frontier_service_list_subscriptions(org_id, billing_id) + print("The response of SubscriptionApi->frontier_service_list_subscriptions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SubscriptionApi->frontier_service_list_subscriptions: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to list subscriptions for | + +### Return type + +[**V1beta1ListSubscriptionsResponse**](V1beta1ListSubscriptionsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_subscription** +> V1beta1UpdateSubscriptionResponse frontier_service_update_subscription(org_id, billing_id, id, body) + +Update subscription + +Update a subscription by ID. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_update_subscription_request import FrontierServiceUpdateSubscriptionRequest +from frontier_api.models.v1beta1_update_subscription_response import V1beta1UpdateSubscriptionResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.SubscriptionApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + id = 'id_example' # str | ID of the subscription to update + body = frontier_api.FrontierServiceUpdateSubscriptionRequest() # FrontierServiceUpdateSubscriptionRequest | + + try: + # Update subscription + api_response = api_instance.frontier_service_update_subscription(org_id, billing_id, id, body) + print("The response of SubscriptionApi->frontier_service_update_subscription:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SubscriptionApi->frontier_service_update_subscription: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to update the subscription for | + **id** | **str**| ID of the subscription to update | + **body** | [**FrontierServiceUpdateSubscriptionRequest**](FrontierServiceUpdateSubscriptionRequest.md)| | + +### Return type + +[**V1beta1UpdateSubscriptionResponse**](V1beta1UpdateSubscriptionResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TransactionApi.md b/docs/TransactionApi.md new file mode 100644 index 0000000..1196b5b --- /dev/null +++ b/docs/TransactionApi.md @@ -0,0 +1,97 @@ +# frontier_api.TransactionApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_list_billing_transactions**](TransactionApi.md#frontier_service_list_billing_transactions) | **GET** /v1beta1/billing/{billingId}/transactions | List billing transactions + + +# **frontier_service_list_billing_transactions** +> V1beta1ListBillingTransactionsResponse frontier_service_list_billing_transactions(billing_id, org_id=org_id, since=since) + +List billing transactions + +List all transactions of a billing account. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_billing_transactions_response import V1beta1ListBillingTransactionsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.TransactionApi(api_client) + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + org_id = 'org_id_example' # str | (optional) + since = '2013-10-20T19:20:30+01:00' # datetime | (optional) + + try: + # List billing transactions + api_response = api_instance.frontier_service_list_billing_transactions(billing_id, org_id=org_id, since=since) + print("The response of TransactionApi->frontier_service_list_billing_transactions:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TransactionApi->frontier_service_list_billing_transactions: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **billing_id** | **str**| ID of the billing account to update the subscription for | + **org_id** | **str**| | [optional] + **since** | **datetime**| | [optional] + +### Return type + +[**V1beta1ListBillingTransactionsResponse**](V1beta1ListBillingTransactionsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UsageApi.md b/docs/UsageApi.md new file mode 100644 index 0000000..fa501c2 --- /dev/null +++ b/docs/UsageApi.md @@ -0,0 +1,97 @@ +# frontier_api.UsageApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**frontier_service_create_billing_usage**](UsageApi.md#frontier_service_create_billing_usage) | **POST** /v1beta1/organizations/{orgId}/billing/{billingId}/usages | Create billing usage + + +# **frontier_service_create_billing_usage** +> object frontier_service_create_billing_usage(org_id, billing_id, body) + +Create billing usage + +Report a new billing usage for a billing account. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.frontier_service_create_billing_usage_request import FrontierServiceCreateBillingUsageRequest +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UsageApi(api_client) + org_id = 'org_id_example' # str | + billing_id = 'billing_id_example' # str | ID of the billing account to update the subscription for + body = frontier_api.FrontierServiceCreateBillingUsageRequest() # FrontierServiceCreateBillingUsageRequest | + + try: + # Create billing usage + api_response = api_instance.frontier_service_create_billing_usage(org_id, billing_id, body) + print("The response of UsageApi->frontier_service_create_billing_usage:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsageApi->frontier_service_create_billing_usage: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| | + **billing_id** | **str**| ID of the billing account to update the subscription for | + **body** | [**FrontierServiceCreateBillingUsageRequest**](FrontierServiceCreateBillingUsageRequest.md)| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UserApi.md b/docs/UserApi.md new file mode 100644 index 0000000..ba18222 --- /dev/null +++ b/docs/UserApi.md @@ -0,0 +1,1543 @@ +# frontier_api.UserApi + +All URIs are relative to *http://127.0.0.1:7400* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**admin_service_list_all_users**](UserApi.md#admin_service_list_all_users) | **GET** /v1beta1/admin/users | List all users +[**frontier_service_create_user**](UserApi.md#frontier_service_create_user) | **POST** /v1beta1/users | Create user +[**frontier_service_delete_user**](UserApi.md#frontier_service_delete_user) | **DELETE** /v1beta1/users/{id} | Delete user +[**frontier_service_disable_user**](UserApi.md#frontier_service_disable_user) | **POST** /v1beta1/users/{id}/disable | Disable user +[**frontier_service_enable_user**](UserApi.md#frontier_service_enable_user) | **POST** /v1beta1/users/{id}/enable | Enable user +[**frontier_service_get_current_user**](UserApi.md#frontier_service_get_current_user) | **GET** /v1beta1/users/self | Get current user +[**frontier_service_get_user**](UserApi.md#frontier_service_get_user) | **GET** /v1beta1/users/{id} | Get user +[**frontier_service_list_current_user_groups**](UserApi.md#frontier_service_list_current_user_groups) | **GET** /v1beta1/users/self/groups | List my groups +[**frontier_service_list_current_user_invitations**](UserApi.md#frontier_service_list_current_user_invitations) | **GET** /v1beta1/users/self/invitations | List user invitations +[**frontier_service_list_organizations_by_current_user**](UserApi.md#frontier_service_list_organizations_by_current_user) | **GET** /v1beta1/users/self/organizations | Get my organizations +[**frontier_service_list_organizations_by_user**](UserApi.md#frontier_service_list_organizations_by_user) | **GET** /v1beta1/users/{id}/organizations | Get user organizations +[**frontier_service_list_projects_by_current_user**](UserApi.md#frontier_service_list_projects_by_current_user) | **GET** /v1beta1/users/self/projects | Get my projects +[**frontier_service_list_projects_by_user**](UserApi.md#frontier_service_list_projects_by_user) | **GET** /v1beta1/users/{id}/projects | Get user projects +[**frontier_service_list_user_groups**](UserApi.md#frontier_service_list_user_groups) | **GET** /v1beta1/users/{id}/groups | List user groups +[**frontier_service_list_user_invitations**](UserApi.md#frontier_service_list_user_invitations) | **GET** /v1beta1/users/{id}/invitations | List user invitations +[**frontier_service_list_users**](UserApi.md#frontier_service_list_users) | **GET** /v1beta1/users | List public users +[**frontier_service_update_current_user**](UserApi.md#frontier_service_update_current_user) | **PUT** /v1beta1/users/self | Update current user +[**frontier_service_update_user**](UserApi.md#frontier_service_update_user) | **PUT** /v1beta1/users/{id} | Update user + + +# **admin_service_list_all_users** +> V1beta1ListAllUsersResponse admin_service_list_all_users(page_size=page_size, page_num=page_num, keyword=keyword, org_id=org_id, group_id=group_id, state=state) + +List all users + +Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + page_size = 56 # int | The maximum number of users to return per page. The default is 50. (optional) + page_num = 56 # int | The page number to return. The default is 1. (optional) + keyword = 'keyword_example' # str | The keyword to search for. It can be a user's name, email,metadata or id. (optional) + org_id = 'org_id_example' # str | The organization id to filter by. (optional) + group_id = 'group_id_example' # str | The group id to filter by. (optional) + state = 'state_example' # str | The state to filter by. It can be enabled or disabled. (optional) + + try: + # List all users + api_response = api_instance.admin_service_list_all_users(page_size=page_size, page_num=page_num, keyword=keyword, org_id=org_id, group_id=group_id, state=state) + print("The response of UserApi->admin_service_list_all_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->admin_service_list_all_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_size** | **int**| The maximum number of users to return per page. The default is 50. | [optional] + **page_num** | **int**| The page number to return. The default is 1. | [optional] + **keyword** | **str**| The keyword to search for. It can be a user's name, email,metadata or id. | [optional] + **org_id** | **str**| The organization id to filter by. | [optional] + **group_id** | **str**| The group id to filter by. | [optional] + **state** | **str**| The state to filter by. It can be enabled or disabled. | [optional] + +### Return type + +[**V1beta1ListAllUsersResponse**](V1beta1ListAllUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_create_user** +> V1beta1CreateUserResponse frontier_service_create_user(body) + +Create user + +Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name.

*Example:*`{\"email\":\"john.doe@raystack.org\",\"title\":\"John Doe\",metadata:{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}}` + +### Example + +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_create_user_response import V1beta1CreateUserResponse +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + body = frontier_api.V1beta1UserRequestBody() # V1beta1UserRequestBody | + + try: + # Create user + api_response = api_instance.frontier_service_create_user(body) + print("The response of UserApi->frontier_service_create_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_create_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1UserRequestBody**](V1beta1UserRequestBody.md)| | + +### Return type + +[**V1beta1CreateUserResponse**](V1beta1CreateUserResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_delete_user** +> object frontier_service_delete_user(id) + +Delete user + +Delete an user permanently forever and all of its relations (organizations, groups, etc) + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + + try: + # Delete user + api_response = api_instance.frontier_service_delete_user(id) + print("The response of UserApi->frontier_service_delete_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_delete_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_disable_user** +> object frontier_service_disable_user(id, body) + +Disable user + +Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + body = None # object | + + try: + # Disable user + api_response = api_instance.frontier_service_disable_user(id, body) + print("The response of UserApi->frontier_service_disable_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_disable_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_enable_user** +> object frontier_service_enable_user(id, body) + +Enable user + +Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + body = None # object | + + try: + # Enable user + api_response = api_instance.frontier_service_enable_user(id, body) + print("The response of UserApi->frontier_service_enable_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_enable_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | **object**| | + +### Return type + +**object** + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_current_user** +> V1beta1GetCurrentUserResponse frontier_service_get_current_user() + +Get current user + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + + try: + # Get current user + api_response = api_instance.frontier_service_get_current_user() + print("The response of UserApi->frontier_service_get_current_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_get_current_user: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1GetCurrentUserResponse**](V1beta1GetCurrentUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_get_user** +> V1beta1GetUserResponse frontier_service_get_user(id) + +Get user + +Get a user by id searched over all organizations in Frontier. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_get_user_response import V1beta1GetUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + + try: + # Get user + api_response = api_instance.frontier_service_get_user(id) + print("The response of UserApi->frontier_service_get_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_get_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1GetUserResponse**](V1beta1GetUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_current_user_groups** +> V1beta1ListCurrentUserGroupsResponse frontier_service_list_current_user_groups(org_id=org_id, with_permissions=with_permissions) + +List my groups + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + org_id = 'org_id_example' # str | org_id is optional filter over an organization (optional) + with_permissions = ['with_permissions_example'] # List[str] | (optional) + + try: + # List my groups + api_response = api_instance.frontier_service_list_current_user_groups(org_id=org_id, with_permissions=with_permissions) + print("The response of UserApi->frontier_service_list_current_user_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_current_user_groups: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| org_id is optional filter over an organization | [optional] + **with_permissions** | [**List[str]**](str.md)| | [optional] + +### Return type + +[**V1beta1ListCurrentUserGroupsResponse**](V1beta1ListCurrentUserGroupsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_current_user_invitations** +> V1beta1ListCurrentUserInvitationsResponse frontier_service_list_current_user_invitations() + +List user invitations + +List all the invitations sent to current user. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_current_user_invitations_response import V1beta1ListCurrentUserInvitationsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + + try: + # List user invitations + api_response = api_instance.frontier_service_list_current_user_invitations() + print("The response of UserApi->frontier_service_list_current_user_invitations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_current_user_invitations: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1beta1ListCurrentUserInvitationsResponse**](V1beta1ListCurrentUserInvitationsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organizations_by_current_user** +> V1beta1ListOrganizationsByCurrentUserResponse frontier_service_list_organizations_by_current_user(state=state) + +Get my organizations + +This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + state = 'state_example' # str | (optional) + + try: + # Get my organizations + api_response = api_instance.frontier_service_list_organizations_by_current_user(state=state) + print("The response of UserApi->frontier_service_list_organizations_by_current_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_organizations_by_current_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **state** | **str**| | [optional] + +### Return type + +[**V1beta1ListOrganizationsByCurrentUserResponse**](V1beta1ListOrganizationsByCurrentUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_organizations_by_user** +> V1beta1ListOrganizationsByUserResponse frontier_service_list_organizations_by_user(id) + +Get user organizations + +This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + + try: + # Get user organizations + api_response = api_instance.frontier_service_list_organizations_by_user(id) + print("The response of UserApi->frontier_service_list_organizations_by_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_organizations_by_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListOrganizationsByUserResponse**](V1beta1ListOrganizationsByUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_projects_by_current_user** +> V1beta1ListProjectsByCurrentUserResponse frontier_service_list_projects_by_current_user(org_id=org_id, with_permissions=with_permissions) + +Get my projects + +Get all projects the current user belongs to + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + org_id = 'org_id_example' # str | org_id is optional and filter projects by org (optional) + with_permissions = ['with_permissions_example'] # List[str] | list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array (optional) + + try: + # Get my projects + api_response = api_instance.frontier_service_list_projects_by_current_user(org_id=org_id, with_permissions=with_permissions) + print("The response of UserApi->frontier_service_list_projects_by_current_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_projects_by_current_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **org_id** | **str**| org_id is optional and filter projects by org | [optional] + **with_permissions** | [**List[str]**](str.md)| list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array | [optional] + +### Return type + +[**V1beta1ListProjectsByCurrentUserResponse**](V1beta1ListProjectsByCurrentUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_projects_by_user** +> V1beta1ListProjectsByUserResponse frontier_service_list_projects_by_user(id) + +Get user projects + +Get all the projects a user belongs to. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + + try: + # Get user projects + api_response = api_instance.frontier_service_list_projects_by_user(id) + print("The response of UserApi->frontier_service_list_projects_by_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_projects_by_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**V1beta1ListProjectsByUserResponse**](V1beta1ListProjectsByUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_user_groups** +> V1beta1ListUserGroupsResponse frontier_service_list_user_groups(id, org_id=org_id) + +List user groups + +Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | The unique ID of the user to get groups for. + org_id = 'org_id_example' # str | The organization ID to filter groups by. If not provided, groups from all organizations are returned. (optional) + + try: + # List user groups + api_response = api_instance.frontier_service_list_user_groups(id, org_id=org_id) + print("The response of UserApi->frontier_service_list_user_groups:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_user_groups: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The unique ID of the user to get groups for. | + **org_id** | **str**| The organization ID to filter groups by. If not provided, groups from all organizations are returned. | [optional] + +### Return type + +[**V1beta1ListUserGroupsResponse**](V1beta1ListUserGroupsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_user_invitations** +> V1beta1ListUserInvitationsResponse frontier_service_list_user_invitations(id) + +List user invitations + +List all the invitations sent to a user. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | The user email to list the invitations for. + + try: + # List user invitations + api_response = api_instance.frontier_service_list_user_invitations(id) + print("The response of UserApi->frontier_service_list_user_invitations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_user_invitations: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The user email to list the invitations for. | + +### Return type + +[**V1beta1ListUserInvitationsResponse**](V1beta1ListUserInvitationsResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_list_users** +> V1beta1ListUsersResponse frontier_service_list_users(page_size=page_size, page_num=page_num, keyword=keyword, org_id=org_id, group_id=group_id, state=state) + +List public users + +Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination. + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_list_users_response import V1beta1ListUsersResponse +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + page_size = 56 # int | The maximum number of users to return per page. The default is 50. (optional) + page_num = 56 # int | The page number to return. The default is 1. (optional) + keyword = 'keyword_example' # str | The keyword to search for in name or email. (optional) + org_id = 'org_id_example' # str | The organization ID to filter users by. (optional) + group_id = 'group_id_example' # str | The group id to filter by. (optional) + state = 'state_example' # str | The state to filter by. It can be enabled or disabled. (optional) + + try: + # List public users + api_response = api_instance.frontier_service_list_users(page_size=page_size, page_num=page_num, keyword=keyword, org_id=org_id, group_id=group_id, state=state) + print("The response of UserApi->frontier_service_list_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_list_users: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page_size** | **int**| The maximum number of users to return per page. The default is 50. | [optional] + **page_num** | **int**| The page number to return. The default is 1. | [optional] + **keyword** | **str**| The keyword to search for in name or email. | [optional] + **org_id** | **str**| The organization ID to filter users by. | [optional] + **group_id** | **str**| The group id to filter by. | [optional] + **state** | **str**| The state to filter by. It can be enabled or disabled. | [optional] + +### Return type + +[**V1beta1ListUsersResponse**](V1beta1ListUsersResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_current_user** +> V1beta1UpdateCurrentUserResponse frontier_service_update_current_user(body) + +Update current user + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + body = frontier_api.V1beta1UserRequestBody() # V1beta1UserRequestBody | + + try: + # Update current user + api_response = api_instance.frontier_service_update_current_user(body) + print("The response of UserApi->frontier_service_update_current_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_update_current_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1UserRequestBody**](V1beta1UserRequestBody.md)| | + +### Return type + +[**V1beta1UpdateCurrentUserResponse**](V1beta1UpdateCurrentUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **frontier_service_update_user** +> V1beta1UpdateUserResponse frontier_service_update_user(id, body) + +Update user + +### Example + +* Basic Authentication (Basic): +```python +import time +import os +import frontier_api +from frontier_api.models.v1beta1_update_user_response import V1beta1UpdateUserResponse +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody +from frontier_api.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = frontier_api.Configuration( + host = "http://127.0.0.1:7400" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure HTTP basic authorization: Basic +configuration = frontier_api.Configuration( + username = os.environ["USERNAME"], + password = os.environ["PASSWORD"] +) + +# Enter a context with an instance of the API client +with frontier_api.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = frontier_api.UserApi(api_client) + id = 'id_example' # str | + body = frontier_api.V1beta1UserRequestBody() # V1beta1UserRequestBody | + + try: + # Update user + api_response = api_instance.frontier_service_update_user(id, body) + print("The response of UserApi->frontier_service_update_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserApi->frontier_service_update_user: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**V1beta1UserRequestBody**](V1beta1UserRequestBody.md)| | + +### Return type + +[**V1beta1UpdateUserResponse**](V1beta1UpdateUserResponse.md) + +### Authorization + +[Basic](../README.md#Basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A successful response. | - | +**400** | Bad Request - The request was malformed or contained invalid parameters. | - | +**401** | Unauthorized - Authentication is required | - | +**403** | Forbidden - User does not have permission to access the resource | - | +**404** | Not Found - The requested resource was not found | - | +**500** | Internal Server Error. Returned when theres is something wrong with Frontier server. | - | +**0** | An unexpected error response. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/V1beta1AddPlatformUserRequest.md b/docs/V1beta1AddPlatformUserRequest.md new file mode 100644 index 0000000..bb6ec7f --- /dev/null +++ b/docs/V1beta1AddPlatformUserRequest.md @@ -0,0 +1,30 @@ +# V1beta1AddPlatformUserRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | The user id to add to the platform. | [optional] +**serviceuser_id** | **str** | The service user id to add to the platform. | [optional] +**relation** | **str** | The relation to add as in the platform. It can be admin or member. | + +## Example + +```python +from frontier_api.models.v1beta1_add_platform_user_request import V1beta1AddPlatformUserRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AddPlatformUserRequest from a JSON string +v1beta1_add_platform_user_request_instance = V1beta1AddPlatformUserRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1AddPlatformUserRequest.to_json() + +# convert the object into a dict +v1beta1_add_platform_user_request_dict = v1beta1_add_platform_user_request_instance.to_dict() +# create an instance of V1beta1AddPlatformUserRequest from a dict +v1beta1_add_platform_user_request_form_dict = v1beta1_add_platform_user_request.from_dict(v1beta1_add_platform_user_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuditLog.md b/docs/V1beta1AuditLog.md new file mode 100644 index 0000000..95675e6 --- /dev/null +++ b/docs/V1beta1AuditLog.md @@ -0,0 +1,34 @@ +# V1beta1AuditLog + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**source** | **str** | The source service generating the event. | +**action** | **str** | | +**actor** | [**V1beta1AuditLogActor**](V1beta1AuditLogActor.md) | | [optional] +**target** | [**V1beta1AuditLogTarget**](V1beta1AuditLogTarget.md) | | [optional] +**context** | **Dict[str, str]** | | [optional] +**created_at** | **datetime** | The time the log was created. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuditLog from a JSON string +v1beta1_audit_log_instance = V1beta1AuditLog.from_json(json) +# print the JSON string representation of the object +print V1beta1AuditLog.to_json() + +# convert the object into a dict +v1beta1_audit_log_dict = v1beta1_audit_log_instance.to_dict() +# create an instance of V1beta1AuditLog from a dict +v1beta1_audit_log_form_dict = v1beta1_audit_log.from_dict(v1beta1_audit_log_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuditLogActor.md b/docs/V1beta1AuditLogActor.md new file mode 100644 index 0000000..29a5d5e --- /dev/null +++ b/docs/V1beta1AuditLogActor.md @@ -0,0 +1,30 @@ +# V1beta1AuditLogActor + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_audit_log_actor import V1beta1AuditLogActor + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuditLogActor from a JSON string +v1beta1_audit_log_actor_instance = V1beta1AuditLogActor.from_json(json) +# print the JSON string representation of the object +print V1beta1AuditLogActor.to_json() + +# convert the object into a dict +v1beta1_audit_log_actor_dict = v1beta1_audit_log_actor_instance.to_dict() +# create an instance of V1beta1AuditLogActor from a dict +v1beta1_audit_log_actor_form_dict = v1beta1_audit_log_actor.from_dict(v1beta1_audit_log_actor_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuditLogTarget.md b/docs/V1beta1AuditLogTarget.md new file mode 100644 index 0000000..a2fc3b4 --- /dev/null +++ b/docs/V1beta1AuditLogTarget.md @@ -0,0 +1,30 @@ +# V1beta1AuditLogTarget + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_audit_log_target import V1beta1AuditLogTarget + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuditLogTarget from a JSON string +v1beta1_audit_log_target_instance = V1beta1AuditLogTarget.from_json(json) +# print the JSON string representation of the object +print V1beta1AuditLogTarget.to_json() + +# convert the object into a dict +v1beta1_audit_log_target_dict = v1beta1_audit_log_target_instance.to_dict() +# create an instance of V1beta1AuditLogTarget from a dict +v1beta1_audit_log_target_form_dict = v1beta1_audit_log_target.from_dict(v1beta1_audit_log_target_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuthCallbackRequest.md b/docs/V1beta1AuthCallbackRequest.md new file mode 100644 index 0000000..402418c --- /dev/null +++ b/docs/V1beta1AuthCallbackRequest.md @@ -0,0 +1,31 @@ +# V1beta1AuthCallbackRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**strategy_name** | **str** | | [optional] +**state** | **str** | | [optional] +**code** | **str** | | [optional] +**state_options** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuthCallbackRequest from a JSON string +v1beta1_auth_callback_request_instance = V1beta1AuthCallbackRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1AuthCallbackRequest.to_json() + +# convert the object into a dict +v1beta1_auth_callback_request_dict = v1beta1_auth_callback_request_instance.to_dict() +# create an instance of V1beta1AuthCallbackRequest from a dict +v1beta1_auth_callback_request_form_dict = v1beta1_auth_callback_request.from_dict(v1beta1_auth_callback_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuthStrategy.md b/docs/V1beta1AuthStrategy.md new file mode 100644 index 0000000..59e0cf5 --- /dev/null +++ b/docs/V1beta1AuthStrategy.md @@ -0,0 +1,29 @@ +# V1beta1AuthStrategy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**params** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_auth_strategy import V1beta1AuthStrategy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuthStrategy from a JSON string +v1beta1_auth_strategy_instance = V1beta1AuthStrategy.from_json(json) +# print the JSON string representation of the object +print V1beta1AuthStrategy.to_json() + +# convert the object into a dict +v1beta1_auth_strategy_dict = v1beta1_auth_strategy_instance.to_dict() +# create an instance of V1beta1AuthStrategy from a dict +v1beta1_auth_strategy_form_dict = v1beta1_auth_strategy.from_dict(v1beta1_auth_strategy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuthTokenRequest.md b/docs/V1beta1AuthTokenRequest.md new file mode 100644 index 0000000..cd4bce2 --- /dev/null +++ b/docs/V1beta1AuthTokenRequest.md @@ -0,0 +1,31 @@ +# V1beta1AuthTokenRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grant_type** | **str** | | [optional] +**client_id** | **str** | | [optional] +**client_secret** | **str** | | [optional] +**assertion** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_auth_token_request import V1beta1AuthTokenRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuthTokenRequest from a JSON string +v1beta1_auth_token_request_instance = V1beta1AuthTokenRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1AuthTokenRequest.to_json() + +# convert the object into a dict +v1beta1_auth_token_request_dict = v1beta1_auth_token_request_instance.to_dict() +# create an instance of V1beta1AuthTokenRequest from a dict +v1beta1_auth_token_request_form_dict = v1beta1_auth_token_request.from_dict(v1beta1_auth_token_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuthTokenResponse.md b/docs/V1beta1AuthTokenResponse.md new file mode 100644 index 0000000..04fd8a7 --- /dev/null +++ b/docs/V1beta1AuthTokenResponse.md @@ -0,0 +1,29 @@ +# V1beta1AuthTokenResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **str** | | [optional] +**token_type** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_auth_token_response import V1beta1AuthTokenResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuthTokenResponse from a JSON string +v1beta1_auth_token_response_instance = V1beta1AuthTokenResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1AuthTokenResponse.to_json() + +# convert the object into a dict +v1beta1_auth_token_response_dict = v1beta1_auth_token_response_instance.to_dict() +# create an instance of V1beta1AuthTokenResponse from a dict +v1beta1_auth_token_response_form_dict = v1beta1_auth_token_response.from_dict(v1beta1_auth_token_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1AuthenticateResponse.md b/docs/V1beta1AuthenticateResponse.md new file mode 100644 index 0000000..3dae593 --- /dev/null +++ b/docs/V1beta1AuthenticateResponse.md @@ -0,0 +1,30 @@ +# V1beta1AuthenticateResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | | [optional] +**state** | **str** | | [optional] +**state_options** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1AuthenticateResponse from a JSON string +v1beta1_authenticate_response_instance = V1beta1AuthenticateResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1AuthenticateResponse.to_json() + +# convert the object into a dict +v1beta1_authenticate_response_dict = v1beta1_authenticate_response_instance.to_dict() +# create an instance of V1beta1AuthenticateResponse from a dict +v1beta1_authenticate_response_form_dict = v1beta1_authenticate_response.from_dict(v1beta1_authenticate_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BatchCheckPermissionBody.md b/docs/V1beta1BatchCheckPermissionBody.md new file mode 100644 index 0000000..75f04a4 --- /dev/null +++ b/docs/V1beta1BatchCheckPermissionBody.md @@ -0,0 +1,29 @@ +# V1beta1BatchCheckPermissionBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | **str** | the permission name to check. <br/> *Example:* `get` or `list` | +**resource** | **str** | `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BatchCheckPermissionBody from a JSON string +v1beta1_batch_check_permission_body_instance = V1beta1BatchCheckPermissionBody.from_json(json) +# print the JSON string representation of the object +print V1beta1BatchCheckPermissionBody.to_json() + +# convert the object into a dict +v1beta1_batch_check_permission_body_dict = v1beta1_batch_check_permission_body_instance.to_dict() +# create an instance of V1beta1BatchCheckPermissionBody from a dict +v1beta1_batch_check_permission_body_form_dict = v1beta1_batch_check_permission_body.from_dict(v1beta1_batch_check_permission_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BatchCheckPermissionRequest.md b/docs/V1beta1BatchCheckPermissionRequest.md new file mode 100644 index 0000000..62fbfc6 --- /dev/null +++ b/docs/V1beta1BatchCheckPermissionRequest.md @@ -0,0 +1,28 @@ +# V1beta1BatchCheckPermissionRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bodies** | [**List[V1beta1BatchCheckPermissionBody]**](V1beta1BatchCheckPermissionBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BatchCheckPermissionRequest from a JSON string +v1beta1_batch_check_permission_request_instance = V1beta1BatchCheckPermissionRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1BatchCheckPermissionRequest.to_json() + +# convert the object into a dict +v1beta1_batch_check_permission_request_dict = v1beta1_batch_check_permission_request_instance.to_dict() +# create an instance of V1beta1BatchCheckPermissionRequest from a dict +v1beta1_batch_check_permission_request_form_dict = v1beta1_batch_check_permission_request.from_dict(v1beta1_batch_check_permission_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BatchCheckPermissionResponse.md b/docs/V1beta1BatchCheckPermissionResponse.md new file mode 100644 index 0000000..4c62949 --- /dev/null +++ b/docs/V1beta1BatchCheckPermissionResponse.md @@ -0,0 +1,28 @@ +# V1beta1BatchCheckPermissionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pairs** | [**List[V1beta1BatchCheckPermissionResponsePair]**](V1beta1BatchCheckPermissionResponsePair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BatchCheckPermissionResponse from a JSON string +v1beta1_batch_check_permission_response_instance = V1beta1BatchCheckPermissionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1BatchCheckPermissionResponse.to_json() + +# convert the object into a dict +v1beta1_batch_check_permission_response_dict = v1beta1_batch_check_permission_response_instance.to_dict() +# create an instance of V1beta1BatchCheckPermissionResponse from a dict +v1beta1_batch_check_permission_response_form_dict = v1beta1_batch_check_permission_response.from_dict(v1beta1_batch_check_permission_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BatchCheckPermissionResponsePair.md b/docs/V1beta1BatchCheckPermissionResponsePair.md new file mode 100644 index 0000000..b0abdd9 --- /dev/null +++ b/docs/V1beta1BatchCheckPermissionResponsePair.md @@ -0,0 +1,29 @@ +# V1beta1BatchCheckPermissionResponsePair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1BatchCheckPermissionBody**](V1beta1BatchCheckPermissionBody.md) | | [optional] +**status** | **bool** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BatchCheckPermissionResponsePair from a JSON string +v1beta1_batch_check_permission_response_pair_instance = V1beta1BatchCheckPermissionResponsePair.from_json(json) +# print the JSON string representation of the object +print V1beta1BatchCheckPermissionResponsePair.to_json() + +# convert the object into a dict +v1beta1_batch_check_permission_response_pair_dict = v1beta1_batch_check_permission_response_pair_instance.to_dict() +# create an instance of V1beta1BatchCheckPermissionResponsePair from a dict +v1beta1_batch_check_permission_response_pair_form_dict = v1beta1_batch_check_permission_response_pair.from_dict(v1beta1_batch_check_permission_response_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BillingAccount.md b/docs/V1beta1BillingAccount.md new file mode 100644 index 0000000..5328b45 --- /dev/null +++ b/docs/V1beta1BillingAccount.md @@ -0,0 +1,40 @@ +# V1beta1BillingAccount + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**org_id** | **str** | | [optional] +**name** | **str** | | [optional] +**email** | **str** | | [optional] +**phone** | **str** | | [optional] +**address** | [**BillingAccountAddress**](BillingAccountAddress.md) | | [optional] +**provider_id** | **str** | | [optional] +**provider** | **str** | | [optional] +**currency** | **str** | | [optional] +**state** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BillingAccount from a JSON string +v1beta1_billing_account_instance = V1beta1BillingAccount.from_json(json) +# print the JSON string representation of the object +print V1beta1BillingAccount.to_json() + +# convert the object into a dict +v1beta1_billing_account_dict = v1beta1_billing_account_instance.to_dict() +# create an instance of V1beta1BillingAccount from a dict +v1beta1_billing_account_form_dict = v1beta1_billing_account.from_dict(v1beta1_billing_account_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BillingAccountRequestBody.md b/docs/V1beta1BillingAccountRequestBody.md new file mode 100644 index 0000000..8065585 --- /dev/null +++ b/docs/V1beta1BillingAccountRequestBody.md @@ -0,0 +1,33 @@ +# V1beta1BillingAccountRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**email** | **str** | | [optional] +**phone** | **str** | | [optional] +**address** | [**BillingAccountAddress**](BillingAccountAddress.md) | | [optional] +**currency** | **str** | | [optional] +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_billing_account_request_body import V1beta1BillingAccountRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BillingAccountRequestBody from a JSON string +v1beta1_billing_account_request_body_instance = V1beta1BillingAccountRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1BillingAccountRequestBody.to_json() + +# convert the object into a dict +v1beta1_billing_account_request_body_dict = v1beta1_billing_account_request_body_instance.to_dict() +# create an instance of V1beta1BillingAccountRequestBody from a dict +v1beta1_billing_account_request_body_form_dict = v1beta1_billing_account_request_body.from_dict(v1beta1_billing_account_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1BillingTransaction.md b/docs/V1beta1BillingTransaction.md new file mode 100644 index 0000000..c253569 --- /dev/null +++ b/docs/V1beta1BillingTransaction.md @@ -0,0 +1,36 @@ +# V1beta1BillingTransaction + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**customer_id** | **str** | | [optional] +**source** | **str** | | [optional] +**amount** | **str** | | [optional] +**type** | **str** | | [optional] +**description** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_billing_transaction import V1beta1BillingTransaction + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1BillingTransaction from a JSON string +v1beta1_billing_transaction_instance = V1beta1BillingTransaction.from_json(json) +# print the JSON string representation of the object +print V1beta1BillingTransaction.to_json() + +# convert the object into a dict +v1beta1_billing_transaction_dict = v1beta1_billing_transaction_instance.to_dict() +# create an instance of V1beta1BillingTransaction from a dict +v1beta1_billing_transaction_form_dict = v1beta1_billing_transaction.from_dict(v1beta1_billing_transaction_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckFeatureEntitlementResponse.md b/docs/V1beta1CheckFeatureEntitlementResponse.md new file mode 100644 index 0000000..b90ed22 --- /dev/null +++ b/docs/V1beta1CheckFeatureEntitlementResponse.md @@ -0,0 +1,28 @@ +# V1beta1CheckFeatureEntitlementResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_check_feature_entitlement_response import V1beta1CheckFeatureEntitlementResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckFeatureEntitlementResponse from a JSON string +v1beta1_check_feature_entitlement_response_instance = V1beta1CheckFeatureEntitlementResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckFeatureEntitlementResponse.to_json() + +# convert the object into a dict +v1beta1_check_feature_entitlement_response_dict = v1beta1_check_feature_entitlement_response_instance.to_dict() +# create an instance of V1beta1CheckFeatureEntitlementResponse from a dict +v1beta1_check_feature_entitlement_response_form_dict = v1beta1_check_feature_entitlement_response.from_dict(v1beta1_check_feature_entitlement_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckFederatedResourcePermissionRequest.md b/docs/V1beta1CheckFederatedResourcePermissionRequest.md new file mode 100644 index 0000000..c968a3a --- /dev/null +++ b/docs/V1beta1CheckFederatedResourcePermissionRequest.md @@ -0,0 +1,30 @@ +# V1beta1CheckFederatedResourcePermissionRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subject** | **str** | the subject to check. <br/> *Example:* `user:..uuidofuser..` | +**resource** | **str** | `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | +**permission** | **str** | the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` | + +## Example + +```python +from frontier_api.models.v1beta1_check_federated_resource_permission_request import V1beta1CheckFederatedResourcePermissionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckFederatedResourcePermissionRequest from a JSON string +v1beta1_check_federated_resource_permission_request_instance = V1beta1CheckFederatedResourcePermissionRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckFederatedResourcePermissionRequest.to_json() + +# convert the object into a dict +v1beta1_check_federated_resource_permission_request_dict = v1beta1_check_federated_resource_permission_request_instance.to_dict() +# create an instance of V1beta1CheckFederatedResourcePermissionRequest from a dict +v1beta1_check_federated_resource_permission_request_form_dict = v1beta1_check_federated_resource_permission_request.from_dict(v1beta1_check_federated_resource_permission_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckFederatedResourcePermissionResponse.md b/docs/V1beta1CheckFederatedResourcePermissionResponse.md new file mode 100644 index 0000000..0c00819 --- /dev/null +++ b/docs/V1beta1CheckFederatedResourcePermissionResponse.md @@ -0,0 +1,28 @@ +# V1beta1CheckFederatedResourcePermissionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_check_federated_resource_permission_response import V1beta1CheckFederatedResourcePermissionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckFederatedResourcePermissionResponse from a JSON string +v1beta1_check_federated_resource_permission_response_instance = V1beta1CheckFederatedResourcePermissionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckFederatedResourcePermissionResponse.to_json() + +# convert the object into a dict +v1beta1_check_federated_resource_permission_response_dict = v1beta1_check_federated_resource_permission_response_instance.to_dict() +# create an instance of V1beta1CheckFederatedResourcePermissionResponse from a dict +v1beta1_check_federated_resource_permission_response_form_dict = v1beta1_check_federated_resource_permission_response.from_dict(v1beta1_check_federated_resource_permission_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckResourcePermissionRequest.md b/docs/V1beta1CheckResourcePermissionRequest.md new file mode 100644 index 0000000..b965dca --- /dev/null +++ b/docs/V1beta1CheckResourcePermissionRequest.md @@ -0,0 +1,31 @@ +# V1beta1CheckResourcePermissionRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object_id** | **str** | Deprecated. Use `resource` field instead. | [optional] +**object_namespace** | **str** | Deprecated. Use `resource` field instead. | [optional] +**permission** | **str** | the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` | +**resource** | **str** | `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckResourcePermissionRequest from a JSON string +v1beta1_check_resource_permission_request_instance = V1beta1CheckResourcePermissionRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckResourcePermissionRequest.to_json() + +# convert the object into a dict +v1beta1_check_resource_permission_request_dict = v1beta1_check_resource_permission_request_instance.to_dict() +# create an instance of V1beta1CheckResourcePermissionRequest from a dict +v1beta1_check_resource_permission_request_form_dict = v1beta1_check_resource_permission_request.from_dict(v1beta1_check_resource_permission_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckResourcePermissionResponse.md b/docs/V1beta1CheckResourcePermissionResponse.md new file mode 100644 index 0000000..a5a94b7 --- /dev/null +++ b/docs/V1beta1CheckResourcePermissionResponse.md @@ -0,0 +1,28 @@ +# V1beta1CheckResourcePermissionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckResourcePermissionResponse from a JSON string +v1beta1_check_resource_permission_response_instance = V1beta1CheckResourcePermissionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckResourcePermissionResponse.to_json() + +# convert the object into a dict +v1beta1_check_resource_permission_response_dict = v1beta1_check_resource_permission_response_instance.to_dict() +# create an instance of V1beta1CheckResourcePermissionResponse from a dict +v1beta1_check_resource_permission_response_form_dict = v1beta1_check_resource_permission_response.from_dict(v1beta1_check_resource_permission_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckoutFeatureBody.md b/docs/V1beta1CheckoutFeatureBody.md new file mode 100644 index 0000000..74968fd --- /dev/null +++ b/docs/V1beta1CheckoutFeatureBody.md @@ -0,0 +1,28 @@ +# V1beta1CheckoutFeatureBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_checkout_feature_body import V1beta1CheckoutFeatureBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckoutFeatureBody from a JSON string +v1beta1_checkout_feature_body_instance = V1beta1CheckoutFeatureBody.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckoutFeatureBody.to_json() + +# convert the object into a dict +v1beta1_checkout_feature_body_dict = v1beta1_checkout_feature_body_instance.to_dict() +# create an instance of V1beta1CheckoutFeatureBody from a dict +v1beta1_checkout_feature_body_form_dict = v1beta1_checkout_feature_body.from_dict(v1beta1_checkout_feature_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckoutSession.md b/docs/V1beta1CheckoutSession.md new file mode 100644 index 0000000..8cc962d --- /dev/null +++ b/docs/V1beta1CheckoutSession.md @@ -0,0 +1,36 @@ +# V1beta1CheckoutSession + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**checkout_url** | **str** | | [optional] +**success_url** | **str** | | [optional] +**cancel_url** | **str** | | [optional] +**state** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] +**expire_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_checkout_session import V1beta1CheckoutSession + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckoutSession from a JSON string +v1beta1_checkout_session_instance = V1beta1CheckoutSession.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckoutSession.to_json() + +# convert the object into a dict +v1beta1_checkout_session_dict = v1beta1_checkout_session_instance.to_dict() +# create an instance of V1beta1CheckoutSession from a dict +v1beta1_checkout_session_form_dict = v1beta1_checkout_session.from_dict(v1beta1_checkout_session_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CheckoutSubscriptionBody.md b/docs/V1beta1CheckoutSubscriptionBody.md new file mode 100644 index 0000000..2443dc5 --- /dev/null +++ b/docs/V1beta1CheckoutSubscriptionBody.md @@ -0,0 +1,29 @@ +# V1beta1CheckoutSubscriptionBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plan** | **str** | | [optional] +**trail_days** | **int** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_checkout_subscription_body import V1beta1CheckoutSubscriptionBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CheckoutSubscriptionBody from a JSON string +v1beta1_checkout_subscription_body_instance = V1beta1CheckoutSubscriptionBody.from_json(json) +# print the JSON string representation of the object +print V1beta1CheckoutSubscriptionBody.to_json() + +# convert the object into a dict +v1beta1_checkout_subscription_body_dict = v1beta1_checkout_subscription_body_instance.to_dict() +# create an instance of V1beta1CheckoutSubscriptionBody from a dict +v1beta1_checkout_subscription_body_form_dict = v1beta1_checkout_subscription_body.from_dict(v1beta1_checkout_subscription_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateBillingAccountResponse.md b/docs/V1beta1CreateBillingAccountResponse.md new file mode 100644 index 0000000..5db8aa7 --- /dev/null +++ b/docs/V1beta1CreateBillingAccountResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateBillingAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_account** | [**V1beta1BillingAccount**](V1beta1BillingAccount.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_billing_account_response import V1beta1CreateBillingAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateBillingAccountResponse from a JSON string +v1beta1_create_billing_account_response_instance = V1beta1CreateBillingAccountResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateBillingAccountResponse.to_json() + +# convert the object into a dict +v1beta1_create_billing_account_response_dict = v1beta1_create_billing_account_response_instance.to_dict() +# create an instance of V1beta1CreateBillingAccountResponse from a dict +v1beta1_create_billing_account_response_form_dict = v1beta1_create_billing_account_response.from_dict(v1beta1_create_billing_account_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateCheckoutResponse.md b/docs/V1beta1CreateCheckoutResponse.md new file mode 100644 index 0000000..27851d2 --- /dev/null +++ b/docs/V1beta1CreateCheckoutResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateCheckoutResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checkout_session** | [**V1beta1CheckoutSession**](V1beta1CheckoutSession.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_checkout_response import V1beta1CreateCheckoutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateCheckoutResponse from a JSON string +v1beta1_create_checkout_response_instance = V1beta1CreateCheckoutResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateCheckoutResponse.to_json() + +# convert the object into a dict +v1beta1_create_checkout_response_dict = v1beta1_create_checkout_response_instance.to_dict() +# create an instance of V1beta1CreateCheckoutResponse from a dict +v1beta1_create_checkout_response_form_dict = v1beta1_create_checkout_response.from_dict(v1beta1_create_checkout_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateCurrentUserPreferencesRequest.md b/docs/V1beta1CreateCurrentUserPreferencesRequest.md new file mode 100644 index 0000000..ffffe31 --- /dev/null +++ b/docs/V1beta1CreateCurrentUserPreferencesRequest.md @@ -0,0 +1,28 @@ +# V1beta1CreateCurrentUserPreferencesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bodies** | [**List[V1beta1PreferenceRequestBody]**](V1beta1PreferenceRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateCurrentUserPreferencesRequest from a JSON string +v1beta1_create_current_user_preferences_request_instance = V1beta1CreateCurrentUserPreferencesRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateCurrentUserPreferencesRequest.to_json() + +# convert the object into a dict +v1beta1_create_current_user_preferences_request_dict = v1beta1_create_current_user_preferences_request_instance.to_dict() +# create an instance of V1beta1CreateCurrentUserPreferencesRequest from a dict +v1beta1_create_current_user_preferences_request_form_dict = v1beta1_create_current_user_preferences_request.from_dict(v1beta1_create_current_user_preferences_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateCurrentUserPreferencesResponse.md b/docs/V1beta1CreateCurrentUserPreferencesResponse.md new file mode 100644 index 0000000..ed72586 --- /dev/null +++ b/docs/V1beta1CreateCurrentUserPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateCurrentUserPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateCurrentUserPreferencesResponse from a JSON string +v1beta1_create_current_user_preferences_response_instance = V1beta1CreateCurrentUserPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateCurrentUserPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_create_current_user_preferences_response_dict = v1beta1_create_current_user_preferences_response_instance.to_dict() +# create an instance of V1beta1CreateCurrentUserPreferencesResponse from a dict +v1beta1_create_current_user_preferences_response_form_dict = v1beta1_create_current_user_preferences_response.from_dict(v1beta1_create_current_user_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateFeatureRequest.md b/docs/V1beta1CreateFeatureRequest.md new file mode 100644 index 0000000..b028f42 --- /dev/null +++ b/docs/V1beta1CreateFeatureRequest.md @@ -0,0 +1,28 @@ +# V1beta1CreateFeatureRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1FeatureRequestBody**](V1beta1FeatureRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_feature_request import V1beta1CreateFeatureRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateFeatureRequest from a JSON string +v1beta1_create_feature_request_instance = V1beta1CreateFeatureRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateFeatureRequest.to_json() + +# convert the object into a dict +v1beta1_create_feature_request_dict = v1beta1_create_feature_request_instance.to_dict() +# create an instance of V1beta1CreateFeatureRequest from a dict +v1beta1_create_feature_request_form_dict = v1beta1_create_feature_request.from_dict(v1beta1_create_feature_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateFeatureResponse.md b/docs/V1beta1CreateFeatureResponse.md new file mode 100644 index 0000000..745a529 --- /dev/null +++ b/docs/V1beta1CreateFeatureResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateFeatureResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature** | [**V1beta1Feature**](V1beta1Feature.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_feature_response import V1beta1CreateFeatureResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateFeatureResponse from a JSON string +v1beta1_create_feature_response_instance = V1beta1CreateFeatureResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateFeatureResponse.to_json() + +# convert the object into a dict +v1beta1_create_feature_response_dict = v1beta1_create_feature_response_instance.to_dict() +# create an instance of V1beta1CreateFeatureResponse from a dict +v1beta1_create_feature_response_form_dict = v1beta1_create_feature_response.from_dict(v1beta1_create_feature_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateGroupPreferencesResponse.md b/docs/V1beta1CreateGroupPreferencesResponse.md new file mode 100644 index 0000000..341e552 --- /dev/null +++ b/docs/V1beta1CreateGroupPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateGroupPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateGroupPreferencesResponse from a JSON string +v1beta1_create_group_preferences_response_instance = V1beta1CreateGroupPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateGroupPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_create_group_preferences_response_dict = v1beta1_create_group_preferences_response_instance.to_dict() +# create an instance of V1beta1CreateGroupPreferencesResponse from a dict +v1beta1_create_group_preferences_response_form_dict = v1beta1_create_group_preferences_response.from_dict(v1beta1_create_group_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateGroupResponse.md b/docs/V1beta1CreateGroupResponse.md new file mode 100644 index 0000000..1e4291b --- /dev/null +++ b/docs/V1beta1CreateGroupResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateGroupResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**V1beta1Group**](V1beta1Group.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_group_response import V1beta1CreateGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateGroupResponse from a JSON string +v1beta1_create_group_response_instance = V1beta1CreateGroupResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateGroupResponse.to_json() + +# convert the object into a dict +v1beta1_create_group_response_dict = v1beta1_create_group_response_instance.to_dict() +# create an instance of V1beta1CreateGroupResponse from a dict +v1beta1_create_group_response_form_dict = v1beta1_create_group_response.from_dict(v1beta1_create_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateMetaSchemaResponse.md b/docs/V1beta1CreateMetaSchemaResponse.md new file mode 100644 index 0000000..e9df27f --- /dev/null +++ b/docs/V1beta1CreateMetaSchemaResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateMetaSchemaResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metaschema** | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateMetaSchemaResponse from a JSON string +v1beta1_create_meta_schema_response_instance = V1beta1CreateMetaSchemaResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateMetaSchemaResponse.to_json() + +# convert the object into a dict +v1beta1_create_meta_schema_response_dict = v1beta1_create_meta_schema_response_instance.to_dict() +# create an instance of V1beta1CreateMetaSchemaResponse from a dict +v1beta1_create_meta_schema_response_form_dict = v1beta1_create_meta_schema_response.from_dict(v1beta1_create_meta_schema_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateOrganizationDomainResponse.md b/docs/V1beta1CreateOrganizationDomainResponse.md new file mode 100644 index 0000000..5633e5c --- /dev/null +++ b/docs/V1beta1CreateOrganizationDomainResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateOrganizationDomainResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | [**V1beta1Domain**](V1beta1Domain.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateOrganizationDomainResponse from a JSON string +v1beta1_create_organization_domain_response_instance = V1beta1CreateOrganizationDomainResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateOrganizationDomainResponse.to_json() + +# convert the object into a dict +v1beta1_create_organization_domain_response_dict = v1beta1_create_organization_domain_response_instance.to_dict() +# create an instance of V1beta1CreateOrganizationDomainResponse from a dict +v1beta1_create_organization_domain_response_form_dict = v1beta1_create_organization_domain_response.from_dict(v1beta1_create_organization_domain_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateOrganizationInvitationResponse.md b/docs/V1beta1CreateOrganizationInvitationResponse.md new file mode 100644 index 0000000..eda43dd --- /dev/null +++ b/docs/V1beta1CreateOrganizationInvitationResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateOrganizationInvitationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invitations** | [**List[V1beta1Invitation]**](V1beta1Invitation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateOrganizationInvitationResponse from a JSON string +v1beta1_create_organization_invitation_response_instance = V1beta1CreateOrganizationInvitationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateOrganizationInvitationResponse.to_json() + +# convert the object into a dict +v1beta1_create_organization_invitation_response_dict = v1beta1_create_organization_invitation_response_instance.to_dict() +# create an instance of V1beta1CreateOrganizationInvitationResponse from a dict +v1beta1_create_organization_invitation_response_form_dict = v1beta1_create_organization_invitation_response.from_dict(v1beta1_create_organization_invitation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateOrganizationPreferencesResponse.md b/docs/V1beta1CreateOrganizationPreferencesResponse.md new file mode 100644 index 0000000..f3726c8 --- /dev/null +++ b/docs/V1beta1CreateOrganizationPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateOrganizationPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateOrganizationPreferencesResponse from a JSON string +v1beta1_create_organization_preferences_response_instance = V1beta1CreateOrganizationPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateOrganizationPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_create_organization_preferences_response_dict = v1beta1_create_organization_preferences_response_instance.to_dict() +# create an instance of V1beta1CreateOrganizationPreferencesResponse from a dict +v1beta1_create_organization_preferences_response_form_dict = v1beta1_create_organization_preferences_response.from_dict(v1beta1_create_organization_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateOrganizationResponse.md b/docs/V1beta1CreateOrganizationResponse.md new file mode 100644 index 0000000..4f0c640 --- /dev/null +++ b/docs/V1beta1CreateOrganizationResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateOrganizationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization** | [**V1beta1Organization**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateOrganizationResponse from a JSON string +v1beta1_create_organization_response_instance = V1beta1CreateOrganizationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateOrganizationResponse.to_json() + +# convert the object into a dict +v1beta1_create_organization_response_dict = v1beta1_create_organization_response_instance.to_dict() +# create an instance of V1beta1CreateOrganizationResponse from a dict +v1beta1_create_organization_response_form_dict = v1beta1_create_organization_response.from_dict(v1beta1_create_organization_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateOrganizationRoleResponse.md b/docs/V1beta1CreateOrganizationRoleResponse.md new file mode 100644 index 0000000..b08b85c --- /dev/null +++ b/docs/V1beta1CreateOrganizationRoleResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateOrganizationRoleResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | [**V1beta1Role**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateOrganizationRoleResponse from a JSON string +v1beta1_create_organization_role_response_instance = V1beta1CreateOrganizationRoleResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateOrganizationRoleResponse.to_json() + +# convert the object into a dict +v1beta1_create_organization_role_response_dict = v1beta1_create_organization_role_response_instance.to_dict() +# create an instance of V1beta1CreateOrganizationRoleResponse from a dict +v1beta1_create_organization_role_response_form_dict = v1beta1_create_organization_role_response.from_dict(v1beta1_create_organization_role_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePermissionRequest.md b/docs/V1beta1CreatePermissionRequest.md new file mode 100644 index 0000000..364ca1b --- /dev/null +++ b/docs/V1beta1CreatePermissionRequest.md @@ -0,0 +1,28 @@ +# V1beta1CreatePermissionRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bodies** | [**List[V1beta1PermissionRequestBody]**](V1beta1PermissionRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_permission_request import V1beta1CreatePermissionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePermissionRequest from a JSON string +v1beta1_create_permission_request_instance = V1beta1CreatePermissionRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePermissionRequest.to_json() + +# convert the object into a dict +v1beta1_create_permission_request_dict = v1beta1_create_permission_request_instance.to_dict() +# create an instance of V1beta1CreatePermissionRequest from a dict +v1beta1_create_permission_request_form_dict = v1beta1_create_permission_request.from_dict(v1beta1_create_permission_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePermissionResponse.md b/docs/V1beta1CreatePermissionResponse.md new file mode 100644 index 0000000..23a9de6 --- /dev/null +++ b/docs/V1beta1CreatePermissionResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreatePermissionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permissions** | [**List[V1beta1Permission]**](V1beta1Permission.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_permission_response import V1beta1CreatePermissionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePermissionResponse from a JSON string +v1beta1_create_permission_response_instance = V1beta1CreatePermissionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePermissionResponse.to_json() + +# convert the object into a dict +v1beta1_create_permission_response_dict = v1beta1_create_permission_response_instance.to_dict() +# create an instance of V1beta1CreatePermissionResponse from a dict +v1beta1_create_permission_response_form_dict = v1beta1_create_permission_response.from_dict(v1beta1_create_permission_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePlanRequest.md b/docs/V1beta1CreatePlanRequest.md new file mode 100644 index 0000000..65cc462 --- /dev/null +++ b/docs/V1beta1CreatePlanRequest.md @@ -0,0 +1,28 @@ +# V1beta1CreatePlanRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1PlanRequestBody**](V1beta1PlanRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_plan_request import V1beta1CreatePlanRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePlanRequest from a JSON string +v1beta1_create_plan_request_instance = V1beta1CreatePlanRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePlanRequest.to_json() + +# convert the object into a dict +v1beta1_create_plan_request_dict = v1beta1_create_plan_request_instance.to_dict() +# create an instance of V1beta1CreatePlanRequest from a dict +v1beta1_create_plan_request_form_dict = v1beta1_create_plan_request.from_dict(v1beta1_create_plan_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePlanResponse.md b/docs/V1beta1CreatePlanResponse.md new file mode 100644 index 0000000..b7c5934 --- /dev/null +++ b/docs/V1beta1CreatePlanResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreatePlanResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plan** | [**V1beta1Plan**](V1beta1Plan.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_plan_response import V1beta1CreatePlanResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePlanResponse from a JSON string +v1beta1_create_plan_response_instance = V1beta1CreatePlanResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePlanResponse.to_json() + +# convert the object into a dict +v1beta1_create_plan_response_dict = v1beta1_create_plan_response_instance.to_dict() +# create an instance of V1beta1CreatePlanResponse from a dict +v1beta1_create_plan_response_form_dict = v1beta1_create_plan_response.from_dict(v1beta1_create_plan_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePolicyResponse.md b/docs/V1beta1CreatePolicyResponse.md new file mode 100644 index 0000000..422ec0a --- /dev/null +++ b/docs/V1beta1CreatePolicyResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreatePolicyResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**V1beta1Policy**](V1beta1Policy.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_policy_response import V1beta1CreatePolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePolicyResponse from a JSON string +v1beta1_create_policy_response_instance = V1beta1CreatePolicyResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePolicyResponse.to_json() + +# convert the object into a dict +v1beta1_create_policy_response_dict = v1beta1_create_policy_response_instance.to_dict() +# create an instance of V1beta1CreatePolicyResponse from a dict +v1beta1_create_policy_response_form_dict = v1beta1_create_policy_response.from_dict(v1beta1_create_policy_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePreferencesRequest.md b/docs/V1beta1CreatePreferencesRequest.md new file mode 100644 index 0000000..ef55a00 --- /dev/null +++ b/docs/V1beta1CreatePreferencesRequest.md @@ -0,0 +1,28 @@ +# V1beta1CreatePreferencesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1PreferenceRequestBody]**](V1beta1PreferenceRequestBody.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePreferencesRequest from a JSON string +v1beta1_create_preferences_request_instance = V1beta1CreatePreferencesRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePreferencesRequest.to_json() + +# convert the object into a dict +v1beta1_create_preferences_request_dict = v1beta1_create_preferences_request_instance.to_dict() +# create an instance of V1beta1CreatePreferencesRequest from a dict +v1beta1_create_preferences_request_form_dict = v1beta1_create_preferences_request.from_dict(v1beta1_create_preferences_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreatePreferencesResponse.md b/docs/V1beta1CreatePreferencesResponse.md new file mode 100644 index 0000000..5395ada --- /dev/null +++ b/docs/V1beta1CreatePreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreatePreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preference** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreatePreferencesResponse from a JSON string +v1beta1_create_preferences_response_instance = V1beta1CreatePreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreatePreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_create_preferences_response_dict = v1beta1_create_preferences_response_instance.to_dict() +# create an instance of V1beta1CreatePreferencesResponse from a dict +v1beta1_create_preferences_response_form_dict = v1beta1_create_preferences_response.from_dict(v1beta1_create_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateProjectPreferencesResponse.md b/docs/V1beta1CreateProjectPreferencesResponse.md new file mode 100644 index 0000000..6b75134 --- /dev/null +++ b/docs/V1beta1CreateProjectPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateProjectPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateProjectPreferencesResponse from a JSON string +v1beta1_create_project_preferences_response_instance = V1beta1CreateProjectPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateProjectPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_create_project_preferences_response_dict = v1beta1_create_project_preferences_response_instance.to_dict() +# create an instance of V1beta1CreateProjectPreferencesResponse from a dict +v1beta1_create_project_preferences_response_form_dict = v1beta1_create_project_preferences_response.from_dict(v1beta1_create_project_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateProjectResourceResponse.md b/docs/V1beta1CreateProjectResourceResponse.md new file mode 100644 index 0000000..a26ffa4 --- /dev/null +++ b/docs/V1beta1CreateProjectResourceResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateProjectResourceResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource** | [**V1beta1Resource**](V1beta1Resource.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateProjectResourceResponse from a JSON string +v1beta1_create_project_resource_response_instance = V1beta1CreateProjectResourceResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateProjectResourceResponse.to_json() + +# convert the object into a dict +v1beta1_create_project_resource_response_dict = v1beta1_create_project_resource_response_instance.to_dict() +# create an instance of V1beta1CreateProjectResourceResponse from a dict +v1beta1_create_project_resource_response_form_dict = v1beta1_create_project_resource_response.from_dict(v1beta1_create_project_resource_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateProjectResponse.md b/docs/V1beta1CreateProjectResponse.md new file mode 100644 index 0000000..78c5ae6 --- /dev/null +++ b/docs/V1beta1CreateProjectResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateProjectResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project** | [**V1beta1Project**](V1beta1Project.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_project_response import V1beta1CreateProjectResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateProjectResponse from a JSON string +v1beta1_create_project_response_instance = V1beta1CreateProjectResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateProjectResponse.to_json() + +# convert the object into a dict +v1beta1_create_project_response_dict = v1beta1_create_project_response_instance.to_dict() +# create an instance of V1beta1CreateProjectResponse from a dict +v1beta1_create_project_response_form_dict = v1beta1_create_project_response.from_dict(v1beta1_create_project_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateRelationResponse.md b/docs/V1beta1CreateRelationResponse.md new file mode 100644 index 0000000..39adeb1 --- /dev/null +++ b/docs/V1beta1CreateRelationResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateRelationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**relation** | [**V1beta1Relation**](V1beta1Relation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_relation_response import V1beta1CreateRelationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateRelationResponse from a JSON string +v1beta1_create_relation_response_instance = V1beta1CreateRelationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateRelationResponse.to_json() + +# convert the object into a dict +v1beta1_create_relation_response_dict = v1beta1_create_relation_response_instance.to_dict() +# create an instance of V1beta1CreateRelationResponse from a dict +v1beta1_create_relation_response_form_dict = v1beta1_create_relation_response.from_dict(v1beta1_create_relation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateRoleResponse.md b/docs/V1beta1CreateRoleResponse.md new file mode 100644 index 0000000..4f9309c --- /dev/null +++ b/docs/V1beta1CreateRoleResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateRoleResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | [**V1beta1Role**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_role_response import V1beta1CreateRoleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateRoleResponse from a JSON string +v1beta1_create_role_response_instance = V1beta1CreateRoleResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateRoleResponse.to_json() + +# convert the object into a dict +v1beta1_create_role_response_dict = v1beta1_create_role_response_instance.to_dict() +# create an instance of V1beta1CreateRoleResponse from a dict +v1beta1_create_role_response_form_dict = v1beta1_create_role_response.from_dict(v1beta1_create_role_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateServiceUserKeyResponse.md b/docs/V1beta1CreateServiceUserKeyResponse.md new file mode 100644 index 0000000..bab1c82 --- /dev/null +++ b/docs/V1beta1CreateServiceUserKeyResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateServiceUserKeyResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | [**V1beta1KeyCredential**](V1beta1KeyCredential.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateServiceUserKeyResponse from a JSON string +v1beta1_create_service_user_key_response_instance = V1beta1CreateServiceUserKeyResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateServiceUserKeyResponse.to_json() + +# convert the object into a dict +v1beta1_create_service_user_key_response_dict = v1beta1_create_service_user_key_response_instance.to_dict() +# create an instance of V1beta1CreateServiceUserKeyResponse from a dict +v1beta1_create_service_user_key_response_form_dict = v1beta1_create_service_user_key_response.from_dict(v1beta1_create_service_user_key_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateServiceUserRequest.md b/docs/V1beta1CreateServiceUserRequest.md new file mode 100644 index 0000000..ea263c5 --- /dev/null +++ b/docs/V1beta1CreateServiceUserRequest.md @@ -0,0 +1,29 @@ +# V1beta1CreateServiceUserRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | [**V1beta1ServiceUserRequestBody**](V1beta1ServiceUserRequestBody.md) | | [optional] +**org_id** | **str** | The organization ID to which the service user belongs to. | + +## Example + +```python +from frontier_api.models.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateServiceUserRequest from a JSON string +v1beta1_create_service_user_request_instance = V1beta1CreateServiceUserRequest.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateServiceUserRequest.to_json() + +# convert the object into a dict +v1beta1_create_service_user_request_dict = v1beta1_create_service_user_request_instance.to_dict() +# create an instance of V1beta1CreateServiceUserRequest from a dict +v1beta1_create_service_user_request_form_dict = v1beta1_create_service_user_request.from_dict(v1beta1_create_service_user_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateServiceUserResponse.md b/docs/V1beta1CreateServiceUserResponse.md new file mode 100644 index 0000000..7576010 --- /dev/null +++ b/docs/V1beta1CreateServiceUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateServiceUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceuser** | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateServiceUserResponse from a JSON string +v1beta1_create_service_user_response_instance = V1beta1CreateServiceUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateServiceUserResponse.to_json() + +# convert the object into a dict +v1beta1_create_service_user_response_dict = v1beta1_create_service_user_response_instance.to_dict() +# create an instance of V1beta1CreateServiceUserResponse from a dict +v1beta1_create_service_user_response_form_dict = v1beta1_create_service_user_response.from_dict(v1beta1_create_service_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateServiceUserSecretResponse.md b/docs/V1beta1CreateServiceUserSecretResponse.md new file mode 100644 index 0000000..d50b5f3 --- /dev/null +++ b/docs/V1beta1CreateServiceUserSecretResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateServiceUserSecretResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secret** | [**V1beta1SecretCredential**](V1beta1SecretCredential.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateServiceUserSecretResponse from a JSON string +v1beta1_create_service_user_secret_response_instance = V1beta1CreateServiceUserSecretResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateServiceUserSecretResponse.to_json() + +# convert the object into a dict +v1beta1_create_service_user_secret_response_dict = v1beta1_create_service_user_secret_response_instance.to_dict() +# create an instance of V1beta1CreateServiceUserSecretResponse from a dict +v1beta1_create_service_user_secret_response_form_dict = v1beta1_create_service_user_secret_response.from_dict(v1beta1_create_service_user_secret_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateUserPreferencesResponse.md b/docs/V1beta1CreateUserPreferencesResponse.md new file mode 100644 index 0000000..46ce674 --- /dev/null +++ b/docs/V1beta1CreateUserPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateUserPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateUserPreferencesResponse from a JSON string +v1beta1_create_user_preferences_response_instance = V1beta1CreateUserPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateUserPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_create_user_preferences_response_dict = v1beta1_create_user_preferences_response_instance.to_dict() +# create an instance of V1beta1CreateUserPreferencesResponse from a dict +v1beta1_create_user_preferences_response_form_dict = v1beta1_create_user_preferences_response.from_dict(v1beta1_create_user_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CreateUserResponse.md b/docs/V1beta1CreateUserResponse.md new file mode 100644 index 0000000..34549a2 --- /dev/null +++ b/docs/V1beta1CreateUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1CreateUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**V1beta1User**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_create_user_response import V1beta1CreateUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1CreateUserResponse from a JSON string +v1beta1_create_user_response_instance = V1beta1CreateUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1CreateUserResponse.to_json() + +# convert the object into a dict +v1beta1_create_user_response_dict = v1beta1_create_user_response_instance.to_dict() +# create an instance of V1beta1CreateUserResponse from a dict +v1beta1_create_user_response_form_dict = v1beta1_create_user_response.from_dict(v1beta1_create_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1DescribePreferencesResponse.md b/docs/V1beta1DescribePreferencesResponse.md new file mode 100644 index 0000000..a5e91eb --- /dev/null +++ b/docs/V1beta1DescribePreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1DescribePreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**traits** | [**List[V1beta1PreferenceTrait]**](V1beta1PreferenceTrait.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1DescribePreferencesResponse from a JSON string +v1beta1_describe_preferences_response_instance = V1beta1DescribePreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1DescribePreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_describe_preferences_response_dict = v1beta1_describe_preferences_response_instance.to_dict() +# create an instance of V1beta1DescribePreferencesResponse from a dict +v1beta1_describe_preferences_response_form_dict = v1beta1_describe_preferences_response.from_dict(v1beta1_describe_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Domain.md b/docs/V1beta1Domain.md new file mode 100644 index 0000000..472603c --- /dev/null +++ b/docs/V1beta1Domain.md @@ -0,0 +1,34 @@ +# V1beta1Domain + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The domain id | [optional] +**name** | **str** | The domain name | [optional] +**org_id** | **str** | The organization id | [optional] +**token** | **str** | The dns TXT record token to verify the domain | [optional] +**state** | **str** | The domain state either pending or verified | [optional] +**created_at** | **datetime** | The time the domain whitelist request was created | [optional] +**updated_at** | **datetime** | The time the org domain was updated | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_domain import V1beta1Domain + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Domain from a JSON string +v1beta1_domain_instance = V1beta1Domain.from_json(json) +# print the JSON string representation of the object +print V1beta1Domain.to_json() + +# convert the object into a dict +v1beta1_domain_dict = v1beta1_domain_instance.to_dict() +# create an instance of V1beta1Domain from a dict +v1beta1_domain_form_dict = v1beta1_domain.from_dict(v1beta1_domain_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Feature.md b/docs/V1beta1Feature.md new file mode 100644 index 0000000..26d1919 --- /dev/null +++ b/docs/V1beta1Feature.md @@ -0,0 +1,38 @@ +# V1beta1Feature + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**plan_ids** | **List[str]** | | [optional] +**state** | **str** | | [optional] +**prices** | [**List[V1beta1Price]**](V1beta1Price.md) | | [optional] +**credit_amount** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_feature import V1beta1Feature + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Feature from a JSON string +v1beta1_feature_instance = V1beta1Feature.from_json(json) +# print the JSON string representation of the object +print V1beta1Feature.to_json() + +# convert the object into a dict +v1beta1_feature_dict = v1beta1_feature_instance.to_dict() +# create an instance of V1beta1Feature from a dict +v1beta1_feature_form_dict = v1beta1_feature.from_dict(v1beta1_feature_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1FeatureRequestBody.md b/docs/V1beta1FeatureRequestBody.md new file mode 100644 index 0000000..7dff5e0 --- /dev/null +++ b/docs/V1beta1FeatureRequestBody.md @@ -0,0 +1,34 @@ +# V1beta1FeatureRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**plan_id** | **str** | | [optional] +**prices** | [**List[V1beta1Price]**](V1beta1Price.md) | | [optional] +**credit_amount** | **str** | | [optional] +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_feature_request_body import V1beta1FeatureRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1FeatureRequestBody from a JSON string +v1beta1_feature_request_body_instance = V1beta1FeatureRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1FeatureRequestBody.to_json() + +# convert the object into a dict +v1beta1_feature_request_body_dict = v1beta1_feature_request_body_instance.to_dict() +# create an instance of V1beta1FeatureRequestBody from a dict +v1beta1_feature_request_body_form_dict = v1beta1_feature_request_body.from_dict(v1beta1_feature_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetBillingAccountResponse.md b/docs/V1beta1GetBillingAccountResponse.md new file mode 100644 index 0000000..acb040c --- /dev/null +++ b/docs/V1beta1GetBillingAccountResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetBillingAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_account** | [**V1beta1BillingAccount**](V1beta1BillingAccount.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_billing_account_response import V1beta1GetBillingAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetBillingAccountResponse from a JSON string +v1beta1_get_billing_account_response_instance = V1beta1GetBillingAccountResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetBillingAccountResponse.to_json() + +# convert the object into a dict +v1beta1_get_billing_account_response_dict = v1beta1_get_billing_account_response_instance.to_dict() +# create an instance of V1beta1GetBillingAccountResponse from a dict +v1beta1_get_billing_account_response_form_dict = v1beta1_get_billing_account_response.from_dict(v1beta1_get_billing_account_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetBillingBalanceResponse.md b/docs/V1beta1GetBillingBalanceResponse.md new file mode 100644 index 0000000..db92ba9 --- /dev/null +++ b/docs/V1beta1GetBillingBalanceResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetBillingBalanceResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**balance** | [**BillingAccountBalance**](BillingAccountBalance.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_billing_balance_response import V1beta1GetBillingBalanceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetBillingBalanceResponse from a JSON string +v1beta1_get_billing_balance_response_instance = V1beta1GetBillingBalanceResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetBillingBalanceResponse.to_json() + +# convert the object into a dict +v1beta1_get_billing_balance_response_dict = v1beta1_get_billing_balance_response_instance.to_dict() +# create an instance of V1beta1GetBillingBalanceResponse from a dict +v1beta1_get_billing_balance_response_form_dict = v1beta1_get_billing_balance_response.from_dict(v1beta1_get_billing_balance_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetCurrentUserResponse.md b/docs/V1beta1GetCurrentUserResponse.md new file mode 100644 index 0000000..25cd03e --- /dev/null +++ b/docs/V1beta1GetCurrentUserResponse.md @@ -0,0 +1,29 @@ +# V1beta1GetCurrentUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**V1beta1User**](V1beta1User.md) | | [optional] +**serviceuser** | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetCurrentUserResponse from a JSON string +v1beta1_get_current_user_response_instance = V1beta1GetCurrentUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetCurrentUserResponse.to_json() + +# convert the object into a dict +v1beta1_get_current_user_response_dict = v1beta1_get_current_user_response_instance.to_dict() +# create an instance of V1beta1GetCurrentUserResponse from a dict +v1beta1_get_current_user_response_form_dict = v1beta1_get_current_user_response.from_dict(v1beta1_get_current_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetFeatureResponse.md b/docs/V1beta1GetFeatureResponse.md new file mode 100644 index 0000000..a4f4403 --- /dev/null +++ b/docs/V1beta1GetFeatureResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetFeatureResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature** | [**V1beta1Feature**](V1beta1Feature.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_feature_response import V1beta1GetFeatureResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetFeatureResponse from a JSON string +v1beta1_get_feature_response_instance = V1beta1GetFeatureResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetFeatureResponse.to_json() + +# convert the object into a dict +v1beta1_get_feature_response_dict = v1beta1_get_feature_response_instance.to_dict() +# create an instance of V1beta1GetFeatureResponse from a dict +v1beta1_get_feature_response_form_dict = v1beta1_get_feature_response.from_dict(v1beta1_get_feature_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetGroupResponse.md b/docs/V1beta1GetGroupResponse.md new file mode 100644 index 0000000..18fb3b0 --- /dev/null +++ b/docs/V1beta1GetGroupResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetGroupResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**V1beta1Group**](V1beta1Group.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_group_response import V1beta1GetGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetGroupResponse from a JSON string +v1beta1_get_group_response_instance = V1beta1GetGroupResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetGroupResponse.to_json() + +# convert the object into a dict +v1beta1_get_group_response_dict = v1beta1_get_group_response_instance.to_dict() +# create an instance of V1beta1GetGroupResponse from a dict +v1beta1_get_group_response_form_dict = v1beta1_get_group_response.from_dict(v1beta1_get_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetJWKsResponse.md b/docs/V1beta1GetJWKsResponse.md new file mode 100644 index 0000000..d5565fa --- /dev/null +++ b/docs/V1beta1GetJWKsResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetJWKsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | [**List[V1beta1JSONWebKey]**](V1beta1JSONWebKey.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetJWKsResponse from a JSON string +v1beta1_get_jwks_response_instance = V1beta1GetJWKsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetJWKsResponse.to_json() + +# convert the object into a dict +v1beta1_get_jwks_response_dict = v1beta1_get_jwks_response_instance.to_dict() +# create an instance of V1beta1GetJWKsResponse from a dict +v1beta1_get_jwks_response_form_dict = v1beta1_get_jwks_response.from_dict(v1beta1_get_jwks_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetMetaSchemaResponse.md b/docs/V1beta1GetMetaSchemaResponse.md new file mode 100644 index 0000000..4d2cf1d --- /dev/null +++ b/docs/V1beta1GetMetaSchemaResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetMetaSchemaResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metaschema** | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetMetaSchemaResponse from a JSON string +v1beta1_get_meta_schema_response_instance = V1beta1GetMetaSchemaResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetMetaSchemaResponse.to_json() + +# convert the object into a dict +v1beta1_get_meta_schema_response_dict = v1beta1_get_meta_schema_response_instance.to_dict() +# create an instance of V1beta1GetMetaSchemaResponse from a dict +v1beta1_get_meta_schema_response_form_dict = v1beta1_get_meta_schema_response.from_dict(v1beta1_get_meta_schema_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetNamespaceResponse.md b/docs/V1beta1GetNamespaceResponse.md new file mode 100644 index 0000000..17336dd --- /dev/null +++ b/docs/V1beta1GetNamespaceResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetNamespaceResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespace** | [**V1beta1Namespace**](V1beta1Namespace.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetNamespaceResponse from a JSON string +v1beta1_get_namespace_response_instance = V1beta1GetNamespaceResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetNamespaceResponse.to_json() + +# convert the object into a dict +v1beta1_get_namespace_response_dict = v1beta1_get_namespace_response_instance.to_dict() +# create an instance of V1beta1GetNamespaceResponse from a dict +v1beta1_get_namespace_response_form_dict = v1beta1_get_namespace_response.from_dict(v1beta1_get_namespace_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetOrganizationAuditLogResponse.md b/docs/V1beta1GetOrganizationAuditLogResponse.md new file mode 100644 index 0000000..9bcfb0c --- /dev/null +++ b/docs/V1beta1GetOrganizationAuditLogResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetOrganizationAuditLogResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**log** | [**V1beta1AuditLog**](V1beta1AuditLog.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetOrganizationAuditLogResponse from a JSON string +v1beta1_get_organization_audit_log_response_instance = V1beta1GetOrganizationAuditLogResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetOrganizationAuditLogResponse.to_json() + +# convert the object into a dict +v1beta1_get_organization_audit_log_response_dict = v1beta1_get_organization_audit_log_response_instance.to_dict() +# create an instance of V1beta1GetOrganizationAuditLogResponse from a dict +v1beta1_get_organization_audit_log_response_form_dict = v1beta1_get_organization_audit_log_response.from_dict(v1beta1_get_organization_audit_log_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetOrganizationDomainResponse.md b/docs/V1beta1GetOrganizationDomainResponse.md new file mode 100644 index 0000000..f7ca687 --- /dev/null +++ b/docs/V1beta1GetOrganizationDomainResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetOrganizationDomainResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | [**V1beta1Domain**](V1beta1Domain.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetOrganizationDomainResponse from a JSON string +v1beta1_get_organization_domain_response_instance = V1beta1GetOrganizationDomainResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetOrganizationDomainResponse.to_json() + +# convert the object into a dict +v1beta1_get_organization_domain_response_dict = v1beta1_get_organization_domain_response_instance.to_dict() +# create an instance of V1beta1GetOrganizationDomainResponse from a dict +v1beta1_get_organization_domain_response_form_dict = v1beta1_get_organization_domain_response.from_dict(v1beta1_get_organization_domain_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetOrganizationInvitationResponse.md b/docs/V1beta1GetOrganizationInvitationResponse.md new file mode 100644 index 0000000..acccf88 --- /dev/null +++ b/docs/V1beta1GetOrganizationInvitationResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetOrganizationInvitationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invitation** | [**V1beta1Invitation**](V1beta1Invitation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetOrganizationInvitationResponse from a JSON string +v1beta1_get_organization_invitation_response_instance = V1beta1GetOrganizationInvitationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetOrganizationInvitationResponse.to_json() + +# convert the object into a dict +v1beta1_get_organization_invitation_response_dict = v1beta1_get_organization_invitation_response_instance.to_dict() +# create an instance of V1beta1GetOrganizationInvitationResponse from a dict +v1beta1_get_organization_invitation_response_form_dict = v1beta1_get_organization_invitation_response.from_dict(v1beta1_get_organization_invitation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetOrganizationResponse.md b/docs/V1beta1GetOrganizationResponse.md new file mode 100644 index 0000000..378e19a --- /dev/null +++ b/docs/V1beta1GetOrganizationResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetOrganizationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization** | [**V1beta1Organization**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_organization_response import V1beta1GetOrganizationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetOrganizationResponse from a JSON string +v1beta1_get_organization_response_instance = V1beta1GetOrganizationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetOrganizationResponse.to_json() + +# convert the object into a dict +v1beta1_get_organization_response_dict = v1beta1_get_organization_response_instance.to_dict() +# create an instance of V1beta1GetOrganizationResponse from a dict +v1beta1_get_organization_response_form_dict = v1beta1_get_organization_response.from_dict(v1beta1_get_organization_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetOrganizationRoleResponse.md b/docs/V1beta1GetOrganizationRoleResponse.md new file mode 100644 index 0000000..c29f4c6 --- /dev/null +++ b/docs/V1beta1GetOrganizationRoleResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetOrganizationRoleResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | [**V1beta1Role**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetOrganizationRoleResponse from a JSON string +v1beta1_get_organization_role_response_instance = V1beta1GetOrganizationRoleResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetOrganizationRoleResponse.to_json() + +# convert the object into a dict +v1beta1_get_organization_role_response_dict = v1beta1_get_organization_role_response_instance.to_dict() +# create an instance of V1beta1GetOrganizationRoleResponse from a dict +v1beta1_get_organization_role_response_form_dict = v1beta1_get_organization_role_response.from_dict(v1beta1_get_organization_role_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetPermissionResponse.md b/docs/V1beta1GetPermissionResponse.md new file mode 100644 index 0000000..85d816b --- /dev/null +++ b/docs/V1beta1GetPermissionResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetPermissionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | [**V1beta1Permission**](V1beta1Permission.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_permission_response import V1beta1GetPermissionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetPermissionResponse from a JSON string +v1beta1_get_permission_response_instance = V1beta1GetPermissionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetPermissionResponse.to_json() + +# convert the object into a dict +v1beta1_get_permission_response_dict = v1beta1_get_permission_response_instance.to_dict() +# create an instance of V1beta1GetPermissionResponse from a dict +v1beta1_get_permission_response_form_dict = v1beta1_get_permission_response.from_dict(v1beta1_get_permission_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetPlanResponse.md b/docs/V1beta1GetPlanResponse.md new file mode 100644 index 0000000..d8f6d83 --- /dev/null +++ b/docs/V1beta1GetPlanResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetPlanResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plan** | [**V1beta1Plan**](V1beta1Plan.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_plan_response import V1beta1GetPlanResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetPlanResponse from a JSON string +v1beta1_get_plan_response_instance = V1beta1GetPlanResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetPlanResponse.to_json() + +# convert the object into a dict +v1beta1_get_plan_response_dict = v1beta1_get_plan_response_instance.to_dict() +# create an instance of V1beta1GetPlanResponse from a dict +v1beta1_get_plan_response_form_dict = v1beta1_get_plan_response.from_dict(v1beta1_get_plan_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetPolicyResponse.md b/docs/V1beta1GetPolicyResponse.md new file mode 100644 index 0000000..f8dd7ae --- /dev/null +++ b/docs/V1beta1GetPolicyResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetPolicyResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**V1beta1Policy**](V1beta1Policy.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_policy_response import V1beta1GetPolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetPolicyResponse from a JSON string +v1beta1_get_policy_response_instance = V1beta1GetPolicyResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetPolicyResponse.to_json() + +# convert the object into a dict +v1beta1_get_policy_response_dict = v1beta1_get_policy_response_instance.to_dict() +# create an instance of V1beta1GetPolicyResponse from a dict +v1beta1_get_policy_response_form_dict = v1beta1_get_policy_response.from_dict(v1beta1_get_policy_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetProjectResourceResponse.md b/docs/V1beta1GetProjectResourceResponse.md new file mode 100644 index 0000000..fa9093a --- /dev/null +++ b/docs/V1beta1GetProjectResourceResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetProjectResourceResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource** | [**V1beta1Resource**](V1beta1Resource.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetProjectResourceResponse from a JSON string +v1beta1_get_project_resource_response_instance = V1beta1GetProjectResourceResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetProjectResourceResponse.to_json() + +# convert the object into a dict +v1beta1_get_project_resource_response_dict = v1beta1_get_project_resource_response_instance.to_dict() +# create an instance of V1beta1GetProjectResourceResponse from a dict +v1beta1_get_project_resource_response_form_dict = v1beta1_get_project_resource_response.from_dict(v1beta1_get_project_resource_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetProjectResponse.md b/docs/V1beta1GetProjectResponse.md new file mode 100644 index 0000000..7c5318f --- /dev/null +++ b/docs/V1beta1GetProjectResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetProjectResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project** | [**V1beta1Project**](V1beta1Project.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_project_response import V1beta1GetProjectResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetProjectResponse from a JSON string +v1beta1_get_project_response_instance = V1beta1GetProjectResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetProjectResponse.to_json() + +# convert the object into a dict +v1beta1_get_project_response_dict = v1beta1_get_project_response_instance.to_dict() +# create an instance of V1beta1GetProjectResponse from a dict +v1beta1_get_project_response_form_dict = v1beta1_get_project_response.from_dict(v1beta1_get_project_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetRelationResponse.md b/docs/V1beta1GetRelationResponse.md new file mode 100644 index 0000000..391ba64 --- /dev/null +++ b/docs/V1beta1GetRelationResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetRelationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**relation** | [**V1beta1Relation**](V1beta1Relation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_relation_response import V1beta1GetRelationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetRelationResponse from a JSON string +v1beta1_get_relation_response_instance = V1beta1GetRelationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetRelationResponse.to_json() + +# convert the object into a dict +v1beta1_get_relation_response_dict = v1beta1_get_relation_response_instance.to_dict() +# create an instance of V1beta1GetRelationResponse from a dict +v1beta1_get_relation_response_form_dict = v1beta1_get_relation_response.from_dict(v1beta1_get_relation_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetServiceUserKeyResponse.md b/docs/V1beta1GetServiceUserKeyResponse.md new file mode 100644 index 0000000..a67e288 --- /dev/null +++ b/docs/V1beta1GetServiceUserKeyResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetServiceUserKeyResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | [**List[V1beta1JSONWebKey]**](V1beta1JSONWebKey.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetServiceUserKeyResponse from a JSON string +v1beta1_get_service_user_key_response_instance = V1beta1GetServiceUserKeyResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetServiceUserKeyResponse.to_json() + +# convert the object into a dict +v1beta1_get_service_user_key_response_dict = v1beta1_get_service_user_key_response_instance.to_dict() +# create an instance of V1beta1GetServiceUserKeyResponse from a dict +v1beta1_get_service_user_key_response_form_dict = v1beta1_get_service_user_key_response.from_dict(v1beta1_get_service_user_key_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetServiceUserResponse.md b/docs/V1beta1GetServiceUserResponse.md new file mode 100644 index 0000000..a5250bb --- /dev/null +++ b/docs/V1beta1GetServiceUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetServiceUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceuser** | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetServiceUserResponse from a JSON string +v1beta1_get_service_user_response_instance = V1beta1GetServiceUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetServiceUserResponse.to_json() + +# convert the object into a dict +v1beta1_get_service_user_response_dict = v1beta1_get_service_user_response_instance.to_dict() +# create an instance of V1beta1GetServiceUserResponse from a dict +v1beta1_get_service_user_response_form_dict = v1beta1_get_service_user_response.from_dict(v1beta1_get_service_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetSubscriptionResponse.md b/docs/V1beta1GetSubscriptionResponse.md new file mode 100644 index 0000000..4d12114 --- /dev/null +++ b/docs/V1beta1GetSubscriptionResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetSubscriptionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription** | [**V1beta1Subscription**](V1beta1Subscription.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_subscription_response import V1beta1GetSubscriptionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetSubscriptionResponse from a JSON string +v1beta1_get_subscription_response_instance = V1beta1GetSubscriptionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetSubscriptionResponse.to_json() + +# convert the object into a dict +v1beta1_get_subscription_response_dict = v1beta1_get_subscription_response_instance.to_dict() +# create an instance of V1beta1GetSubscriptionResponse from a dict +v1beta1_get_subscription_response_form_dict = v1beta1_get_subscription_response.from_dict(v1beta1_get_subscription_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GetUserResponse.md b/docs/V1beta1GetUserResponse.md new file mode 100644 index 0000000..ece1d42 --- /dev/null +++ b/docs/V1beta1GetUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1GetUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**V1beta1User**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_get_user_response import V1beta1GetUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GetUserResponse from a JSON string +v1beta1_get_user_response_instance = V1beta1GetUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1GetUserResponse.to_json() + +# convert the object into a dict +v1beta1_get_user_response_dict = v1beta1_get_user_response_instance.to_dict() +# create an instance of V1beta1GetUserResponse from a dict +v1beta1_get_user_response_form_dict = v1beta1_get_user_response.from_dict(v1beta1_get_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Group.md b/docs/V1beta1Group.md new file mode 100644 index 0000000..c5e1505 --- /dev/null +++ b/docs/V1beta1Group.md @@ -0,0 +1,35 @@ +# V1beta1Group + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**org_id** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the group was created. | [optional] +**updated_at** | **datetime** | The time the group was last updated. | [optional] +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] [readonly] + +## Example + +```python +from frontier_api.models.v1beta1_group import V1beta1Group + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Group from a JSON string +v1beta1_group_instance = V1beta1Group.from_json(json) +# print the JSON string representation of the object +print V1beta1Group.to_json() + +# convert the object into a dict +v1beta1_group_dict = v1beta1_group_instance.to_dict() +# create an instance of V1beta1Group from a dict +v1beta1_group_form_dict = v1beta1_group.from_dict(v1beta1_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1GroupRequestBody.md b/docs/V1beta1GroupRequestBody.md new file mode 100644 index 0000000..e1e7699 --- /dev/null +++ b/docs/V1beta1GroupRequestBody.md @@ -0,0 +1,30 @@ +# V1beta1GroupRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the group. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores. | +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the group. Can also be left empty. | [optional] +**metadata** | **object** | Metadata object for groups that can hold key value pairs defined in Group Metaschema. The metadata object can be used to store arbitrary information about the group such as labels, descriptions etc. The default Group Metaschema contains labels and descripton fields. Update the Group Metaschema to add more fields.<br/>*Example:*`{\"labels\": {\"key\": \"value\"}, \"description\": \"Group description\"}` | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1GroupRequestBody from a JSON string +v1beta1_group_request_body_instance = V1beta1GroupRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1GroupRequestBody.to_json() + +# convert the object into a dict +v1beta1_group_request_body_dict = v1beta1_group_request_body_instance.to_dict() +# create an instance of V1beta1GroupRequestBody from a dict +v1beta1_group_request_body_form_dict = v1beta1_group_request_body.from_dict(v1beta1_group_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Invitation.md b/docs/V1beta1Invitation.md new file mode 100644 index 0000000..434067e --- /dev/null +++ b/docs/V1beta1Invitation.md @@ -0,0 +1,35 @@ +# V1beta1Invitation + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique invitation identifier. | [optional] +**user_id** | **str** | The user email of the invited user. | [optional] +**org_id** | **str** | The organization id to which the user is invited. | [optional] +**group_ids** | **List[str]** | The list of group ids to which the user is invited. | [optional] +**metadata** | **object** | The metadata of the invitation. | [optional] +**created_at** | **datetime** | The time when the invitation was created. | [optional] +**expires_at** | **datetime** | The time when the invitation expires. | [optional] +**role_ids** | **List[str]** | The list of role ids to which the user is invited in an organization. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_invitation import V1beta1Invitation + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Invitation from a JSON string +v1beta1_invitation_instance = V1beta1Invitation.from_json(json) +# print the JSON string representation of the object +print V1beta1Invitation.to_json() + +# convert the object into a dict +v1beta1_invitation_dict = v1beta1_invitation_instance.to_dict() +# create an instance of V1beta1Invitation from a dict +v1beta1_invitation_form_dict = v1beta1_invitation.from_dict(v1beta1_invitation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1JSONWebKey.md b/docs/V1beta1JSONWebKey.md new file mode 100644 index 0000000..aa91b31 --- /dev/null +++ b/docs/V1beta1JSONWebKey.md @@ -0,0 +1,36 @@ +# V1beta1JSONWebKey + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kty** | **str** | Key Type. | [optional] +**alg** | **str** | Algorithm. | [optional] +**use** | **str** | Permitted uses for the public keys. | [optional] +**kid** | **str** | Key ID. | [optional] +**n** | **str** | Used for RSA keys. | [optional] +**e** | **str** | Used for RSA keys. | [optional] +**x** | **str** | Used for ECDSA keys. | [optional] +**y** | **str** | Used for ECDSA keys. | [optional] +**crv** | **str** | Used for ECDSA keys. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_json_web_key import V1beta1JSONWebKey + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1JSONWebKey from a JSON string +v1beta1_json_web_key_instance = V1beta1JSONWebKey.from_json(json) +# print the JSON string representation of the object +print V1beta1JSONWebKey.to_json() + +# convert the object into a dict +v1beta1_json_web_key_dict = v1beta1_json_web_key_instance.to_dict() +# create an instance of V1beta1JSONWebKey from a dict +v1beta1_json_web_key_form_dict = v1beta1_json_web_key.from_dict(v1beta1_json_web_key_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1KeyCredential.md b/docs/V1beta1KeyCredential.md new file mode 100644 index 0000000..7d3232a --- /dev/null +++ b/docs/V1beta1KeyCredential.md @@ -0,0 +1,31 @@ +# V1beta1KeyCredential + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**kid** | **str** | | [optional] +**principal_id** | **str** | | [optional] +**private_key** | **str** | | [optional] [readonly] + +## Example + +```python +from frontier_api.models.v1beta1_key_credential import V1beta1KeyCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1KeyCredential from a JSON string +v1beta1_key_credential_instance = V1beta1KeyCredential.from_json(json) +# print the JSON string representation of the object +print V1beta1KeyCredential.to_json() + +# convert the object into a dict +v1beta1_key_credential_dict = v1beta1_key_credential_instance.to_dict() +# create an instance of V1beta1KeyCredential from a dict +v1beta1_key_credential_form_dict = v1beta1_key_credential.from_dict(v1beta1_key_credential_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListAllOrganizationsResponse.md b/docs/V1beta1ListAllOrganizationsResponse.md new file mode 100644 index 0000000..f114a96 --- /dev/null +++ b/docs/V1beta1ListAllOrganizationsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListAllOrganizationsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organizations** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListAllOrganizationsResponse from a JSON string +v1beta1_list_all_organizations_response_instance = V1beta1ListAllOrganizationsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListAllOrganizationsResponse.to_json() + +# convert the object into a dict +v1beta1_list_all_organizations_response_dict = v1beta1_list_all_organizations_response_instance.to_dict() +# create an instance of V1beta1ListAllOrganizationsResponse from a dict +v1beta1_list_all_organizations_response_form_dict = v1beta1_list_all_organizations_response.from_dict(v1beta1_list_all_organizations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListAllUsersResponse.md b/docs/V1beta1ListAllUsersResponse.md new file mode 100644 index 0000000..7caa457 --- /dev/null +++ b/docs/V1beta1ListAllUsersResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListAllUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListAllUsersResponse from a JSON string +v1beta1_list_all_users_response_instance = V1beta1ListAllUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListAllUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_all_users_response_dict = v1beta1_list_all_users_response_instance.to_dict() +# create an instance of V1beta1ListAllUsersResponse from a dict +v1beta1_list_all_users_response_form_dict = v1beta1_list_all_users_response.from_dict(v1beta1_list_all_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListAuthStrategiesResponse.md b/docs/V1beta1ListAuthStrategiesResponse.md new file mode 100644 index 0000000..4a4bd57 --- /dev/null +++ b/docs/V1beta1ListAuthStrategiesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListAuthStrategiesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**strategies** | [**List[V1beta1AuthStrategy]**](V1beta1AuthStrategy.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListAuthStrategiesResponse from a JSON string +v1beta1_list_auth_strategies_response_instance = V1beta1ListAuthStrategiesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListAuthStrategiesResponse.to_json() + +# convert the object into a dict +v1beta1_list_auth_strategies_response_dict = v1beta1_list_auth_strategies_response_instance.to_dict() +# create an instance of V1beta1ListAuthStrategiesResponse from a dict +v1beta1_list_auth_strategies_response_form_dict = v1beta1_list_auth_strategies_response.from_dict(v1beta1_list_auth_strategies_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListBillingAccountsResponse.md b/docs/V1beta1ListBillingAccountsResponse.md new file mode 100644 index 0000000..86224e6 --- /dev/null +++ b/docs/V1beta1ListBillingAccountsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListBillingAccountsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_accounts** | [**List[V1beta1BillingAccount]**](V1beta1BillingAccount.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_billing_accounts_response import V1beta1ListBillingAccountsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListBillingAccountsResponse from a JSON string +v1beta1_list_billing_accounts_response_instance = V1beta1ListBillingAccountsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListBillingAccountsResponse.to_json() + +# convert the object into a dict +v1beta1_list_billing_accounts_response_dict = v1beta1_list_billing_accounts_response_instance.to_dict() +# create an instance of V1beta1ListBillingAccountsResponse from a dict +v1beta1_list_billing_accounts_response_form_dict = v1beta1_list_billing_accounts_response.from_dict(v1beta1_list_billing_accounts_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListBillingTransactionsResponse.md b/docs/V1beta1ListBillingTransactionsResponse.md new file mode 100644 index 0000000..29fb6df --- /dev/null +++ b/docs/V1beta1ListBillingTransactionsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListBillingTransactionsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transactions** | [**List[V1beta1BillingTransaction]**](V1beta1BillingTransaction.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_billing_transactions_response import V1beta1ListBillingTransactionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListBillingTransactionsResponse from a JSON string +v1beta1_list_billing_transactions_response_instance = V1beta1ListBillingTransactionsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListBillingTransactionsResponse.to_json() + +# convert the object into a dict +v1beta1_list_billing_transactions_response_dict = v1beta1_list_billing_transactions_response_instance.to_dict() +# create an instance of V1beta1ListBillingTransactionsResponse from a dict +v1beta1_list_billing_transactions_response_form_dict = v1beta1_list_billing_transactions_response.from_dict(v1beta1_list_billing_transactions_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListCheckoutsResponse.md b/docs/V1beta1ListCheckoutsResponse.md new file mode 100644 index 0000000..57ec93b --- /dev/null +++ b/docs/V1beta1ListCheckoutsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListCheckoutsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checkout_sessions** | [**List[V1beta1CheckoutSession]**](V1beta1CheckoutSession.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_checkouts_response import V1beta1ListCheckoutsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListCheckoutsResponse from a JSON string +v1beta1_list_checkouts_response_instance = V1beta1ListCheckoutsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListCheckoutsResponse.to_json() + +# convert the object into a dict +v1beta1_list_checkouts_response_dict = v1beta1_list_checkouts_response_instance.to_dict() +# create an instance of V1beta1ListCheckoutsResponse from a dict +v1beta1_list_checkouts_response_form_dict = v1beta1_list_checkouts_response.from_dict(v1beta1_list_checkouts_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListCurrentUserGroupsResponse.md b/docs/V1beta1ListCurrentUserGroupsResponse.md new file mode 100644 index 0000000..219bd25 --- /dev/null +++ b/docs/V1beta1ListCurrentUserGroupsResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListCurrentUserGroupsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**List[V1beta1Group]**](V1beta1Group.md) | | [optional] +**access_pairs** | [**List[V1beta1ListCurrentUserGroupsResponseAccessPair]**](V1beta1ListCurrentUserGroupsResponseAccessPair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListCurrentUserGroupsResponse from a JSON string +v1beta1_list_current_user_groups_response_instance = V1beta1ListCurrentUserGroupsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListCurrentUserGroupsResponse.to_json() + +# convert the object into a dict +v1beta1_list_current_user_groups_response_dict = v1beta1_list_current_user_groups_response_instance.to_dict() +# create an instance of V1beta1ListCurrentUserGroupsResponse from a dict +v1beta1_list_current_user_groups_response_form_dict = v1beta1_list_current_user_groups_response.from_dict(v1beta1_list_current_user_groups_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListCurrentUserGroupsResponseAccessPair.md b/docs/V1beta1ListCurrentUserGroupsResponseAccessPair.md new file mode 100644 index 0000000..e5e4e8a --- /dev/null +++ b/docs/V1beta1ListCurrentUserGroupsResponseAccessPair.md @@ -0,0 +1,29 @@ +# V1beta1ListCurrentUserGroupsResponseAccessPair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_id** | **str** | | [optional] +**permissions** | **List[str]** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListCurrentUserGroupsResponseAccessPair from a JSON string +v1beta1_list_current_user_groups_response_access_pair_instance = V1beta1ListCurrentUserGroupsResponseAccessPair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListCurrentUserGroupsResponseAccessPair.to_json() + +# convert the object into a dict +v1beta1_list_current_user_groups_response_access_pair_dict = v1beta1_list_current_user_groups_response_access_pair_instance.to_dict() +# create an instance of V1beta1ListCurrentUserGroupsResponseAccessPair from a dict +v1beta1_list_current_user_groups_response_access_pair_form_dict = v1beta1_list_current_user_groups_response_access_pair.from_dict(v1beta1_list_current_user_groups_response_access_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListCurrentUserInvitationsResponse.md b/docs/V1beta1ListCurrentUserInvitationsResponse.md new file mode 100644 index 0000000..2d36691 --- /dev/null +++ b/docs/V1beta1ListCurrentUserInvitationsResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListCurrentUserInvitationsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invitations** | [**List[V1beta1Invitation]**](V1beta1Invitation.md) | | [optional] +**orgs** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_current_user_invitations_response import V1beta1ListCurrentUserInvitationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListCurrentUserInvitationsResponse from a JSON string +v1beta1_list_current_user_invitations_response_instance = V1beta1ListCurrentUserInvitationsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListCurrentUserInvitationsResponse.to_json() + +# convert the object into a dict +v1beta1_list_current_user_invitations_response_dict = v1beta1_list_current_user_invitations_response_instance.to_dict() +# create an instance of V1beta1ListCurrentUserInvitationsResponse from a dict +v1beta1_list_current_user_invitations_response_form_dict = v1beta1_list_current_user_invitations_response.from_dict(v1beta1_list_current_user_invitations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListCurrentUserPreferencesResponse.md b/docs/V1beta1ListCurrentUserPreferencesResponse.md new file mode 100644 index 0000000..ddf0251 --- /dev/null +++ b/docs/V1beta1ListCurrentUserPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListCurrentUserPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListCurrentUserPreferencesResponse from a JSON string +v1beta1_list_current_user_preferences_response_instance = V1beta1ListCurrentUserPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListCurrentUserPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_list_current_user_preferences_response_dict = v1beta1_list_current_user_preferences_response_instance.to_dict() +# create an instance of V1beta1ListCurrentUserPreferencesResponse from a dict +v1beta1_list_current_user_preferences_response_form_dict = v1beta1_list_current_user_preferences_response.from_dict(v1beta1_list_current_user_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListFeaturesResponse.md b/docs/V1beta1ListFeaturesResponse.md new file mode 100644 index 0000000..5344f8e --- /dev/null +++ b/docs/V1beta1ListFeaturesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListFeaturesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**features** | [**List[V1beta1Feature]**](V1beta1Feature.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_features_response import V1beta1ListFeaturesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListFeaturesResponse from a JSON string +v1beta1_list_features_response_instance = V1beta1ListFeaturesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListFeaturesResponse.to_json() + +# convert the object into a dict +v1beta1_list_features_response_dict = v1beta1_list_features_response_instance.to_dict() +# create an instance of V1beta1ListFeaturesResponse from a dict +v1beta1_list_features_response_form_dict = v1beta1_list_features_response.from_dict(v1beta1_list_features_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListGroupPreferencesResponse.md b/docs/V1beta1ListGroupPreferencesResponse.md new file mode 100644 index 0000000..eddac20 --- /dev/null +++ b/docs/V1beta1ListGroupPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListGroupPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListGroupPreferencesResponse from a JSON string +v1beta1_list_group_preferences_response_instance = V1beta1ListGroupPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListGroupPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_list_group_preferences_response_dict = v1beta1_list_group_preferences_response_instance.to_dict() +# create an instance of V1beta1ListGroupPreferencesResponse from a dict +v1beta1_list_group_preferences_response_form_dict = v1beta1_list_group_preferences_response.from_dict(v1beta1_list_group_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListGroupUsersResponse.md b/docs/V1beta1ListGroupUsersResponse.md new file mode 100644 index 0000000..85ebc3e --- /dev/null +++ b/docs/V1beta1ListGroupUsersResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListGroupUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] +**role_pairs** | [**List[V1beta1ListGroupUsersResponseRolePair]**](V1beta1ListGroupUsersResponseRolePair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListGroupUsersResponse from a JSON string +v1beta1_list_group_users_response_instance = V1beta1ListGroupUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListGroupUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_group_users_response_dict = v1beta1_list_group_users_response_instance.to_dict() +# create an instance of V1beta1ListGroupUsersResponse from a dict +v1beta1_list_group_users_response_form_dict = v1beta1_list_group_users_response.from_dict(v1beta1_list_group_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListGroupUsersResponseRolePair.md b/docs/V1beta1ListGroupUsersResponseRolePair.md new file mode 100644 index 0000000..feb4eee --- /dev/null +++ b/docs/V1beta1ListGroupUsersResponseRolePair.md @@ -0,0 +1,29 @@ +# V1beta1ListGroupUsersResponseRolePair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | | [optional] +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListGroupUsersResponseRolePair from a JSON string +v1beta1_list_group_users_response_role_pair_instance = V1beta1ListGroupUsersResponseRolePair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListGroupUsersResponseRolePair.to_json() + +# convert the object into a dict +v1beta1_list_group_users_response_role_pair_dict = v1beta1_list_group_users_response_role_pair_instance.to_dict() +# create an instance of V1beta1ListGroupUsersResponseRolePair from a dict +v1beta1_list_group_users_response_role_pair_form_dict = v1beta1_list_group_users_response_role_pair.from_dict(v1beta1_list_group_users_response_role_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListGroupsResponse.md b/docs/V1beta1ListGroupsResponse.md new file mode 100644 index 0000000..51bd418 --- /dev/null +++ b/docs/V1beta1ListGroupsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListGroupsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**List[V1beta1Group]**](V1beta1Group.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_groups_response import V1beta1ListGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListGroupsResponse from a JSON string +v1beta1_list_groups_response_instance = V1beta1ListGroupsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListGroupsResponse.to_json() + +# convert the object into a dict +v1beta1_list_groups_response_dict = v1beta1_list_groups_response_instance.to_dict() +# create an instance of V1beta1ListGroupsResponse from a dict +v1beta1_list_groups_response_form_dict = v1beta1_list_groups_response.from_dict(v1beta1_list_groups_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListMetaSchemasResponse.md b/docs/V1beta1ListMetaSchemasResponse.md new file mode 100644 index 0000000..28ddfcb --- /dev/null +++ b/docs/V1beta1ListMetaSchemasResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListMetaSchemasResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metaschemas** | [**List[V1beta1MetaSchema]**](V1beta1MetaSchema.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListMetaSchemasResponse from a JSON string +v1beta1_list_meta_schemas_response_instance = V1beta1ListMetaSchemasResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListMetaSchemasResponse.to_json() + +# convert the object into a dict +v1beta1_list_meta_schemas_response_dict = v1beta1_list_meta_schemas_response_instance.to_dict() +# create an instance of V1beta1ListMetaSchemasResponse from a dict +v1beta1_list_meta_schemas_response_form_dict = v1beta1_list_meta_schemas_response.from_dict(v1beta1_list_meta_schemas_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListNamespacesResponse.md b/docs/V1beta1ListNamespacesResponse.md new file mode 100644 index 0000000..d811f14 --- /dev/null +++ b/docs/V1beta1ListNamespacesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListNamespacesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**namespaces** | [**List[V1beta1Namespace]**](V1beta1Namespace.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListNamespacesResponse from a JSON string +v1beta1_list_namespaces_response_instance = V1beta1ListNamespacesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListNamespacesResponse.to_json() + +# convert the object into a dict +v1beta1_list_namespaces_response_dict = v1beta1_list_namespaces_response_instance.to_dict() +# create an instance of V1beta1ListNamespacesResponse from a dict +v1beta1_list_namespaces_response_form_dict = v1beta1_list_namespaces_response.from_dict(v1beta1_list_namespaces_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationAdminsResponse.md b/docs/V1beta1ListOrganizationAdminsResponse.md new file mode 100644 index 0000000..8044ccc --- /dev/null +++ b/docs/V1beta1ListOrganizationAdminsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationAdminsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationAdminsResponse from a JSON string +v1beta1_list_organization_admins_response_instance = V1beta1ListOrganizationAdminsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationAdminsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_admins_response_dict = v1beta1_list_organization_admins_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationAdminsResponse from a dict +v1beta1_list_organization_admins_response_form_dict = v1beta1_list_organization_admins_response.from_dict(v1beta1_list_organization_admins_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationAuditLogsResponse.md b/docs/V1beta1ListOrganizationAuditLogsResponse.md new file mode 100644 index 0000000..783b2e5 --- /dev/null +++ b/docs/V1beta1ListOrganizationAuditLogsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationAuditLogsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [**List[V1beta1AuditLog]**](V1beta1AuditLog.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationAuditLogsResponse from a JSON string +v1beta1_list_organization_audit_logs_response_instance = V1beta1ListOrganizationAuditLogsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationAuditLogsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_audit_logs_response_dict = v1beta1_list_organization_audit_logs_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationAuditLogsResponse from a dict +v1beta1_list_organization_audit_logs_response_form_dict = v1beta1_list_organization_audit_logs_response.from_dict(v1beta1_list_organization_audit_logs_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationDomainsResponse.md b/docs/V1beta1ListOrganizationDomainsResponse.md new file mode 100644 index 0000000..1f03dcb --- /dev/null +++ b/docs/V1beta1ListOrganizationDomainsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationDomainsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domains** | [**List[V1beta1Domain]**](V1beta1Domain.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationDomainsResponse from a JSON string +v1beta1_list_organization_domains_response_instance = V1beta1ListOrganizationDomainsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationDomainsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_domains_response_dict = v1beta1_list_organization_domains_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationDomainsResponse from a dict +v1beta1_list_organization_domains_response_form_dict = v1beta1_list_organization_domains_response.from_dict(v1beta1_list_organization_domains_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationGroupsResponse.md b/docs/V1beta1ListOrganizationGroupsResponse.md new file mode 100644 index 0000000..80361b1 --- /dev/null +++ b/docs/V1beta1ListOrganizationGroupsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationGroupsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**List[V1beta1Group]**](V1beta1Group.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationGroupsResponse from a JSON string +v1beta1_list_organization_groups_response_instance = V1beta1ListOrganizationGroupsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationGroupsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_groups_response_dict = v1beta1_list_organization_groups_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationGroupsResponse from a dict +v1beta1_list_organization_groups_response_form_dict = v1beta1_list_organization_groups_response.from_dict(v1beta1_list_organization_groups_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationInvitationsResponse.md b/docs/V1beta1ListOrganizationInvitationsResponse.md new file mode 100644 index 0000000..abbc329 --- /dev/null +++ b/docs/V1beta1ListOrganizationInvitationsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationInvitationsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invitations** | [**List[V1beta1Invitation]**](V1beta1Invitation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationInvitationsResponse from a JSON string +v1beta1_list_organization_invitations_response_instance = V1beta1ListOrganizationInvitationsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationInvitationsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_invitations_response_dict = v1beta1_list_organization_invitations_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationInvitationsResponse from a dict +v1beta1_list_organization_invitations_response_form_dict = v1beta1_list_organization_invitations_response.from_dict(v1beta1_list_organization_invitations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationPreferencesResponse.md b/docs/V1beta1ListOrganizationPreferencesResponse.md new file mode 100644 index 0000000..b0a65f1 --- /dev/null +++ b/docs/V1beta1ListOrganizationPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationPreferencesResponse from a JSON string +v1beta1_list_organization_preferences_response_instance = V1beta1ListOrganizationPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_preferences_response_dict = v1beta1_list_organization_preferences_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationPreferencesResponse from a dict +v1beta1_list_organization_preferences_response_form_dict = v1beta1_list_organization_preferences_response.from_dict(v1beta1_list_organization_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationProjectsResponse.md b/docs/V1beta1ListOrganizationProjectsResponse.md new file mode 100644 index 0000000..f28ad24 --- /dev/null +++ b/docs/V1beta1ListOrganizationProjectsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationProjectsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projects** | [**List[V1beta1Project]**](V1beta1Project.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationProjectsResponse from a JSON string +v1beta1_list_organization_projects_response_instance = V1beta1ListOrganizationProjectsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationProjectsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_projects_response_dict = v1beta1_list_organization_projects_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationProjectsResponse from a dict +v1beta1_list_organization_projects_response_form_dict = v1beta1_list_organization_projects_response.from_dict(v1beta1_list_organization_projects_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationRolesResponse.md b/docs/V1beta1ListOrganizationRolesResponse.md new file mode 100644 index 0000000..d435876 --- /dev/null +++ b/docs/V1beta1ListOrganizationRolesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationRolesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationRolesResponse from a JSON string +v1beta1_list_organization_roles_response_instance = V1beta1ListOrganizationRolesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationRolesResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_roles_response_dict = v1beta1_list_organization_roles_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationRolesResponse from a dict +v1beta1_list_organization_roles_response_form_dict = v1beta1_list_organization_roles_response.from_dict(v1beta1_list_organization_roles_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationServiceUsersResponse.md b/docs/V1beta1ListOrganizationServiceUsersResponse.md new file mode 100644 index 0000000..c832b3c --- /dev/null +++ b/docs/V1beta1ListOrganizationServiceUsersResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationServiceUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceusers** | [**List[V1beta1ServiceUser]**](V1beta1ServiceUser.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationServiceUsersResponse from a JSON string +v1beta1_list_organization_service_users_response_instance = V1beta1ListOrganizationServiceUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationServiceUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_service_users_response_dict = v1beta1_list_organization_service_users_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationServiceUsersResponse from a dict +v1beta1_list_organization_service_users_response_form_dict = v1beta1_list_organization_service_users_response.from_dict(v1beta1_list_organization_service_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationUsersResponse.md b/docs/V1beta1ListOrganizationUsersResponse.md new file mode 100644 index 0000000..1258712 --- /dev/null +++ b/docs/V1beta1ListOrganizationUsersResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListOrganizationUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] +**role_pairs** | [**List[V1beta1ListOrganizationUsersResponseRolePair]**](V1beta1ListOrganizationUsersResponseRolePair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationUsersResponse from a JSON string +v1beta1_list_organization_users_response_instance = V1beta1ListOrganizationUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_organization_users_response_dict = v1beta1_list_organization_users_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationUsersResponse from a dict +v1beta1_list_organization_users_response_form_dict = v1beta1_list_organization_users_response.from_dict(v1beta1_list_organization_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationUsersResponseRolePair.md b/docs/V1beta1ListOrganizationUsersResponseRolePair.md new file mode 100644 index 0000000..1fc890e --- /dev/null +++ b/docs/V1beta1ListOrganizationUsersResponseRolePair.md @@ -0,0 +1,29 @@ +# V1beta1ListOrganizationUsersResponseRolePair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | | [optional] +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organization_users_response_role_pair import V1beta1ListOrganizationUsersResponseRolePair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationUsersResponseRolePair from a JSON string +v1beta1_list_organization_users_response_role_pair_instance = V1beta1ListOrganizationUsersResponseRolePair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationUsersResponseRolePair.to_json() + +# convert the object into a dict +v1beta1_list_organization_users_response_role_pair_dict = v1beta1_list_organization_users_response_role_pair_instance.to_dict() +# create an instance of V1beta1ListOrganizationUsersResponseRolePair from a dict +v1beta1_list_organization_users_response_role_pair_form_dict = v1beta1_list_organization_users_response_role_pair.from_dict(v1beta1_list_organization_users_response_role_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationsByCurrentUserResponse.md b/docs/V1beta1ListOrganizationsByCurrentUserResponse.md new file mode 100644 index 0000000..95d1eb3 --- /dev/null +++ b/docs/V1beta1ListOrganizationsByCurrentUserResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListOrganizationsByCurrentUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organizations** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] +**joinable_via_domain** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationsByCurrentUserResponse from a JSON string +v1beta1_list_organizations_by_current_user_response_instance = V1beta1ListOrganizationsByCurrentUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationsByCurrentUserResponse.to_json() + +# convert the object into a dict +v1beta1_list_organizations_by_current_user_response_dict = v1beta1_list_organizations_by_current_user_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationsByCurrentUserResponse from a dict +v1beta1_list_organizations_by_current_user_response_form_dict = v1beta1_list_organizations_by_current_user_response.from_dict(v1beta1_list_organizations_by_current_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationsByUserResponse.md b/docs/V1beta1ListOrganizationsByUserResponse.md new file mode 100644 index 0000000..a4bab57 --- /dev/null +++ b/docs/V1beta1ListOrganizationsByUserResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListOrganizationsByUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organizations** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] +**joinable_via_domain** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationsByUserResponse from a JSON string +v1beta1_list_organizations_by_user_response_instance = V1beta1ListOrganizationsByUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationsByUserResponse.to_json() + +# convert the object into a dict +v1beta1_list_organizations_by_user_response_dict = v1beta1_list_organizations_by_user_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationsByUserResponse from a dict +v1beta1_list_organizations_by_user_response_form_dict = v1beta1_list_organizations_by_user_response.from_dict(v1beta1_list_organizations_by_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListOrganizationsResponse.md b/docs/V1beta1ListOrganizationsResponse.md new file mode 100644 index 0000000..3b24e0b --- /dev/null +++ b/docs/V1beta1ListOrganizationsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListOrganizationsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organizations** | [**List[V1beta1Organization]**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListOrganizationsResponse from a JSON string +v1beta1_list_organizations_response_instance = V1beta1ListOrganizationsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListOrganizationsResponse.to_json() + +# convert the object into a dict +v1beta1_list_organizations_response_dict = v1beta1_list_organizations_response_instance.to_dict() +# create an instance of V1beta1ListOrganizationsResponse from a dict +v1beta1_list_organizations_response_form_dict = v1beta1_list_organizations_response.from_dict(v1beta1_list_organizations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListPermissionsResponse.md b/docs/V1beta1ListPermissionsResponse.md new file mode 100644 index 0000000..f6f35ab --- /dev/null +++ b/docs/V1beta1ListPermissionsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListPermissionsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permissions** | [**List[V1beta1Permission]**](V1beta1Permission.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListPermissionsResponse from a JSON string +v1beta1_list_permissions_response_instance = V1beta1ListPermissionsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListPermissionsResponse.to_json() + +# convert the object into a dict +v1beta1_list_permissions_response_dict = v1beta1_list_permissions_response_instance.to_dict() +# create an instance of V1beta1ListPermissionsResponse from a dict +v1beta1_list_permissions_response_form_dict = v1beta1_list_permissions_response.from_dict(v1beta1_list_permissions_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListPlansResponse.md b/docs/V1beta1ListPlansResponse.md new file mode 100644 index 0000000..d884ae9 --- /dev/null +++ b/docs/V1beta1ListPlansResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListPlansResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plans** | [**List[V1beta1Plan]**](V1beta1Plan.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_plans_response import V1beta1ListPlansResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListPlansResponse from a JSON string +v1beta1_list_plans_response_instance = V1beta1ListPlansResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListPlansResponse.to_json() + +# convert the object into a dict +v1beta1_list_plans_response_dict = v1beta1_list_plans_response_instance.to_dict() +# create an instance of V1beta1ListPlansResponse from a dict +v1beta1_list_plans_response_form_dict = v1beta1_list_plans_response.from_dict(v1beta1_list_plans_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListPoliciesResponse.md b/docs/V1beta1ListPoliciesResponse.md new file mode 100644 index 0000000..e68179a --- /dev/null +++ b/docs/V1beta1ListPoliciesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListPoliciesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**List[V1beta1Policy]**](V1beta1Policy.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_policies_response import V1beta1ListPoliciesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListPoliciesResponse from a JSON string +v1beta1_list_policies_response_instance = V1beta1ListPoliciesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListPoliciesResponse.to_json() + +# convert the object into a dict +v1beta1_list_policies_response_dict = v1beta1_list_policies_response_instance.to_dict() +# create an instance of V1beta1ListPoliciesResponse from a dict +v1beta1_list_policies_response_form_dict = v1beta1_list_policies_response.from_dict(v1beta1_list_policies_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListPreferencesResponse.md b/docs/V1beta1ListPreferencesResponse.md new file mode 100644 index 0000000..bef7924 --- /dev/null +++ b/docs/V1beta1ListPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListPreferencesResponse from a JSON string +v1beta1_list_preferences_response_instance = V1beta1ListPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_list_preferences_response_dict = v1beta1_list_preferences_response_instance.to_dict() +# create an instance of V1beta1ListPreferencesResponse from a dict +v1beta1_list_preferences_response_form_dict = v1beta1_list_preferences_response.from_dict(v1beta1_list_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectAdminsResponse.md b/docs/V1beta1ListProjectAdminsResponse.md new file mode 100644 index 0000000..c4785fc --- /dev/null +++ b/docs/V1beta1ListProjectAdminsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListProjectAdminsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectAdminsResponse from a JSON string +v1beta1_list_project_admins_response_instance = V1beta1ListProjectAdminsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectAdminsResponse.to_json() + +# convert the object into a dict +v1beta1_list_project_admins_response_dict = v1beta1_list_project_admins_response_instance.to_dict() +# create an instance of V1beta1ListProjectAdminsResponse from a dict +v1beta1_list_project_admins_response_form_dict = v1beta1_list_project_admins_response.from_dict(v1beta1_list_project_admins_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectGroupsResponse.md b/docs/V1beta1ListProjectGroupsResponse.md new file mode 100644 index 0000000..237831f --- /dev/null +++ b/docs/V1beta1ListProjectGroupsResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectGroupsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**List[V1beta1Group]**](V1beta1Group.md) | | [optional] +**role_pairs** | [**List[V1beta1ListProjectGroupsResponseRolePair]**](V1beta1ListProjectGroupsResponseRolePair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_groups_response import V1beta1ListProjectGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectGroupsResponse from a JSON string +v1beta1_list_project_groups_response_instance = V1beta1ListProjectGroupsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectGroupsResponse.to_json() + +# convert the object into a dict +v1beta1_list_project_groups_response_dict = v1beta1_list_project_groups_response_instance.to_dict() +# create an instance of V1beta1ListProjectGroupsResponse from a dict +v1beta1_list_project_groups_response_form_dict = v1beta1_list_project_groups_response.from_dict(v1beta1_list_project_groups_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectGroupsResponseRolePair.md b/docs/V1beta1ListProjectGroupsResponseRolePair.md new file mode 100644 index 0000000..426c293 --- /dev/null +++ b/docs/V1beta1ListProjectGroupsResponseRolePair.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectGroupsResponseRolePair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group_id** | **str** | | [optional] +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_groups_response_role_pair import V1beta1ListProjectGroupsResponseRolePair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectGroupsResponseRolePair from a JSON string +v1beta1_list_project_groups_response_role_pair_instance = V1beta1ListProjectGroupsResponseRolePair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectGroupsResponseRolePair.to_json() + +# convert the object into a dict +v1beta1_list_project_groups_response_role_pair_dict = v1beta1_list_project_groups_response_role_pair_instance.to_dict() +# create an instance of V1beta1ListProjectGroupsResponseRolePair from a dict +v1beta1_list_project_groups_response_role_pair_form_dict = v1beta1_list_project_groups_response_role_pair.from_dict(v1beta1_list_project_groups_response_role_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectPreferencesResponse.md b/docs/V1beta1ListProjectPreferencesResponse.md new file mode 100644 index 0000000..a8e42b6 --- /dev/null +++ b/docs/V1beta1ListProjectPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListProjectPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectPreferencesResponse from a JSON string +v1beta1_list_project_preferences_response_instance = V1beta1ListProjectPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_list_project_preferences_response_dict = v1beta1_list_project_preferences_response_instance.to_dict() +# create an instance of V1beta1ListProjectPreferencesResponse from a dict +v1beta1_list_project_preferences_response_form_dict = v1beta1_list_project_preferences_response.from_dict(v1beta1_list_project_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectResourcesResponse.md b/docs/V1beta1ListProjectResourcesResponse.md new file mode 100644 index 0000000..58f5758 --- /dev/null +++ b/docs/V1beta1ListProjectResourcesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListProjectResourcesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**List[V1beta1Resource]**](V1beta1Resource.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectResourcesResponse from a JSON string +v1beta1_list_project_resources_response_instance = V1beta1ListProjectResourcesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectResourcesResponse.to_json() + +# convert the object into a dict +v1beta1_list_project_resources_response_dict = v1beta1_list_project_resources_response_instance.to_dict() +# create an instance of V1beta1ListProjectResourcesResponse from a dict +v1beta1_list_project_resources_response_form_dict = v1beta1_list_project_resources_response.from_dict(v1beta1_list_project_resources_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectServiceUsersResponse.md b/docs/V1beta1ListProjectServiceUsersResponse.md new file mode 100644 index 0000000..6a82576 --- /dev/null +++ b/docs/V1beta1ListProjectServiceUsersResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectServiceUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceusers** | [**List[V1beta1ServiceUser]**](V1beta1ServiceUser.md) | | [optional] +**role_pairs** | [**List[V1beta1ListProjectServiceUsersResponseRolePair]**](V1beta1ListProjectServiceUsersResponseRolePair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectServiceUsersResponse from a JSON string +v1beta1_list_project_service_users_response_instance = V1beta1ListProjectServiceUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectServiceUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_project_service_users_response_dict = v1beta1_list_project_service_users_response_instance.to_dict() +# create an instance of V1beta1ListProjectServiceUsersResponse from a dict +v1beta1_list_project_service_users_response_form_dict = v1beta1_list_project_service_users_response.from_dict(v1beta1_list_project_service_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectServiceUsersResponseRolePair.md b/docs/V1beta1ListProjectServiceUsersResponseRolePair.md new file mode 100644 index 0000000..1d49476 --- /dev/null +++ b/docs/V1beta1ListProjectServiceUsersResponseRolePair.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectServiceUsersResponseRolePair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceuser_id** | **str** | | [optional] +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectServiceUsersResponseRolePair from a JSON string +v1beta1_list_project_service_users_response_role_pair_instance = V1beta1ListProjectServiceUsersResponseRolePair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectServiceUsersResponseRolePair.to_json() + +# convert the object into a dict +v1beta1_list_project_service_users_response_role_pair_dict = v1beta1_list_project_service_users_response_role_pair_instance.to_dict() +# create an instance of V1beta1ListProjectServiceUsersResponseRolePair from a dict +v1beta1_list_project_service_users_response_role_pair_form_dict = v1beta1_list_project_service_users_response_role_pair.from_dict(v1beta1_list_project_service_users_response_role_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectUsersResponse.md b/docs/V1beta1ListProjectUsersResponse.md new file mode 100644 index 0000000..10895b3 --- /dev/null +++ b/docs/V1beta1ListProjectUsersResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] +**role_pairs** | [**List[V1beta1ListProjectUsersResponseRolePair]**](V1beta1ListProjectUsersResponseRolePair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectUsersResponse from a JSON string +v1beta1_list_project_users_response_instance = V1beta1ListProjectUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_project_users_response_dict = v1beta1_list_project_users_response_instance.to_dict() +# create an instance of V1beta1ListProjectUsersResponse from a dict +v1beta1_list_project_users_response_form_dict = v1beta1_list_project_users_response.from_dict(v1beta1_list_project_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectUsersResponseRolePair.md b/docs/V1beta1ListProjectUsersResponseRolePair.md new file mode 100644 index 0000000..e752191 --- /dev/null +++ b/docs/V1beta1ListProjectUsersResponseRolePair.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectUsersResponseRolePair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | | [optional] +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectUsersResponseRolePair from a JSON string +v1beta1_list_project_users_response_role_pair_instance = V1beta1ListProjectUsersResponseRolePair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectUsersResponseRolePair.to_json() + +# convert the object into a dict +v1beta1_list_project_users_response_role_pair_dict = v1beta1_list_project_users_response_role_pair_instance.to_dict() +# create an instance of V1beta1ListProjectUsersResponseRolePair from a dict +v1beta1_list_project_users_response_role_pair_form_dict = v1beta1_list_project_users_response_role_pair.from_dict(v1beta1_list_project_users_response_role_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectsByCurrentUserResponse.md b/docs/V1beta1ListProjectsByCurrentUserResponse.md new file mode 100644 index 0000000..09a19a4 --- /dev/null +++ b/docs/V1beta1ListProjectsByCurrentUserResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectsByCurrentUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projects** | [**List[V1beta1Project]**](V1beta1Project.md) | | [optional] +**access_pairs** | [**List[V1beta1ListProjectsByCurrentUserResponseAccessPair]**](V1beta1ListProjectsByCurrentUserResponseAccessPair.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectsByCurrentUserResponse from a JSON string +v1beta1_list_projects_by_current_user_response_instance = V1beta1ListProjectsByCurrentUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectsByCurrentUserResponse.to_json() + +# convert the object into a dict +v1beta1_list_projects_by_current_user_response_dict = v1beta1_list_projects_by_current_user_response_instance.to_dict() +# create an instance of V1beta1ListProjectsByCurrentUserResponse from a dict +v1beta1_list_projects_by_current_user_response_form_dict = v1beta1_list_projects_by_current_user_response.from_dict(v1beta1_list_projects_by_current_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectsByCurrentUserResponseAccessPair.md b/docs/V1beta1ListProjectsByCurrentUserResponseAccessPair.md new file mode 100644 index 0000000..b5855eb --- /dev/null +++ b/docs/V1beta1ListProjectsByCurrentUserResponseAccessPair.md @@ -0,0 +1,29 @@ +# V1beta1ListProjectsByCurrentUserResponseAccessPair + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project_id** | **str** | | [optional] +**permissions** | **List[str]** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectsByCurrentUserResponseAccessPair from a JSON string +v1beta1_list_projects_by_current_user_response_access_pair_instance = V1beta1ListProjectsByCurrentUserResponseAccessPair.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectsByCurrentUserResponseAccessPair.to_json() + +# convert the object into a dict +v1beta1_list_projects_by_current_user_response_access_pair_dict = v1beta1_list_projects_by_current_user_response_access_pair_instance.to_dict() +# create an instance of V1beta1ListProjectsByCurrentUserResponseAccessPair from a dict +v1beta1_list_projects_by_current_user_response_access_pair_form_dict = v1beta1_list_projects_by_current_user_response_access_pair.from_dict(v1beta1_list_projects_by_current_user_response_access_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectsByUserResponse.md b/docs/V1beta1ListProjectsByUserResponse.md new file mode 100644 index 0000000..30f951d --- /dev/null +++ b/docs/V1beta1ListProjectsByUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListProjectsByUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projects** | [**List[V1beta1Project]**](V1beta1Project.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectsByUserResponse from a JSON string +v1beta1_list_projects_by_user_response_instance = V1beta1ListProjectsByUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectsByUserResponse.to_json() + +# convert the object into a dict +v1beta1_list_projects_by_user_response_dict = v1beta1_list_projects_by_user_response_instance.to_dict() +# create an instance of V1beta1ListProjectsByUserResponse from a dict +v1beta1_list_projects_by_user_response_form_dict = v1beta1_list_projects_by_user_response.from_dict(v1beta1_list_projects_by_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListProjectsResponse.md b/docs/V1beta1ListProjectsResponse.md new file mode 100644 index 0000000..766f2a5 --- /dev/null +++ b/docs/V1beta1ListProjectsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListProjectsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**projects** | [**List[V1beta1Project]**](V1beta1Project.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_projects_response import V1beta1ListProjectsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListProjectsResponse from a JSON string +v1beta1_list_projects_response_instance = V1beta1ListProjectsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListProjectsResponse.to_json() + +# convert the object into a dict +v1beta1_list_projects_response_dict = v1beta1_list_projects_response_instance.to_dict() +# create an instance of V1beta1ListProjectsResponse from a dict +v1beta1_list_projects_response_form_dict = v1beta1_list_projects_response.from_dict(v1beta1_list_projects_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListRelationsResponse.md b/docs/V1beta1ListRelationsResponse.md new file mode 100644 index 0000000..9490525 --- /dev/null +++ b/docs/V1beta1ListRelationsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListRelationsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**relations** | [**List[V1beta1Relation]**](V1beta1Relation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_relations_response import V1beta1ListRelationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListRelationsResponse from a JSON string +v1beta1_list_relations_response_instance = V1beta1ListRelationsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListRelationsResponse.to_json() + +# convert the object into a dict +v1beta1_list_relations_response_dict = v1beta1_list_relations_response_instance.to_dict() +# create an instance of V1beta1ListRelationsResponse from a dict +v1beta1_list_relations_response_form_dict = v1beta1_list_relations_response.from_dict(v1beta1_list_relations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListResourcesResponse.md b/docs/V1beta1ListResourcesResponse.md new file mode 100644 index 0000000..8ca9dc7 --- /dev/null +++ b/docs/V1beta1ListResourcesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListResourcesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**List[V1beta1Resource]**](V1beta1Resource.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_resources_response import V1beta1ListResourcesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListResourcesResponse from a JSON string +v1beta1_list_resources_response_instance = V1beta1ListResourcesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListResourcesResponse.to_json() + +# convert the object into a dict +v1beta1_list_resources_response_dict = v1beta1_list_resources_response_instance.to_dict() +# create an instance of V1beta1ListResourcesResponse from a dict +v1beta1_list_resources_response_form_dict = v1beta1_list_resources_response.from_dict(v1beta1_list_resources_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListRolesResponse.md b/docs/V1beta1ListRolesResponse.md new file mode 100644 index 0000000..26f2770 --- /dev/null +++ b/docs/V1beta1ListRolesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListRolesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**roles** | [**List[V1beta1Role]**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_roles_response import V1beta1ListRolesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListRolesResponse from a JSON string +v1beta1_list_roles_response_instance = V1beta1ListRolesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListRolesResponse.to_json() + +# convert the object into a dict +v1beta1_list_roles_response_dict = v1beta1_list_roles_response_instance.to_dict() +# create an instance of V1beta1ListRolesResponse from a dict +v1beta1_list_roles_response_form_dict = v1beta1_list_roles_response.from_dict(v1beta1_list_roles_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListServiceUserKeysResponse.md b/docs/V1beta1ListServiceUserKeysResponse.md new file mode 100644 index 0000000..1db1c00 --- /dev/null +++ b/docs/V1beta1ListServiceUserKeysResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListServiceUserKeysResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | [**List[V1beta1ServiceUserKey]**](V1beta1ServiceUserKey.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListServiceUserKeysResponse from a JSON string +v1beta1_list_service_user_keys_response_instance = V1beta1ListServiceUserKeysResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListServiceUserKeysResponse.to_json() + +# convert the object into a dict +v1beta1_list_service_user_keys_response_dict = v1beta1_list_service_user_keys_response_instance.to_dict() +# create an instance of V1beta1ListServiceUserKeysResponse from a dict +v1beta1_list_service_user_keys_response_form_dict = v1beta1_list_service_user_keys_response.from_dict(v1beta1_list_service_user_keys_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListServiceUserSecretsResponse.md b/docs/V1beta1ListServiceUserSecretsResponse.md new file mode 100644 index 0000000..4c523b0 --- /dev/null +++ b/docs/V1beta1ListServiceUserSecretsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListServiceUserSecretsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secrets** | [**List[V1beta1SecretCredential]**](V1beta1SecretCredential.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListServiceUserSecretsResponse from a JSON string +v1beta1_list_service_user_secrets_response_instance = V1beta1ListServiceUserSecretsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListServiceUserSecretsResponse.to_json() + +# convert the object into a dict +v1beta1_list_service_user_secrets_response_dict = v1beta1_list_service_user_secrets_response_instance.to_dict() +# create an instance of V1beta1ListServiceUserSecretsResponse from a dict +v1beta1_list_service_user_secrets_response_form_dict = v1beta1_list_service_user_secrets_response.from_dict(v1beta1_list_service_user_secrets_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListServiceUsersResponse.md b/docs/V1beta1ListServiceUsersResponse.md new file mode 100644 index 0000000..dcd9370 --- /dev/null +++ b/docs/V1beta1ListServiceUsersResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListServiceUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serviceusers** | [**List[V1beta1ServiceUser]**](V1beta1ServiceUser.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListServiceUsersResponse from a JSON string +v1beta1_list_service_users_response_instance = V1beta1ListServiceUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListServiceUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_service_users_response_dict = v1beta1_list_service_users_response_instance.to_dict() +# create an instance of V1beta1ListServiceUsersResponse from a dict +v1beta1_list_service_users_response_form_dict = v1beta1_list_service_users_response.from_dict(v1beta1_list_service_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListSubscriptionsResponse.md b/docs/V1beta1ListSubscriptionsResponse.md new file mode 100644 index 0000000..b68b834 --- /dev/null +++ b/docs/V1beta1ListSubscriptionsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListSubscriptionsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscriptions** | [**List[V1beta1Subscription]**](V1beta1Subscription.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_subscriptions_response import V1beta1ListSubscriptionsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListSubscriptionsResponse from a JSON string +v1beta1_list_subscriptions_response_instance = V1beta1ListSubscriptionsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListSubscriptionsResponse.to_json() + +# convert the object into a dict +v1beta1_list_subscriptions_response_dict = v1beta1_list_subscriptions_response_instance.to_dict() +# create an instance of V1beta1ListSubscriptionsResponse from a dict +v1beta1_list_subscriptions_response_form_dict = v1beta1_list_subscriptions_response.from_dict(v1beta1_list_subscriptions_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListUserGroupsResponse.md b/docs/V1beta1ListUserGroupsResponse.md new file mode 100644 index 0000000..890071c --- /dev/null +++ b/docs/V1beta1ListUserGroupsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListUserGroupsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**List[V1beta1Group]**](V1beta1Group.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListUserGroupsResponse from a JSON string +v1beta1_list_user_groups_response_instance = V1beta1ListUserGroupsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListUserGroupsResponse.to_json() + +# convert the object into a dict +v1beta1_list_user_groups_response_dict = v1beta1_list_user_groups_response_instance.to_dict() +# create an instance of V1beta1ListUserGroupsResponse from a dict +v1beta1_list_user_groups_response_form_dict = v1beta1_list_user_groups_response.from_dict(v1beta1_list_user_groups_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListUserInvitationsResponse.md b/docs/V1beta1ListUserInvitationsResponse.md new file mode 100644 index 0000000..15e2ac2 --- /dev/null +++ b/docs/V1beta1ListUserInvitationsResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListUserInvitationsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invitations** | [**List[V1beta1Invitation]**](V1beta1Invitation.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListUserInvitationsResponse from a JSON string +v1beta1_list_user_invitations_response_instance = V1beta1ListUserInvitationsResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListUserInvitationsResponse.to_json() + +# convert the object into a dict +v1beta1_list_user_invitations_response_dict = v1beta1_list_user_invitations_response_instance.to_dict() +# create an instance of V1beta1ListUserInvitationsResponse from a dict +v1beta1_list_user_invitations_response_form_dict = v1beta1_list_user_invitations_response.from_dict(v1beta1_list_user_invitations_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListUserPreferencesResponse.md b/docs/V1beta1ListUserPreferencesResponse.md new file mode 100644 index 0000000..cb28b6a --- /dev/null +++ b/docs/V1beta1ListUserPreferencesResponse.md @@ -0,0 +1,28 @@ +# V1beta1ListUserPreferencesResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**List[V1beta1Preference]**](V1beta1Preference.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListUserPreferencesResponse from a JSON string +v1beta1_list_user_preferences_response_instance = V1beta1ListUserPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListUserPreferencesResponse.to_json() + +# convert the object into a dict +v1beta1_list_user_preferences_response_dict = v1beta1_list_user_preferences_response_instance.to_dict() +# create an instance of V1beta1ListUserPreferencesResponse from a dict +v1beta1_list_user_preferences_response_form_dict = v1beta1_list_user_preferences_response.from_dict(v1beta1_list_user_preferences_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ListUsersResponse.md b/docs/V1beta1ListUsersResponse.md new file mode 100644 index 0000000..39b11b1 --- /dev/null +++ b/docs/V1beta1ListUsersResponse.md @@ -0,0 +1,29 @@ +# V1beta1ListUsersResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**users** | [**List[V1beta1User]**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_list_users_response import V1beta1ListUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ListUsersResponse from a JSON string +v1beta1_list_users_response_instance = V1beta1ListUsersResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1ListUsersResponse.to_json() + +# convert the object into a dict +v1beta1_list_users_response_dict = v1beta1_list_users_response_instance.to_dict() +# create an instance of V1beta1ListUsersResponse from a dict +v1beta1_list_users_response_form_dict = v1beta1_list_users_response.from_dict(v1beta1_list_users_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1MetaSchema.md b/docs/V1beta1MetaSchema.md new file mode 100644 index 0000000..56f8cd9 --- /dev/null +++ b/docs/V1beta1MetaSchema.md @@ -0,0 +1,32 @@ +# V1beta1MetaSchema + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The unique metaschema uuid. | [optional] +**name** | **str** | | [optional] +**var_schema** | **str** | The metaschema json schema. | [optional] +**created_at** | **datetime** | The time when the metaschema was created. | [optional] +**updated_at** | **datetime** | The time when the metaschema was updated. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1MetaSchema from a JSON string +v1beta1_meta_schema_instance = V1beta1MetaSchema.from_json(json) +# print the JSON string representation of the object +print V1beta1MetaSchema.to_json() + +# convert the object into a dict +v1beta1_meta_schema_dict = v1beta1_meta_schema_instance.to_dict() +# create an instance of V1beta1MetaSchema from a dict +v1beta1_meta_schema_form_dict = v1beta1_meta_schema.from_dict(v1beta1_meta_schema_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1MetaSchemaRequestBody.md b/docs/V1beta1MetaSchemaRequestBody.md new file mode 100644 index 0000000..dbf4f67 --- /dev/null +++ b/docs/V1beta1MetaSchemaRequestBody.md @@ -0,0 +1,29 @@ +# V1beta1MetaSchemaRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the metaschema. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores. | +**var_schema** | **str** | The schema of the metaschema. The schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. | + +## Example + +```python +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1MetaSchemaRequestBody from a JSON string +v1beta1_meta_schema_request_body_instance = V1beta1MetaSchemaRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1MetaSchemaRequestBody.to_json() + +# convert the object into a dict +v1beta1_meta_schema_request_body_dict = v1beta1_meta_schema_request_body_instance.to_dict() +# create an instance of V1beta1MetaSchemaRequestBody from a dict +v1beta1_meta_schema_request_body_form_dict = v1beta1_meta_schema_request_body.from_dict(v1beta1_meta_schema_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Namespace.md b/docs/V1beta1Namespace.md new file mode 100644 index 0000000..464fc92 --- /dev/null +++ b/docs/V1beta1Namespace.md @@ -0,0 +1,32 @@ +# V1beta1Namespace + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the namespace was created. | [optional] +**updated_at** | **datetime** | The time the namespace was last updated. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_namespace import V1beta1Namespace + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Namespace from a JSON string +v1beta1_namespace_instance = V1beta1Namespace.from_json(json) +# print the JSON string representation of the object +print V1beta1Namespace.to_json() + +# convert the object into a dict +v1beta1_namespace_dict = v1beta1_namespace_instance.to_dict() +# create an instance of V1beta1Namespace from a dict +v1beta1_namespace_form_dict = v1beta1_namespace.from_dict(v1beta1_namespace_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Organization.md b/docs/V1beta1Organization.md new file mode 100644 index 0000000..b405cdd --- /dev/null +++ b/docs/V1beta1Organization.md @@ -0,0 +1,35 @@ +# V1beta1Organization + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the organization was created. | [optional] +**updated_at** | **datetime** | The time the organization was last updated. | [optional] +**state** | **str** | The state of the organization (enabled or disabled). | [optional] +**avatar** | **str** | The base64 encoded image string of the organization avatar. Should be less than 2MB. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_organization import V1beta1Organization + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Organization from a JSON string +v1beta1_organization_instance = V1beta1Organization.from_json(json) +# print the JSON string representation of the object +print V1beta1Organization.to_json() + +# convert the object into a dict +v1beta1_organization_dict = v1beta1_organization_instance.to_dict() +# create an instance of V1beta1Organization from a dict +v1beta1_organization_form_dict = v1beta1_organization.from_dict(v1beta1_organization_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1OrganizationRequestBody.md b/docs/V1beta1OrganizationRequestBody.md new file mode 100644 index 0000000..c253da7 --- /dev/null +++ b/docs/V1beta1OrganizationRequestBody.md @@ -0,0 +1,31 @@ +# V1beta1OrganizationRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/>*Example:*`\"frontier-org1-acme\"` | +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the organization. Can also be left empty.<br/> *Example*: `\"Acme Inc\"` | [optional] +**metadata** | **object** | Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields. <br/>*Example*:`{\"labels\": {\"key\": \"value\"}, \"description\": \"Organization description\"}` | [optional] +**avatar** | **str** | The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1OrganizationRequestBody from a JSON string +v1beta1_organization_request_body_instance = V1beta1OrganizationRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1OrganizationRequestBody.to_json() + +# convert the object into a dict +v1beta1_organization_request_body_dict = v1beta1_organization_request_body_instance.to_dict() +# create an instance of V1beta1OrganizationRequestBody from a dict +v1beta1_organization_request_body_form_dict = v1beta1_organization_request_body.from_dict(v1beta1_organization_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Permission.md b/docs/V1beta1Permission.md new file mode 100644 index 0000000..d16672a --- /dev/null +++ b/docs/V1beta1Permission.md @@ -0,0 +1,35 @@ +# V1beta1Permission + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**created_at** | **datetime** | The time the permission was created. | [optional] +**updated_at** | **datetime** | The time the permission was last updated. | [optional] +**namespace** | **str** | | [optional] +**metadata** | **object** | | [optional] +**key** | **str** | Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_permission import V1beta1Permission + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Permission from a JSON string +v1beta1_permission_instance = V1beta1Permission.from_json(json) +# print the JSON string representation of the object +print V1beta1Permission.to_json() + +# convert the object into a dict +v1beta1_permission_dict = v1beta1_permission_instance.to_dict() +# create an instance of V1beta1Permission from a dict +v1beta1_permission_form_dict = v1beta1_permission.from_dict(v1beta1_permission_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1PermissionRequestBody.md b/docs/V1beta1PermissionRequestBody.md new file mode 100644 index 0000000..184bf12 --- /dev/null +++ b/docs/V1beta1PermissionRequestBody.md @@ -0,0 +1,32 @@ +# V1beta1PermissionRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters. | [optional] +**namespace** | **str** | The namespace of the permission. The namespace should be in service/resource format.<br/>*Example:*`compute/guardian` | [optional] +**metadata** | **object** | The metadata object for permissions that can hold key value pairs. | [optional] +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty. | [optional] +**key** | **str** | Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be `app` as it's reserved for core permissions. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PermissionRequestBody from a JSON string +v1beta1_permission_request_body_instance = V1beta1PermissionRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1PermissionRequestBody.to_json() + +# convert the object into a dict +v1beta1_permission_request_body_dict = v1beta1_permission_request_body_instance.to_dict() +# create an instance of V1beta1PermissionRequestBody from a dict +v1beta1_permission_request_body_form_dict = v1beta1_permission_request_body.from_dict(v1beta1_permission_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Plan.md b/docs/V1beta1Plan.md new file mode 100644 index 0000000..da627bd --- /dev/null +++ b/docs/V1beta1Plan.md @@ -0,0 +1,36 @@ +# V1beta1Plan + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**features** | [**List[V1beta1Feature]**](V1beta1Feature.md) | | [optional] +**interval** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_plan import V1beta1Plan + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Plan from a JSON string +v1beta1_plan_instance = V1beta1Plan.from_json(json) +# print the JSON string representation of the object +print V1beta1Plan.to_json() + +# convert the object into a dict +v1beta1_plan_dict = v1beta1_plan_instance.to_dict() +# create an instance of V1beta1Plan from a dict +v1beta1_plan_form_dict = v1beta1_plan.from_dict(v1beta1_plan_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1PlanRequestBody.md b/docs/V1beta1PlanRequestBody.md new file mode 100644 index 0000000..1d9440b --- /dev/null +++ b/docs/V1beta1PlanRequestBody.md @@ -0,0 +1,33 @@ +# V1beta1PlanRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**features** | [**List[V1beta1Feature]**](V1beta1Feature.md) | | [optional] +**interval** | **str** | | [optional] +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_plan_request_body import V1beta1PlanRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PlanRequestBody from a JSON string +v1beta1_plan_request_body_instance = V1beta1PlanRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1PlanRequestBody.to_json() + +# convert the object into a dict +v1beta1_plan_request_body_dict = v1beta1_plan_request_body_instance.to_dict() +# create an instance of V1beta1PlanRequestBody from a dict +v1beta1_plan_request_body_form_dict = v1beta1_plan_request_body.from_dict(v1beta1_plan_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Policy.md b/docs/V1beta1Policy.md new file mode 100644 index 0000000..e49e7fa --- /dev/null +++ b/docs/V1beta1Policy.md @@ -0,0 +1,35 @@ +# V1beta1Policy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**title** | **str** | | [optional] +**created_at** | **datetime** | The time the policy was created. | [optional] +**updated_at** | **datetime** | The time the policy was last updated. | [optional] +**role_id** | **str** | | [optional] +**resource** | **str** | | [optional] +**principal** | **str** | | [optional] +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_policy import V1beta1Policy + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Policy from a JSON string +v1beta1_policy_instance = V1beta1Policy.from_json(json) +# print the JSON string representation of the object +print V1beta1Policy.to_json() + +# convert the object into a dict +v1beta1_policy_dict = v1beta1_policy_instance.to_dict() +# create an instance of V1beta1Policy from a dict +v1beta1_policy_form_dict = v1beta1_policy.from_dict(v1beta1_policy_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1PolicyRequestBody.md b/docs/V1beta1PolicyRequestBody.md new file mode 100644 index 0000000..40be674 --- /dev/null +++ b/docs/V1beta1PolicyRequestBody.md @@ -0,0 +1,32 @@ +# V1beta1PolicyRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role_id** | **str** | unique id of the role to which policy is assigned | +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the policy. Can also be left empty. <br/> *Example:* `Policy title` | [optional] +**resource** | **str** | The resource to which policy is assigned in this format `namespace:uuid`. <br/> *Example:* `app/guardian:70f69c3a-334b-4f25-90b8-4d4f3be6b8e2` | +**principal** | **str** | principal is the user or group to which policy is assigned. The principal id must be prefixed with its namespace id in this format `namespace:uuid`. The namespace can be `app/user`, `app/group` or `app/serviceuser` (coming up!) and uuid is the unique id of the principal. <br/> *Example:* `app/user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | +**metadata** | **object** | Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{\"labels\": {\"key\": \"value\"}, \"description\": \"Policy description\"}` | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PolicyRequestBody from a JSON string +v1beta1_policy_request_body_instance = V1beta1PolicyRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1PolicyRequestBody.to_json() + +# convert the object into a dict +v1beta1_policy_request_body_dict = v1beta1_policy_request_body_instance.to_dict() +# create an instance of V1beta1PolicyRequestBody from a dict +v1beta1_policy_request_body_form_dict = v1beta1_policy_request_body.from_dict(v1beta1_policy_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Preference.md b/docs/V1beta1Preference.md new file mode 100644 index 0000000..447326d --- /dev/null +++ b/docs/V1beta1Preference.md @@ -0,0 +1,34 @@ +# V1beta1Preference + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**value** | **str** | | [optional] +**resource_id** | **str** | | [optional] +**resource_type** | **str** | | [optional] +**created_at** | **datetime** | The time when the preference was created. | [optional] +**updated_at** | **datetime** | The time when the preference was updated. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_preference import V1beta1Preference + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Preference from a JSON string +v1beta1_preference_instance = V1beta1Preference.from_json(json) +# print the JSON string representation of the object +print V1beta1Preference.to_json() + +# convert the object into a dict +v1beta1_preference_dict = v1beta1_preference_instance.to_dict() +# create an instance of V1beta1Preference from a dict +v1beta1_preference_form_dict = v1beta1_preference.from_dict(v1beta1_preference_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1PreferenceRequestBody.md b/docs/V1beta1PreferenceRequestBody.md new file mode 100644 index 0000000..79ef51d --- /dev/null +++ b/docs/V1beta1PreferenceRequestBody.md @@ -0,0 +1,29 @@ +# V1beta1PreferenceRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**value** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PreferenceRequestBody from a JSON string +v1beta1_preference_request_body_instance = V1beta1PreferenceRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1PreferenceRequestBody.to_json() + +# convert the object into a dict +v1beta1_preference_request_body_dict = v1beta1_preference_request_body_instance.to_dict() +# create an instance of V1beta1PreferenceRequestBody from a dict +v1beta1_preference_request_body_form_dict = v1beta1_preference_request_body.from_dict(v1beta1_preference_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1PreferenceTrait.md b/docs/V1beta1PreferenceTrait.md new file mode 100644 index 0000000..bf1713b --- /dev/null +++ b/docs/V1beta1PreferenceTrait.md @@ -0,0 +1,44 @@ +# V1beta1PreferenceTrait + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_type** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**long_description** | **str** | | [optional] +**heading** | **str** | | [optional] +**sub_heading** | **str** | | [optional] +**breadcrumb** | **str** | | [optional] +**default** | **str** | | [optional] +**input_hints** | **str** | | [optional] +**text** | **str** | | [optional] +**textarea** | **str** | | [optional] +**select** | **str** | | [optional] +**combobox** | **str** | | [optional] +**checkbox** | **str** | | [optional] +**multiselect** | **str** | | [optional] +**number** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_preference_trait import V1beta1PreferenceTrait + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1PreferenceTrait from a JSON string +v1beta1_preference_trait_instance = V1beta1PreferenceTrait.from_json(json) +# print the JSON string representation of the object +print V1beta1PreferenceTrait.to_json() + +# convert the object into a dict +v1beta1_preference_trait_dict = v1beta1_preference_trait_instance.to_dict() +# create an instance of V1beta1PreferenceTrait from a dict +v1beta1_preference_trait_form_dict = v1beta1_preference_trait.from_dict(v1beta1_preference_trait_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Price.md b/docs/V1beta1Price.md new file mode 100644 index 0000000..89e2e04 --- /dev/null +++ b/docs/V1beta1Price.md @@ -0,0 +1,42 @@ +# V1beta1Price + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**feature_id** | **str** | | [optional] +**provider_id** | **str** | | [optional] +**name** | **str** | | [optional] +**interval** | **str** | | [optional] +**usage_type** | **str** | | [optional] +**billing_scheme** | **str** | | [optional] +**state** | **str** | | [optional] +**currency** | **str** | | [optional] +**amount** | **str** | | [optional] +**metered_aggregate** | **str** | | [optional] +**tier_mode** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_price import V1beta1Price + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Price from a JSON string +v1beta1_price_instance = V1beta1Price.from_json(json) +# print the JSON string representation of the object +print V1beta1Price.to_json() + +# convert the object into a dict +v1beta1_price_dict = v1beta1_price_instance.to_dict() +# create an instance of V1beta1Price from a dict +v1beta1_price_form_dict = v1beta1_price.from_dict(v1beta1_price_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Project.md b/docs/V1beta1Project.md new file mode 100644 index 0000000..8b6f62c --- /dev/null +++ b/docs/V1beta1Project.md @@ -0,0 +1,34 @@ +# V1beta1Project + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**title** | **str** | | [optional] +**org_id** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the project was created. | [optional] +**updated_at** | **datetime** | The time the project was last updated. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_project import V1beta1Project + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Project from a JSON string +v1beta1_project_instance = V1beta1Project.from_json(json) +# print the JSON string representation of the object +print V1beta1Project.to_json() + +# convert the object into a dict +v1beta1_project_dict = v1beta1_project_instance.to_dict() +# create an instance of V1beta1Project from a dict +v1beta1_project_form_dict = v1beta1_project.from_dict(v1beta1_project_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ProjectRequestBody.md b/docs/V1beta1ProjectRequestBody.md new file mode 100644 index 0000000..46cca42 --- /dev/null +++ b/docs/V1beta1ProjectRequestBody.md @@ -0,0 +1,31 @@ +# V1beta1ProjectRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the project. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/> *Example:* `frontier-playground` | +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the project. Can also be left empty. <br/> *Example:* `Frontier Playground` | [optional] +**metadata** | **object** | Metadata object for projects that can hold key value pairs defined in Project Metaschema. | [optional] +**org_id** | **str** | unique id of the organization to which project belongs | + +## Example + +```python +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ProjectRequestBody from a JSON string +v1beta1_project_request_body_instance = V1beta1ProjectRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1ProjectRequestBody.to_json() + +# convert the object into a dict +v1beta1_project_request_body_dict = v1beta1_project_request_body_instance.to_dict() +# create an instance of V1beta1ProjectRequestBody from a dict +v1beta1_project_request_body_form_dict = v1beta1_project_request_body.from_dict(v1beta1_project_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Relation.md b/docs/V1beta1Relation.md new file mode 100644 index 0000000..0a29ef3 --- /dev/null +++ b/docs/V1beta1Relation.md @@ -0,0 +1,34 @@ +# V1beta1Relation + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**created_at** | **datetime** | The time the relation was created. | [optional] +**updated_at** | **datetime** | The time the relation was last updated. | [optional] +**subject_sub_relation** | **str** | | [optional] +**relation** | **str** | | [optional] +**object** | **str** | | [optional] +**subject** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_relation import V1beta1Relation + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Relation from a JSON string +v1beta1_relation_instance = V1beta1Relation.from_json(json) +# print the JSON string representation of the object +print V1beta1Relation.to_json() + +# convert the object into a dict +v1beta1_relation_dict = v1beta1_relation_instance.to_dict() +# create an instance of V1beta1Relation from a dict +v1beta1_relation_form_dict = v1beta1_relation.from_dict(v1beta1_relation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1RelationRequestBody.md b/docs/V1beta1RelationRequestBody.md new file mode 100644 index 0000000..ecfd2ca --- /dev/null +++ b/docs/V1beta1RelationRequestBody.md @@ -0,0 +1,31 @@ +# V1beta1RelationRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**object** | **str** | | [optional] +**subject** | **str** | | [optional] +**relation** | **str** | | [optional] +**subject_sub_relation** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_relation_request_body import V1beta1RelationRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1RelationRequestBody from a JSON string +v1beta1_relation_request_body_instance = V1beta1RelationRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1RelationRequestBody.to_json() + +# convert the object into a dict +v1beta1_relation_request_body_dict = v1beta1_relation_request_body_instance.to_dict() +# create an instance of V1beta1RelationRequestBody from a dict +v1beta1_relation_request_body_form_dict = v1beta1_relation_request_body.from_dict(v1beta1_relation_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Resource.md b/docs/V1beta1Resource.md new file mode 100644 index 0000000..31bcf7c --- /dev/null +++ b/docs/V1beta1Resource.md @@ -0,0 +1,37 @@ +# V1beta1Resource + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | Name of the resource. Must be unique within the project. | [optional] +**created_at** | **datetime** | The time the resource was created. | [optional] +**updated_at** | **datetime** | The time the resource was last updated. | [optional] +**urn** | **str** | | [optional] +**project_id** | **str** | | [optional] +**namespace** | **str** | | [optional] +**principal** | **str** | | [optional] +**metadata** | **object** | | [optional] +**title** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_resource import V1beta1Resource + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Resource from a JSON string +v1beta1_resource_instance = V1beta1Resource.from_json(json) +# print the JSON string representation of the object +print V1beta1Resource.to_json() + +# convert the object into a dict +v1beta1_resource_dict = v1beta1_resource_instance.to_dict() +# create an instance of V1beta1Resource from a dict +v1beta1_resource_form_dict = v1beta1_resource.from_dict(v1beta1_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ResourceRequestBody.md b/docs/V1beta1ResourceRequestBody.md new file mode 100644 index 0000000..89e1089 --- /dev/null +++ b/docs/V1beta1ResourceRequestBody.md @@ -0,0 +1,32 @@ +# V1beta1ResourceRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the resource. Must be unique within the project. <br/> *Example:* `my-resource` | +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the resource. Can also be left empty. | [optional] +**namespace** | **str** | The namespace of the resource. The resource namespace are created when permissions for that resource is created in Frontier. If namespace doesn't exists the request will fail. <br/> *Example:* `compute/instance` | +**principal** | **str** | UserID or ServiceUserID that should be marked as owner of the resource. If not provided, the current logged in user will be made the resource owner. <br/> *Example:* `user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | [optional] +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ResourceRequestBody from a JSON string +v1beta1_resource_request_body_instance = V1beta1ResourceRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1ResourceRequestBody.to_json() + +# convert the object into a dict +v1beta1_resource_request_body_dict = v1beta1_resource_request_body_instance.to_dict() +# create an instance of V1beta1ResourceRequestBody from a dict +v1beta1_resource_request_body_form_dict = v1beta1_resource_request_body.from_dict(v1beta1_resource_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Role.md b/docs/V1beta1Role.md new file mode 100644 index 0000000..4c9caf6 --- /dev/null +++ b/docs/V1beta1Role.md @@ -0,0 +1,37 @@ +# V1beta1Role + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**permissions** | **List[str]** | | [optional] +**title** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the role was created. | [optional] +**updated_at** | **datetime** | The time the role was last updated. | [optional] +**org_id** | **str** | | [optional] +**state** | **str** | | [optional] +**scopes** | **List[str]** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_role import V1beta1Role + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Role from a JSON string +v1beta1_role_instance = V1beta1Role.from_json(json) +# print the JSON string representation of the object +print V1beta1Role.to_json() + +# convert the object into a dict +v1beta1_role_dict = v1beta1_role_instance.to_dict() +# create an instance of V1beta1Role from a dict +v1beta1_role_form_dict = v1beta1_role.from_dict(v1beta1_role_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1RoleRequestBody.md b/docs/V1beta1RoleRequestBody.md new file mode 100644 index 0000000..72bf68f --- /dev/null +++ b/docs/V1beta1RoleRequestBody.md @@ -0,0 +1,32 @@ +# V1beta1RoleRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**permissions** | **List[str]** | | [optional] +**metadata** | **object** | | [optional] +**title** | **str** | | [optional] +**scopes** | **List[str]** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1RoleRequestBody from a JSON string +v1beta1_role_request_body_instance = V1beta1RoleRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1RoleRequestBody.to_json() + +# convert the object into a dict +v1beta1_role_request_body_dict = v1beta1_role_request_body_instance.to_dict() +# create an instance of V1beta1RoleRequestBody from a dict +v1beta1_role_request_body_form_dict = v1beta1_role_request_body.from_dict(v1beta1_role_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SecretCredential.md b/docs/V1beta1SecretCredential.md new file mode 100644 index 0000000..731b823 --- /dev/null +++ b/docs/V1beta1SecretCredential.md @@ -0,0 +1,31 @@ +# V1beta1SecretCredential + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**title** | **str** | | [optional] +**secret** | **str** | | [optional] [readonly] +**created_at** | **datetime** | The time when the secret was created. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_secret_credential import V1beta1SecretCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1SecretCredential from a JSON string +v1beta1_secret_credential_instance = V1beta1SecretCredential.from_json(json) +# print the JSON string representation of the object +print V1beta1SecretCredential.to_json() + +# convert the object into a dict +v1beta1_secret_credential_dict = v1beta1_secret_credential_instance.to_dict() +# create an instance of V1beta1SecretCredential from a dict +v1beta1_secret_credential_form_dict = v1beta1_secret_credential.from_dict(v1beta1_secret_credential_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ServiceUser.md b/docs/V1beta1ServiceUser.md new file mode 100644 index 0000000..b19fbdd --- /dev/null +++ b/docs/V1beta1ServiceUser.md @@ -0,0 +1,34 @@ +# V1beta1ServiceUser + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**title** | **str** | User friendly name of the service user. | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the user was created. | [optional] +**updated_at** | **datetime** | The time the user was last updated. | [optional] +**state** | **str** | | [optional] +**org_id** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ServiceUser from a JSON string +v1beta1_service_user_instance = V1beta1ServiceUser.from_json(json) +# print the JSON string representation of the object +print V1beta1ServiceUser.to_json() + +# convert the object into a dict +v1beta1_service_user_dict = v1beta1_service_user_instance.to_dict() +# create an instance of V1beta1ServiceUser from a dict +v1beta1_service_user_form_dict = v1beta1_service_user.from_dict(v1beta1_service_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ServiceUserKey.md b/docs/V1beta1ServiceUserKey.md new file mode 100644 index 0000000..d2b902c --- /dev/null +++ b/docs/V1beta1ServiceUserKey.md @@ -0,0 +1,32 @@ +# V1beta1ServiceUserKey + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**title** | **str** | | [optional] +**principal_id** | **str** | | [optional] +**public_key** | **str** | | [optional] [readonly] +**created_at** | **datetime** | The time when the secret was created. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_service_user_key import V1beta1ServiceUserKey + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ServiceUserKey from a JSON string +v1beta1_service_user_key_instance = V1beta1ServiceUserKey.from_json(json) +# print the JSON string representation of the object +print V1beta1ServiceUserKey.to_json() + +# convert the object into a dict +v1beta1_service_user_key_dict = v1beta1_service_user_key_instance.to_dict() +# create an instance of V1beta1ServiceUserKey from a dict +v1beta1_service_user_key_form_dict = v1beta1_service_user_key.from_dict(v1beta1_service_user_key_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1ServiceUserRequestBody.md b/docs/V1beta1ServiceUserRequestBody.md new file mode 100644 index 0000000..0f95257 --- /dev/null +++ b/docs/V1beta1ServiceUserRequestBody.md @@ -0,0 +1,29 @@ +# V1beta1ServiceUserRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | User friendly name of the service user. | [optional] +**metadata** | **object** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1ServiceUserRequestBody from a JSON string +v1beta1_service_user_request_body_instance = V1beta1ServiceUserRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1ServiceUserRequestBody.to_json() + +# convert the object into a dict +v1beta1_service_user_request_body_dict = v1beta1_service_user_request_body_instance.to_dict() +# create an instance of V1beta1ServiceUserRequestBody from a dict +v1beta1_service_user_request_body_form_dict = v1beta1_service_user_request_body.from_dict(v1beta1_service_user_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Subscription.md b/docs/V1beta1Subscription.md new file mode 100644 index 0000000..3184e66 --- /dev/null +++ b/docs/V1beta1Subscription.md @@ -0,0 +1,38 @@ +# V1beta1Subscription + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**customer_id** | **str** | | [optional] +**provider_id** | **str** | | [optional] +**plan_id** | **str** | | [optional] +**state** | **str** | | [optional] +**trial_days** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] +**canceled_at** | **datetime** | | [optional] +**ended_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_subscription import V1beta1Subscription + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Subscription from a JSON string +v1beta1_subscription_instance = V1beta1Subscription.from_json(json) +# print the JSON string representation of the object +print V1beta1Subscription.to_json() + +# convert the object into a dict +v1beta1_subscription_dict = v1beta1_subscription_instance.to_dict() +# create an instance of V1beta1Subscription from a dict +v1beta1_subscription_form_dict = v1beta1_subscription.from_dict(v1beta1_subscription_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateBillingAccountResponse.md b/docs/V1beta1UpdateBillingAccountResponse.md new file mode 100644 index 0000000..7313add --- /dev/null +++ b/docs/V1beta1UpdateBillingAccountResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateBillingAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_account** | [**V1beta1BillingAccount**](V1beta1BillingAccount.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_billing_account_response import V1beta1UpdateBillingAccountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateBillingAccountResponse from a JSON string +v1beta1_update_billing_account_response_instance = V1beta1UpdateBillingAccountResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateBillingAccountResponse.to_json() + +# convert the object into a dict +v1beta1_update_billing_account_response_dict = v1beta1_update_billing_account_response_instance.to_dict() +# create an instance of V1beta1UpdateBillingAccountResponse from a dict +v1beta1_update_billing_account_response_form_dict = v1beta1_update_billing_account_response.from_dict(v1beta1_update_billing_account_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateCurrentUserResponse.md b/docs/V1beta1UpdateCurrentUserResponse.md new file mode 100644 index 0000000..5149898 --- /dev/null +++ b/docs/V1beta1UpdateCurrentUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateCurrentUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**V1beta1User**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateCurrentUserResponse from a JSON string +v1beta1_update_current_user_response_instance = V1beta1UpdateCurrentUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateCurrentUserResponse.to_json() + +# convert the object into a dict +v1beta1_update_current_user_response_dict = v1beta1_update_current_user_response_instance.to_dict() +# create an instance of V1beta1UpdateCurrentUserResponse from a dict +v1beta1_update_current_user_response_form_dict = v1beta1_update_current_user_response.from_dict(v1beta1_update_current_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateFeatureResponse.md b/docs/V1beta1UpdateFeatureResponse.md new file mode 100644 index 0000000..f7f0c8a --- /dev/null +++ b/docs/V1beta1UpdateFeatureResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateFeatureResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature** | [**V1beta1Feature**](V1beta1Feature.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_feature_response import V1beta1UpdateFeatureResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateFeatureResponse from a JSON string +v1beta1_update_feature_response_instance = V1beta1UpdateFeatureResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateFeatureResponse.to_json() + +# convert the object into a dict +v1beta1_update_feature_response_dict = v1beta1_update_feature_response_instance.to_dict() +# create an instance of V1beta1UpdateFeatureResponse from a dict +v1beta1_update_feature_response_form_dict = v1beta1_update_feature_response.from_dict(v1beta1_update_feature_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateGroupResponse.md b/docs/V1beta1UpdateGroupResponse.md new file mode 100644 index 0000000..79e6d24 --- /dev/null +++ b/docs/V1beta1UpdateGroupResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateGroupResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**V1beta1Group**](V1beta1Group.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_group_response import V1beta1UpdateGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateGroupResponse from a JSON string +v1beta1_update_group_response_instance = V1beta1UpdateGroupResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateGroupResponse.to_json() + +# convert the object into a dict +v1beta1_update_group_response_dict = v1beta1_update_group_response_instance.to_dict() +# create an instance of V1beta1UpdateGroupResponse from a dict +v1beta1_update_group_response_form_dict = v1beta1_update_group_response.from_dict(v1beta1_update_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateMetaSchemaResponse.md b/docs/V1beta1UpdateMetaSchemaResponse.md new file mode 100644 index 0000000..b2d334e --- /dev/null +++ b/docs/V1beta1UpdateMetaSchemaResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateMetaSchemaResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metaschema** | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateMetaSchemaResponse from a JSON string +v1beta1_update_meta_schema_response_instance = V1beta1UpdateMetaSchemaResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateMetaSchemaResponse.to_json() + +# convert the object into a dict +v1beta1_update_meta_schema_response_dict = v1beta1_update_meta_schema_response_instance.to_dict() +# create an instance of V1beta1UpdateMetaSchemaResponse from a dict +v1beta1_update_meta_schema_response_form_dict = v1beta1_update_meta_schema_response.from_dict(v1beta1_update_meta_schema_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateOrganizationResponse.md b/docs/V1beta1UpdateOrganizationResponse.md new file mode 100644 index 0000000..8b2d8e8 --- /dev/null +++ b/docs/V1beta1UpdateOrganizationResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateOrganizationResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization** | [**V1beta1Organization**](V1beta1Organization.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateOrganizationResponse from a JSON string +v1beta1_update_organization_response_instance = V1beta1UpdateOrganizationResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateOrganizationResponse.to_json() + +# convert the object into a dict +v1beta1_update_organization_response_dict = v1beta1_update_organization_response_instance.to_dict() +# create an instance of V1beta1UpdateOrganizationResponse from a dict +v1beta1_update_organization_response_form_dict = v1beta1_update_organization_response.from_dict(v1beta1_update_organization_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateOrganizationRoleResponse.md b/docs/V1beta1UpdateOrganizationRoleResponse.md new file mode 100644 index 0000000..f04b59e --- /dev/null +++ b/docs/V1beta1UpdateOrganizationRoleResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateOrganizationRoleResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | [**V1beta1Role**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateOrganizationRoleResponse from a JSON string +v1beta1_update_organization_role_response_instance = V1beta1UpdateOrganizationRoleResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateOrganizationRoleResponse.to_json() + +# convert the object into a dict +v1beta1_update_organization_role_response_dict = v1beta1_update_organization_role_response_instance.to_dict() +# create an instance of V1beta1UpdateOrganizationRoleResponse from a dict +v1beta1_update_organization_role_response_form_dict = v1beta1_update_organization_role_response.from_dict(v1beta1_update_organization_role_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdatePermissionResponse.md b/docs/V1beta1UpdatePermissionResponse.md new file mode 100644 index 0000000..26f146c --- /dev/null +++ b/docs/V1beta1UpdatePermissionResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdatePermissionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permission** | [**V1beta1Permission**](V1beta1Permission.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdatePermissionResponse from a JSON string +v1beta1_update_permission_response_instance = V1beta1UpdatePermissionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdatePermissionResponse.to_json() + +# convert the object into a dict +v1beta1_update_permission_response_dict = v1beta1_update_permission_response_instance.to_dict() +# create an instance of V1beta1UpdatePermissionResponse from a dict +v1beta1_update_permission_response_form_dict = v1beta1_update_permission_response.from_dict(v1beta1_update_permission_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdatePlanResponse.md b/docs/V1beta1UpdatePlanResponse.md new file mode 100644 index 0000000..577d305 --- /dev/null +++ b/docs/V1beta1UpdatePlanResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdatePlanResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plan** | [**V1beta1Plan**](V1beta1Plan.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_plan_response import V1beta1UpdatePlanResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdatePlanResponse from a JSON string +v1beta1_update_plan_response_instance = V1beta1UpdatePlanResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdatePlanResponse.to_json() + +# convert the object into a dict +v1beta1_update_plan_response_dict = v1beta1_update_plan_response_instance.to_dict() +# create an instance of V1beta1UpdatePlanResponse from a dict +v1beta1_update_plan_response_form_dict = v1beta1_update_plan_response.from_dict(v1beta1_update_plan_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdatePolicyResponse.md b/docs/V1beta1UpdatePolicyResponse.md new file mode 100644 index 0000000..f5beff9 --- /dev/null +++ b/docs/V1beta1UpdatePolicyResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdatePolicyResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies** | [**List[V1beta1Policy]**](V1beta1Policy.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdatePolicyResponse from a JSON string +v1beta1_update_policy_response_instance = V1beta1UpdatePolicyResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdatePolicyResponse.to_json() + +# convert the object into a dict +v1beta1_update_policy_response_dict = v1beta1_update_policy_response_instance.to_dict() +# create an instance of V1beta1UpdatePolicyResponse from a dict +v1beta1_update_policy_response_form_dict = v1beta1_update_policy_response.from_dict(v1beta1_update_policy_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateProjectResourceResponse.md b/docs/V1beta1UpdateProjectResourceResponse.md new file mode 100644 index 0000000..84b69ae --- /dev/null +++ b/docs/V1beta1UpdateProjectResourceResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateProjectResourceResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource** | [**V1beta1Resource**](V1beta1Resource.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateProjectResourceResponse from a JSON string +v1beta1_update_project_resource_response_instance = V1beta1UpdateProjectResourceResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateProjectResourceResponse.to_json() + +# convert the object into a dict +v1beta1_update_project_resource_response_dict = v1beta1_update_project_resource_response_instance.to_dict() +# create an instance of V1beta1UpdateProjectResourceResponse from a dict +v1beta1_update_project_resource_response_form_dict = v1beta1_update_project_resource_response.from_dict(v1beta1_update_project_resource_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateProjectResponse.md b/docs/V1beta1UpdateProjectResponse.md new file mode 100644 index 0000000..d96f04e --- /dev/null +++ b/docs/V1beta1UpdateProjectResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateProjectResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project** | [**V1beta1Project**](V1beta1Project.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_project_response import V1beta1UpdateProjectResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateProjectResponse from a JSON string +v1beta1_update_project_response_instance = V1beta1UpdateProjectResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateProjectResponse.to_json() + +# convert the object into a dict +v1beta1_update_project_response_dict = v1beta1_update_project_response_instance.to_dict() +# create an instance of V1beta1UpdateProjectResponse from a dict +v1beta1_update_project_response_form_dict = v1beta1_update_project_response.from_dict(v1beta1_update_project_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateRoleResponse.md b/docs/V1beta1UpdateRoleResponse.md new file mode 100644 index 0000000..547ba82 --- /dev/null +++ b/docs/V1beta1UpdateRoleResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateRoleResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | [**V1beta1Role**](V1beta1Role.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_role_response import V1beta1UpdateRoleResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateRoleResponse from a JSON string +v1beta1_update_role_response_instance = V1beta1UpdateRoleResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateRoleResponse.to_json() + +# convert the object into a dict +v1beta1_update_role_response_dict = v1beta1_update_role_response_instance.to_dict() +# create an instance of V1beta1UpdateRoleResponse from a dict +v1beta1_update_role_response_form_dict = v1beta1_update_role_response.from_dict(v1beta1_update_role_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateSubscriptionResponse.md b/docs/V1beta1UpdateSubscriptionResponse.md new file mode 100644 index 0000000..639f869 --- /dev/null +++ b/docs/V1beta1UpdateSubscriptionResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateSubscriptionResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription** | [**V1beta1Subscription**](V1beta1Subscription.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_subscription_response import V1beta1UpdateSubscriptionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateSubscriptionResponse from a JSON string +v1beta1_update_subscription_response_instance = V1beta1UpdateSubscriptionResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateSubscriptionResponse.to_json() + +# convert the object into a dict +v1beta1_update_subscription_response_dict = v1beta1_update_subscription_response_instance.to_dict() +# create an instance of V1beta1UpdateSubscriptionResponse from a dict +v1beta1_update_subscription_response_form_dict = v1beta1_update_subscription_response.from_dict(v1beta1_update_subscription_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UpdateUserResponse.md b/docs/V1beta1UpdateUserResponse.md new file mode 100644 index 0000000..01198a8 --- /dev/null +++ b/docs/V1beta1UpdateUserResponse.md @@ -0,0 +1,28 @@ +# V1beta1UpdateUserResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | [**V1beta1User**](V1beta1User.md) | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_update_user_response import V1beta1UpdateUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UpdateUserResponse from a JSON string +v1beta1_update_user_response_instance = V1beta1UpdateUserResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1UpdateUserResponse.to_json() + +# convert the object into a dict +v1beta1_update_user_response_dict = v1beta1_update_user_response_instance.to_dict() +# create an instance of V1beta1UpdateUserResponse from a dict +v1beta1_update_user_response_form_dict = v1beta1_update_user_response.from_dict(v1beta1_update_user_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1Usage.md b/docs/V1beta1Usage.md new file mode 100644 index 0000000..da8411c --- /dev/null +++ b/docs/V1beta1Usage.md @@ -0,0 +1,36 @@ +# V1beta1Usage + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**customer_id** | **str** | | [optional] +**source** | **str** | | [optional] +**description** | **str** | | [optional] +**type** | **str** | | [optional] +**amount** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_usage import V1beta1Usage + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1Usage from a JSON string +v1beta1_usage_instance = V1beta1Usage.from_json(json) +# print the JSON string representation of the object +print V1beta1Usage.to_json() + +# convert the object into a dict +v1beta1_usage_dict = v1beta1_usage_instance.to_dict() +# create an instance of V1beta1Usage from a dict +v1beta1_usage_form_dict = v1beta1_usage.from_dict(v1beta1_usage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1User.md b/docs/V1beta1User.md new file mode 100644 index 0000000..a2fe1be --- /dev/null +++ b/docs/V1beta1User.md @@ -0,0 +1,36 @@ +# V1beta1User + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | Unique name of the user. | [optional] +**title** | **str** | Name of the user. | [optional] +**email** | **str** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **datetime** | The time the user was created. | [optional] +**updated_at** | **datetime** | The time the user was last updated. | [optional] +**state** | **str** | The state of the user (enabled or disabled). | [optional] +**avatar** | **str** | The base64 encoded image string of the user avatar. Should be less than 2MB. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_user import V1beta1User + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1User from a JSON string +v1beta1_user_instance = V1beta1User.from_json(json) +# print the JSON string representation of the object +print V1beta1User.to_json() + +# convert the object into a dict +v1beta1_user_dict = v1beta1_user_instance.to_dict() +# create an instance of V1beta1User from a dict +v1beta1_user_form_dict = v1beta1_user.from_dict(v1beta1_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1UserRequestBody.md b/docs/V1beta1UserRequestBody.md new file mode 100644 index 0000000..d0985eb --- /dev/null +++ b/docs/V1beta1UserRequestBody.md @@ -0,0 +1,32 @@ +# V1beta1UserRequestBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email. | [optional] +**email** | **str** | The email of the user. The email must be unique within the entire Frontier instance.<br/>*Example:*`\"john.doe@raystack.org\"` | +**metadata** | **object** | Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object. <br/>*Example:*`{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}` | [optional] +**title** | **str** | The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty. <br/>*Example:*`\"John Doe\"` | [optional] +**avatar** | **str** | The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`. | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1UserRequestBody from a JSON string +v1beta1_user_request_body_instance = V1beta1UserRequestBody.from_json(json) +# print the JSON string representation of the object +print V1beta1UserRequestBody.to_json() + +# convert the object into a dict +v1beta1_user_request_body_dict = v1beta1_user_request_body_instance.to_dict() +# create an instance of V1beta1UserRequestBody from a dict +v1beta1_user_request_body_form_dict = v1beta1_user_request_body.from_dict(v1beta1_user_request_body_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VerifyOrganizationDomainResponse.md b/docs/V1beta1VerifyOrganizationDomainResponse.md new file mode 100644 index 0000000..f904b28 --- /dev/null +++ b/docs/V1beta1VerifyOrganizationDomainResponse.md @@ -0,0 +1,28 @@ +# V1beta1VerifyOrganizationDomainResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | **str** | | [optional] + +## Example + +```python +from frontier_api.models.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1beta1VerifyOrganizationDomainResponse from a JSON string +v1beta1_verify_organization_domain_response_instance = V1beta1VerifyOrganizationDomainResponse.from_json(json) +# print the JSON string representation of the object +print V1beta1VerifyOrganizationDomainResponse.to_json() + +# convert the object into a dict +v1beta1_verify_organization_domain_response_dict = v1beta1_verify_organization_domain_response_instance.to_dict() +# create an instance of V1beta1VerifyOrganizationDomainResponse from a dict +v1beta1_verify_organization_domain_response_form_dict = v1beta1_verify_organization_domain_response.from_dict(v1beta1_verify_organization_domain_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/apis/tags/AuditLogApi.md b/docs/apis/tags/AuditLogApi.md deleted file mode 100644 index 843a9e3..0000000 --- a/docs/apis/tags/AuditLogApi.md +++ /dev/null @@ -1,688 +0,0 @@ - -# frontier_api.apis.tags.audit_log_api.AuditLogApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**frontier_service_create_organization_audit_logs**](#frontier_service_create_organization_audit_logs) | **post** /v1beta1/organization/{orgId}/auditlogs | Create audit log -[**frontier_service_get_organization_audit_log**](#frontier_service_get_organization_audit_log) | **get** /v1beta1/organization/{orgId}/auditlogs/{id} | Get audit log -[**frontier_service_list_organization_audit_logs**](#frontier_service_list_organization_audit_logs) | **get** /v1beta1/organization/{orgId}/auditlogs | List audit logs - -# **frontier_service_create_organization_audit_logs** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_create_organization_audit_logs(org_idbody) - -Create audit log - -Create new audit logs in a batch. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import audit_log_api -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audit_log_api.AuditLogApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - body = dict( - logs=[ - V1beta1AuditLog( - id="id_example", - source="auth", - action="action_example", - actor=V1beta1AuditLogActor( - id="id_example", - type="type_example", - name="name_example", - ), -, - context=dict( - "key": "key_example", - ), - created_at="2023-06-07T05:39:56.961Z", - ) - ], - ) - try: - # Create audit log - api_response = api_instance.frontier_service_create_organization_audit_logs( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuditLogApi->frontier_service_create_organization_audit_logs: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[logs](#logs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# logs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1AuditLog**]({{complexTypePrefix}}V1beta1AuditLog.md) | [**V1beta1AuditLog**]({{complexTypePrefix}}V1beta1AuditLog.md) | [**V1beta1AuditLog**]({{complexTypePrefix}}V1beta1AuditLog.md) | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_organization_audit_logs.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_organization_audit_logs.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_organization_audit_logs.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_organization_audit_logs.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_organization_audit_logs.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_organization_audit_logs.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_organization_audit_logs.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_organization_audit_logs.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_create_organization_audit_logs.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_audit_logs.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_audit_logs.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_audit_logs.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_audit_logs.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_audit_logs.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_organization_audit_log** - -> V1beta1GetOrganizationAuditLogResponse frontier_service_get_organization_audit_log(org_idid) - -Get audit log - -Get an audit log by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import audit_log_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audit_log_api.AuditLogApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Get audit log - api_response = api_instance.frontier_service_get_organization_audit_log( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuditLogApi->frontier_service_get_organization_audit_log: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_organization_audit_log.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_organization_audit_log.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_organization_audit_log.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_organization_audit_log.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_organization_audit_log.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_organization_audit_log.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_organization_audit_log.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_organization_audit_log.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetOrganizationAuditLogResponse**](../../models/V1beta1GetOrganizationAuditLogResponse.md) | | - - -#### frontier_service_get_organization_audit_log.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_audit_log.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_audit_log.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_audit_log.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_audit_log.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_audit_log.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_audit_logs** - -> V1beta1ListOrganizationAuditLogsResponse frontier_service_list_organization_audit_logs(org_id) - -List audit logs - -Returns a list of audit logs of an organization in Frontier. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import audit_log_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = audit_log_api.AuditLogApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - query_params = { - } - try: - # List audit logs - api_response = api_instance.frontier_service_list_organization_audit_logs( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuditLogApi->frontier_service_list_organization_audit_logs: %s\n" % e) - - # example passing only optional values - path_params = { - 'orgId': "orgId_example", - } - query_params = { - 'source': "source_example", - 'action': "action_example", - 'startTime': "1970-01-01T00:00:00.00Z", - 'endTime': "1970-01-01T00:00:00.00Z", - } - try: - # List audit logs - api_response = api_instance.frontier_service_list_organization_audit_logs( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuditLogApi->frontier_service_list_organization_audit_logs: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -source | SourceSchema | | optional -action | ActionSchema | | optional -startTime | StartTimeSchema | | optional -endTime | EndTimeSchema | | optional - - -# SourceSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ActionSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StartTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime, | str, | | value must conform to RFC-3339 date-time - -# EndTimeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, datetime, | str, | | value must conform to RFC-3339 date-time - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_audit_logs.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_audit_logs.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_audit_logs.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_audit_logs.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_audit_logs.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_audit_logs.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_audit_logs.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_audit_logs.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationAuditLogsResponse**](../../models/V1beta1ListOrganizationAuditLogsResponse.md) | | - - -#### frontier_service_list_organization_audit_logs.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_audit_logs.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_audit_logs.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_audit_logs.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_audit_logs.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_audit_logs.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/AuthnApi.md b/docs/apis/tags/AuthnApi.md deleted file mode 100644 index a84bfcb..0000000 --- a/docs/apis/tags/AuthnApi.md +++ /dev/null @@ -1,1520 +0,0 @@ - -# frontier_api.apis.tags.authn_api.AuthnApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**frontier_service_auth_callback**](#frontier_service_auth_callback) | **get** /v1beta1/auth/callback | Callback from a strategy -[**frontier_service_auth_callback2**](#frontier_service_auth_callback2) | **post** /v1beta1/auth/callback | Callback from a strategy -[**frontier_service_auth_logout**](#frontier_service_auth_logout) | **get** /v1beta1/auth/logout | Logout from a strategy -[**frontier_service_auth_logout2**](#frontier_service_auth_logout2) | **delete** /v1beta1/auth/logout | Logout from a strategy -[**frontier_service_auth_token**](#frontier_service_auth_token) | **post** /v1beta1/auth/token | Generate access token by given credentials -[**frontier_service_authenticate**](#frontier_service_authenticate) | **get** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy -[**frontier_service_authenticate2**](#frontier_service_authenticate2) | **post** /v1beta1/auth/register/{strategyName} | Authenticate with a strategy -[**frontier_service_list_auth_strategies**](#frontier_service_list_auth_strategies) | **get** /v1beta1/auth | List authentication strategies - -# **frontier_service_auth_callback** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_auth_callback() - -Callback from a strategy - -Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example passing only optional values - query_params = { - 'strategyName': "strategyName_example", - 'state': "state_example", - 'code': "code_example", - } - try: - # Callback from a strategy - api_response = api_instance.frontier_service_auth_callback( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_auth_callback: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -strategyName | StrategyNameSchema | | optional -state | StateSchema | | optional -code | CodeSchema | | optional - - -# StrategyNameSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CodeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_auth_callback.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_auth_callback.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_auth_callback.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_auth_callback.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_auth_callback.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_auth_callback.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_auth_callback.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_auth_callback.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_auth_callback.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_auth_callback2** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_auth_callback2(body) - -Callback from a strategy - -Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1AuthCallbackRequest( - strategy_name="strategy_name_example", - state="state_example", - code="code_example", - ) - try: - # Callback from a strategy - api_response = api_instance.frontier_service_auth_callback2( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_auth_callback2: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1AuthCallbackRequest**](../../models/V1beta1AuthCallbackRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_auth_callback2.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_auth_callback2.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_auth_callback2.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_auth_callback2.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_auth_callback2.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_auth_callback2.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_auth_callback2.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_auth_callback2.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_auth_callback2.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback2.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback2.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback2.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback2.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_callback2.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_auth_logout** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_auth_logout() - -Logout from a strategy - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Logout from a strategy - api_response = api_instance.frontier_service_auth_logout() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_auth_logout: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_auth_logout.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_auth_logout.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_auth_logout.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_auth_logout.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_auth_logout.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_auth_logout.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_auth_logout.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_auth_logout.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_auth_logout.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_auth_logout2** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_auth_logout2() - -Logout from a strategy - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Logout from a strategy - api_response = api_instance.frontier_service_auth_logout2() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_auth_logout2: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_auth_logout2.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_auth_logout2.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_auth_logout2.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_auth_logout2.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_auth_logout2.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_auth_logout2.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_auth_logout2.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_auth_logout2.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_auth_logout2.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout2.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout2.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout2.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout2.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_logout2.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_auth_token** - -> V1beta1AuthTokenResponse frontier_service_auth_token(body) - -Generate access token by given credentials - -Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.v1beta1_auth_token_response import V1beta1AuthTokenResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_auth_token_request import V1beta1AuthTokenRequest -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1AuthTokenRequest( - grant_type="grant_type_example", - client_id="client_id_example", - client_secret="client_secret_example", - assertion="assertion_example", - ) - try: - # Generate access token by given credentials - api_response = api_instance.frontier_service_auth_token( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_auth_token: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1AuthTokenRequest**](../../models/V1beta1AuthTokenRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_auth_token.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_auth_token.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_auth_token.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_auth_token.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_auth_token.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_auth_token.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_auth_token.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_auth_token.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1AuthTokenResponse**](../../models/V1beta1AuthTokenResponse.md) | | - - -#### frontier_service_auth_token.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_token.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_token.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_token.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_token.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_auth_token.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_authenticate** - -> V1beta1AuthenticateResponse frontier_service_authenticate(strategy_name) - -Authenticate with a strategy - -Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'strategyName': "strategyName_example", - } - query_params = { - } - try: - # Authenticate with a strategy - api_response = api_instance.frontier_service_authenticate( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_authenticate: %s\n" % e) - - # example passing only optional values - path_params = { - 'strategyName': "strategyName_example", - } - query_params = { - 'redirectOnstart': True, - 'returnTo': "returnTo_example", - 'email': "email_example", - 'callbackUrl': "callbackUrl_example", - } - try: - # Authenticate with a strategy - api_response = api_instance.frontier_service_authenticate( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_authenticate: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -redirectOnstart | RedirectOnstartSchema | | optional -returnTo | ReturnToSchema | | optional -email | EmailSchema | | optional -callbackUrl | CallbackUrlSchema | | optional - - -# RedirectOnstartSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -# ReturnToSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# EmailSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# CallbackUrlSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -strategyName | StrategyNameSchema | | - -# StrategyNameSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_authenticate.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_authenticate.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_authenticate.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_authenticate.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_authenticate.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_authenticate.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_authenticate.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_authenticate.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1AuthenticateResponse**](../../models/V1beta1AuthenticateResponse.md) | | - - -#### frontier_service_authenticate.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_authenticate2** - -> V1beta1AuthenticateResponse frontier_service_authenticate2(strategy_namebody) - -Authenticate with a strategy - -Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'strategyName': "strategyName_example", - } - body = dict( - redirect_onstart=True, - return_to="return_to_example", - email="email_example", - callback_url="callback_url_example", - ) - try: - # Authenticate with a strategy - api_response = api_instance.frontier_service_authenticate2( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_authenticate2: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**redirectOnstart** | bool, | BoolClass, | If set to true, location header will be set for redirect to start auth flow | [optional] -**returnTo** | str, | str, | URL to redirect after successful authentication.<br/> *Example:*`\"https://frontier.example.com\"` | [optional] -**email** | str, | str, | Email of the user to authenticate. Used for magic links.<br/> *Example:*`example@acme.org` | [optional] -**callbackUrl** | str, | str, | Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.<br/> *Example:*`https://frontier.example.com/v1beta1/auth/callback` | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -strategyName | StrategyNameSchema | | - -# StrategyNameSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_authenticate2.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_authenticate2.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_authenticate2.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_authenticate2.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_authenticate2.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_authenticate2.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_authenticate2.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_authenticate2.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1AuthenticateResponse**](../../models/V1beta1AuthenticateResponse.md) | | - - -#### frontier_service_authenticate2.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate2.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate2.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate2.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate2.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_authenticate2.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_auth_strategies** - -> V1beta1ListAuthStrategiesResponse frontier_service_list_auth_strategies() - -List authentication strategies - -Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authn_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authn_api.AuthnApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # List authentication strategies - api_response = api_instance.frontier_service_list_auth_strategies() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthnApi->frontier_service_list_auth_strategies: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_auth_strategies.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_auth_strategies.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_auth_strategies.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_auth_strategies.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_auth_strategies.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_auth_strategies.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_auth_strategies.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_auth_strategies.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListAuthStrategiesResponse**](../../models/V1beta1ListAuthStrategiesResponse.md) | | - - -#### frontier_service_list_auth_strategies.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_auth_strategies.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_auth_strategies.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_auth_strategies.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_auth_strategies.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_auth_strategies.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/AuthzApi.md b/docs/apis/tags/AuthzApi.md deleted file mode 100644 index f5f8265..0000000 --- a/docs/apis/tags/AuthzApi.md +++ /dev/null @@ -1,696 +0,0 @@ - -# frontier_api.apis.tags.authz_api.AuthzApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**frontier_service_batch_check_permission**](#frontier_service_batch_check_permission) | **post** /v1beta1/batchcheck | Batch check -[**frontier_service_check_resource_permission**](#frontier_service_check_resource_permission) | **post** /v1beta1/check | Check -[**frontier_service_get_jwks**](#frontier_service_get_jwks) | **get** /v1beta1/auth/jwks | Get well known JWKs -[**frontier_service_get_jwks2**](#frontier_service_get_jwks2) | **get** /.well-known/jwks.json | Get well known JWKs - -# **frontier_service_batch_check_permission** - -> V1beta1BatchCheckPermissionResponse frontier_service_batch_check_permission(body) - -Batch check - -Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts). - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authz_api -from frontier_api.model.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authz_api.AuthzApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1BatchCheckPermissionRequest( - bodies=[ - V1beta1BatchCheckPermissionBody( - permission="permission_example", - resource="resource_example", - ) - ], - ) - try: - # Batch check - api_response = api_instance.frontier_service_batch_check_permission( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthzApi->frontier_service_batch_check_permission: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1BatchCheckPermissionRequest**](../../models/V1beta1BatchCheckPermissionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_batch_check_permission.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_batch_check_permission.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_batch_check_permission.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_batch_check_permission.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_batch_check_permission.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_batch_check_permission.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_batch_check_permission.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_batch_check_permission.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1BatchCheckPermissionResponse**](../../models/V1beta1BatchCheckPermissionResponse.md) | | - - -#### frontier_service_batch_check_permission.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_batch_check_permission.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_batch_check_permission.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_batch_check_permission.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_batch_check_permission.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_batch_check_permission.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_check_resource_permission** - -> V1beta1CheckResourcePermissionResponse frontier_service_check_resource_permission(body) - -Check - -Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts). - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authz_api -from frontier_api.model.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authz_api.AuthzApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1CheckResourcePermissionRequest( - object_id="object_id_example", - object_namespace="object_namespace_example", - permission="permission_example", - resource="resource_example", - ) - try: - # Check - api_response = api_instance.frontier_service_check_resource_permission( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthzApi->frontier_service_check_resource_permission: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CheckResourcePermissionRequest**](../../models/V1beta1CheckResourcePermissionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_check_resource_permission.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_check_resource_permission.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_check_resource_permission.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_check_resource_permission.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_check_resource_permission.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_check_resource_permission.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_check_resource_permission.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_check_resource_permission.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CheckResourcePermissionResponse**](../../models/V1beta1CheckResourcePermissionResponse.md) | | - - -#### frontier_service_check_resource_permission.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_check_resource_permission.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_check_resource_permission.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_check_resource_permission.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_check_resource_permission.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_check_resource_permission.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_jwks** - -> V1beta1GetJWKsResponse frontier_service_get_jwks() - -Get well known JWKs - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authz_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authz_api.AuthzApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Get well known JWKs - api_response = api_instance.frontier_service_get_jwks() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthzApi->frontier_service_get_jwks: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_jwks.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_jwks.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_jwks.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_jwks.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_jwks.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_jwks.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_jwks.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_jwks.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetJWKsResponse**](../../models/V1beta1GetJWKsResponse.md) | | - - -#### frontier_service_get_jwks.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_jwks2** - -> V1beta1GetJWKsResponse frontier_service_get_jwks2() - -Get well known JWKs - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import authz_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authz_api.AuthzApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Get well known JWKs - api_response = api_instance.frontier_service_get_jwks2() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling AuthzApi->frontier_service_get_jwks2: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_jwks2.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_jwks2.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_jwks2.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_jwks2.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_jwks2.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_jwks2.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_jwks2.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_jwks2.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetJWKsResponse**](../../models/V1beta1GetJWKsResponse.md) | | - - -#### frontier_service_get_jwks2.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks2.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks2.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks2.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks2.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_jwks2.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/GroupApi.md b/docs/apis/tags/GroupApi.md deleted file mode 100644 index 99a083a..0000000 --- a/docs/apis/tags/GroupApi.md +++ /dev/null @@ -1,2309 +0,0 @@ - -# frontier_api.apis.tags.group_api.GroupApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_groups**](#admin_service_list_groups) | **get** /v1beta1/admin/groups | List all groups -[**frontier_service_add_group_users**](#frontier_service_add_group_users) | **post** /v1beta1/organizations/{orgId}/groups/{id}/users | Add group user -[**frontier_service_create_group**](#frontier_service_create_group) | **post** /v1beta1/organizations/{orgId}/groups | Create group -[**frontier_service_delete_group**](#frontier_service_delete_group) | **delete** /v1beta1/organizations/{orgId}/groups/{id} | Delete group -[**frontier_service_disable_group**](#frontier_service_disable_group) | **post** /v1beta1/organizations/{orgId}/groups/{id}/disable | Disable group -[**frontier_service_enable_group**](#frontier_service_enable_group) | **post** /v1beta1/organizations/{orgId}/groups/{id}/enable | Enable group -[**frontier_service_get_group**](#frontier_service_get_group) | **get** /v1beta1/organizations/{orgId}/groups/{id} | Get group -[**frontier_service_list_group_users**](#frontier_service_list_group_users) | **get** /v1beta1/organizations/{orgId}/groups/{id}/users | List group users -[**frontier_service_list_organization_groups**](#frontier_service_list_organization_groups) | **get** /v1beta1/organizations/{orgId}/groups | List organization groups -[**frontier_service_remove_group_user**](#frontier_service_remove_group_user) | **delete** /v1beta1/organizations/{orgId}/groups/{id}/users/{userId} | Remove group user -[**frontier_service_update_group**](#frontier_service_update_group) | **put** /v1beta1/organizations/{orgId}/groups/{id} | Update group - -# **admin_service_list_groups** - -> V1beta1ListGroupsResponse admin_service_list_groups() - -List all groups - -Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_groups_response import V1beta1ListGroupsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only optional values - query_params = { - 'orgId': "orgId_example", - 'state': "state_example", - } - try: - # List all groups - api_response = api_instance.admin_service_list_groups( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->admin_service_list_groups: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional -state | StateSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_groups.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_groups.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_groups.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_groups.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_groups.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_groups.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_groups.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_groups.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListGroupsResponse**](../../models/V1beta1ListGroupsResponse.md) | | - - -#### admin_service_list_groups.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_groups.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_groups.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_groups.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_groups.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_groups.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_add_group_users** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_add_group_users(org_ididbody) - -Add group user - -Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - body = dict( - user_ids=[ - "user_ids_example" - ], - ) - try: - # Add group user - api_response = api_instance.frontier_service_add_group_users( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_add_group_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[userIds](#userIds)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# userIds - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_add_group_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_add_group_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_add_group_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_add_group_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_add_group_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_add_group_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_add_group_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_add_group_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_add_group_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_group_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_group_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_group_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_group_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_group_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_group** - -> V1beta1CreateGroupResponse frontier_service_create_group(org_idbody) - -Create group - -Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_create_group_response import V1beta1CreateGroupResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - body = V1beta1GroupRequestBody( - name="name_example", - title="title_example", - metadata=dict(), - ) - try: - # Create group - api_response = api_instance.frontier_service_create_group( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_create_group: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GroupRequestBody**](../../models/V1beta1GroupRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_group.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_group.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_group.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_group.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_group.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_group.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_group.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateGroupResponse**](../../models/V1beta1CreateGroupResponse.md) | | - - -#### frontier_service_create_group.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_group** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_group(org_idid) - -Delete group - -Delete an organization group permanently and all of its relations - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Delete group - api_response = api_instance.frontier_service_delete_group( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_delete_group: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_group.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_group.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_group.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_group.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_group.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_group.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_group.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_group.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_group.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_group.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_group.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_group.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_disable_group** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_disable_group(org_ididbody) - -Disable group - -Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - body = dict() - try: - # Disable group - api_response = api_instance.frontier_service_disable_group( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_disable_group: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_disable_group.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_disable_group.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_disable_group.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_disable_group.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_disable_group.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_disable_group.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_disable_group.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_disable_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_disable_group.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_group.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_group.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_group.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_group.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_enable_group** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_enable_group(org_ididbody) - -Enable group - -Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - body = dict() - try: - # Enable group - api_response = api_instance.frontier_service_enable_group( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_enable_group: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_enable_group.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_enable_group.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_enable_group.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_enable_group.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_enable_group.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_enable_group.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_enable_group.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_enable_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_enable_group.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_group.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_group.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_group.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_group.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_group** - -> V1beta1GetGroupResponse frontier_service_get_group(org_idid) - -Get group - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.v1beta1_get_group_response import V1beta1GetGroupResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Get group - api_response = api_instance.frontier_service_get_group( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_get_group: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_group.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_group.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_group.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_group.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_group.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_group.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_group.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetGroupResponse**](../../models/V1beta1GetGroupResponse.md) | | - - -#### frontier_service_get_group.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_group.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_group.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_group.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_group.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_group_users** - -> V1beta1ListGroupUsersResponse frontier_service_list_group_users(org_idid) - -List group users - -Returns a list of users that belong to a group. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - query_params = { - } - try: - # List group users - api_response = api_instance.frontier_service_list_group_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_list_group_users: %s\n" % e) - - # example passing only optional values - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - query_params = { - 'withRoles': True, - } - try: - # List group users - api_response = api_instance.frontier_service_list_group_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_list_group_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -withRoles | WithRolesSchema | | optional - - -# WithRolesSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_group_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_group_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_group_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_group_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_group_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_group_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_group_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_group_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListGroupUsersResponse**](../../models/V1beta1ListGroupUsersResponse.md) | | - - -#### frontier_service_list_group_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_groups** - -> V1beta1ListOrganizationGroupsResponse frontier_service_list_organization_groups(org_id) - -List organization groups - -Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - query_params = { - } - try: - # List organization groups - api_response = api_instance.frontier_service_list_organization_groups( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_list_organization_groups: %s\n" % e) - - # example passing only optional values - path_params = { - 'orgId': "orgId_example", - } - query_params = { - 'state': "state_example", - } - try: - # List organization groups - api_response = api_instance.frontier_service_list_organization_groups( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_list_organization_groups: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -state | StateSchema | | optional - - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_groups.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_groups.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_groups.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_groups.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_groups.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_groups.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_groups.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_groups.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationGroupsResponse**](../../models/V1beta1ListOrganizationGroupsResponse.md) | | - - -#### frontier_service_list_organization_groups.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_groups.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_groups.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_groups.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_groups.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_groups.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_remove_group_user** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_remove_group_user(org_ididuser_id) - -Remove group user - -Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - 'userId': "userId_example", - } - try: - # Remove group user - api_response = api_instance.frontier_service_remove_group_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_remove_group_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | -userId | UserIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_remove_group_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_remove_group_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_remove_group_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_remove_group_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_remove_group_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_remove_group_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_remove_group_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_remove_group_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_remove_group_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_group_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_group_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_group_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_group_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_group_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_group** - -> V1beta1UpdateGroupResponse frontier_service_update_group(org_ididbody) - -Update group - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import group_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_update_group_response import V1beta1UpdateGroupResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = group_api.GroupApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - body = V1beta1GroupRequestBody( - name="name_example", - title="title_example", - metadata=dict(), - ) - try: - # Update group - api_response = api_instance.frontier_service_update_group( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling GroupApi->frontier_service_update_group: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GroupRequestBody**](../../models/V1beta1GroupRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_group.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_group.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_group.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_group.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_group.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_group.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_group.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_group.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateGroupResponse**](../../models/V1beta1UpdateGroupResponse.md) | | - - -#### frontier_service_update_group.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_group.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_group.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_group.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_group.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_group.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/MetaSchemaApi.md b/docs/apis/tags/MetaSchemaApi.md deleted file mode 100644 index 770209a..0000000 --- a/docs/apis/tags/MetaSchemaApi.md +++ /dev/null @@ -1,925 +0,0 @@ - -# frontier_api.apis.tags.meta_schema_api.MetaSchemaApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**frontier_service_create_meta_schema**](#frontier_service_create_meta_schema) | **post** /v1beta1/meta/schemas | Create metaschema -[**frontier_service_delete_meta_schema**](#frontier_service_delete_meta_schema) | **delete** /v1beta1/meta/schemas/{id} | Delete metaschema -[**frontier_service_get_meta_schema**](#frontier_service_get_meta_schema) | **get** /v1beta1/meta/schemas/{id} | Get metaschema -[**frontier_service_list_meta_schemas**](#frontier_service_list_meta_schemas) | **get** /v1beta1/meta/schemas | List metaschemas -[**frontier_service_update_meta_schema**](#frontier_service_update_meta_schema) | **put** /v1beta1/meta/schemas/{id} | Update metaschema - -# **frontier_service_create_meta_schema** - -> V1beta1CreateMetaSchemaResponse frontier_service_create_meta_schema(body) - -Create metaschema - -Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import meta_schema_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = meta_schema_api.MetaSchemaApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1MetaSchemaRequestBody( - name="name_example", - schema="schema_example", - ) - try: - # Create metaschema - api_response = api_instance.frontier_service_create_meta_schema( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling MetaSchemaApi->frontier_service_create_meta_schema: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1MetaSchemaRequestBody**](../../models/V1beta1MetaSchemaRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_meta_schema.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_meta_schema.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_meta_schema.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_meta_schema.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_meta_schema.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_meta_schema.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_meta_schema.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_meta_schema.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateMetaSchemaResponse**](../../models/V1beta1CreateMetaSchemaResponse.md) | | - - -#### frontier_service_create_meta_schema.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_meta_schema.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_meta_schema.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_meta_schema.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_meta_schema.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_meta_schema.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_meta_schema** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_meta_schema(id) - -Delete metaschema - -Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata). - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import meta_schema_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = meta_schema_api.MetaSchemaApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete metaschema - api_response = api_instance.frontier_service_delete_meta_schema( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling MetaSchemaApi->frontier_service_delete_meta_schema: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_meta_schema.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_meta_schema.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_meta_schema.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_meta_schema.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_meta_schema.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_meta_schema.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_meta_schema.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_meta_schema.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_meta_schema.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_meta_schema.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_meta_schema.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_meta_schema.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_meta_schema.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_meta_schema.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_meta_schema** - -> V1beta1GetMetaSchemaResponse frontier_service_get_meta_schema(id) - -Get metaschema - -Get a metadata schema by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import meta_schema_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = meta_schema_api.MetaSchemaApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get metaschema - api_response = api_instance.frontier_service_get_meta_schema( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling MetaSchemaApi->frontier_service_get_meta_schema: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_meta_schema.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_meta_schema.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_meta_schema.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_meta_schema.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_meta_schema.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_meta_schema.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_meta_schema.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_meta_schema.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetMetaSchemaResponse**](../../models/V1beta1GetMetaSchemaResponse.md) | | - - -#### frontier_service_get_meta_schema.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_meta_schema.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_meta_schema.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_meta_schema.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_meta_schema.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_meta_schema.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_meta_schemas** - -> V1beta1ListMetaSchemasResponse frontier_service_list_meta_schemas() - -List metaschemas - -Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import meta_schema_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = meta_schema_api.MetaSchemaApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # List metaschemas - api_response = api_instance.frontier_service_list_meta_schemas() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling MetaSchemaApi->frontier_service_list_meta_schemas: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_meta_schemas.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_meta_schemas.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_meta_schemas.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_meta_schemas.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_meta_schemas.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_meta_schemas.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_meta_schemas.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_meta_schemas.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListMetaSchemasResponse**](../../models/V1beta1ListMetaSchemasResponse.md) | | - - -#### frontier_service_list_meta_schemas.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_meta_schemas.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_meta_schemas.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_meta_schemas.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_meta_schemas.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_meta_schemas.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_meta_schema** - -> V1beta1UpdateMetaSchemaResponse frontier_service_update_meta_schema(idbody) - -Update metaschema - -Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import meta_schema_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = meta_schema_api.MetaSchemaApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1MetaSchemaRequestBody( - name="name_example", - schema="schema_example", - ) - try: - # Update metaschema - api_response = api_instance.frontier_service_update_meta_schema( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling MetaSchemaApi->frontier_service_update_meta_schema: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1MetaSchemaRequestBody**](../../models/V1beta1MetaSchemaRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_meta_schema.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_meta_schema.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_meta_schema.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_meta_schema.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_meta_schema.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_meta_schema.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_meta_schema.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_meta_schema.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateMetaSchemaResponse**](../../models/V1beta1UpdateMetaSchemaResponse.md) | | - - -#### frontier_service_update_meta_schema.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_meta_schema.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_meta_schema.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_meta_schema.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_meta_schema.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_meta_schema.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/NamespaceApi.md b/docs/apis/tags/NamespaceApi.md deleted file mode 100644 index dc4020e..0000000 --- a/docs/apis/tags/NamespaceApi.md +++ /dev/null @@ -1,354 +0,0 @@ - -# frontier_api.apis.tags.namespace_api.NamespaceApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**frontier_service_get_namespace**](#frontier_service_get_namespace) | **get** /v1beta1/namespaces/{id} | Get namespace -[**frontier_service_list_namespaces**](#frontier_service_list_namespaces) | **get** /v1beta1/namespaces | Get all namespaces - -# **frontier_service_get_namespace** - -> V1beta1GetNamespaceResponse frontier_service_get_namespace(id) - -Get namespace - -Returns a namespace by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import namespace_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = namespace_api.NamespaceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get namespace - api_response = api_instance.frontier_service_get_namespace( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling NamespaceApi->frontier_service_get_namespace: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_namespace.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_namespace.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_namespace.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_namespace.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_namespace.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_namespace.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_namespace.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_namespace.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetNamespaceResponse**](../../models/V1beta1GetNamespaceResponse.md) | | - - -#### frontier_service_get_namespace.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_namespace.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_namespace.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_namespace.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_namespace.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_namespace.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_namespaces** - -> V1beta1ListNamespacesResponse frontier_service_list_namespaces() - -Get all namespaces - -Returns the list of all namespaces in a Frontier instance - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import namespace_api -from frontier_api.model.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = namespace_api.NamespaceApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Get all namespaces - api_response = api_instance.frontier_service_list_namespaces() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling NamespaceApi->frontier_service_list_namespaces: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_namespaces.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_namespaces.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_namespaces.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_namespaces.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_namespaces.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_namespaces.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_namespaces.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_namespaces.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListNamespacesResponse**](../../models/V1beta1ListNamespacesResponse.md) | | - - -#### frontier_service_list_namespaces.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_namespaces.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_namespaces.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_namespaces.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_namespaces.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_namespaces.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/OrganizationApi.md b/docs/apis/tags/OrganizationApi.md deleted file mode 100644 index 53dcda9..0000000 --- a/docs/apis/tags/OrganizationApi.md +++ /dev/null @@ -1,5066 +0,0 @@ - -# frontier_api.apis.tags.organization_api.OrganizationApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_all_organizations**](#admin_service_list_all_organizations) | **get** /v1beta1/admin/organizations | List all organizations -[**frontier_service_accept_organization_invitation**](#frontier_service_accept_organization_invitation) | **post** /v1beta1/organizations/{orgId}/invitations/{id}/accept | Accept pending invitation -[**frontier_service_add_organization_users**](#frontier_service_add_organization_users) | **post** /v1beta1/organizations/{id}/users | Add organization user -[**frontier_service_create_organization**](#frontier_service_create_organization) | **post** /v1beta1/organizations | Create organization -[**frontier_service_create_organization_domain**](#frontier_service_create_organization_domain) | **post** /v1beta1/organizations/{orgId}/domains | Create org domain -[**frontier_service_create_organization_invitation**](#frontier_service_create_organization_invitation) | **post** /v1beta1/organizations/{orgId}/invitations | Invite user -[**frontier_service_delete_organization**](#frontier_service_delete_organization) | **delete** /v1beta1/organizations/{id} | Delete organization -[**frontier_service_delete_organization_domain**](#frontier_service_delete_organization_domain) | **delete** /v1beta1/organizations/{orgId}/domains/{id} | Delete org domain -[**frontier_service_delete_organization_invitation**](#frontier_service_delete_organization_invitation) | **delete** /v1beta1/organizations/{orgId}/invitations/{id} | Delete pending invitation -[**frontier_service_disable_organization**](#frontier_service_disable_organization) | **post** /v1beta1/organizations/{id}/disable | Disable organization -[**frontier_service_enable_organization**](#frontier_service_enable_organization) | **post** /v1beta1/organizations/{id}/enable | Enable organization -[**frontier_service_get_organization**](#frontier_service_get_organization) | **get** /v1beta1/organizations/{id} | Get organization -[**frontier_service_get_organization_domain**](#frontier_service_get_organization_domain) | **get** /v1beta1/organizations/{orgId}/domains/{id} | Get org domain -[**frontier_service_get_organization_invitation**](#frontier_service_get_organization_invitation) | **get** /v1beta1/organizations/{orgId}/invitations/{id} | Get pending invitation -[**frontier_service_join_organization**](#frontier_service_join_organization) | **post** /v1beta1/organizations/{orgId}/join | Join organization -[**frontier_service_list_organization_admins**](#frontier_service_list_organization_admins) | **get** /v1beta1/organizations/{id}/admins | List organization admins -[**frontier_service_list_organization_domains**](#frontier_service_list_organization_domains) | **get** /v1beta1/organizations/{orgId}/domains | List org domains -[**frontier_service_list_organization_invitations**](#frontier_service_list_organization_invitations) | **get** /v1beta1/organizations/{orgId}/invitations | List pending invitations -[**frontier_service_list_organization_projects**](#frontier_service_list_organization_projects) | **get** /v1beta1/organizations/{id}/projects | Get organization projects -[**frontier_service_list_organization_service_users**](#frontier_service_list_organization_service_users) | **get** /v1beta1/organizations/{id}/serviceusers | List organization service users -[**frontier_service_list_organization_users**](#frontier_service_list_organization_users) | **get** /v1beta1/organizations/{id}/users | List organization users -[**frontier_service_list_organizations**](#frontier_service_list_organizations) | **get** /v1beta1/organizations | List organizations -[**frontier_service_remove_organization_user**](#frontier_service_remove_organization_user) | **delete** /v1beta1/organizations/{id}/users/{userId} | Remove organization user -[**frontier_service_update_organization**](#frontier_service_update_organization) | **put** /v1beta1/organizations/{id} | Update organization -[**frontier_service_verify_organization_domain**](#frontier_service_verify_organization_domain) | **post** /v1beta1/organizations/{orgId}/domains/{id}/verify | Verify org domain - -# **admin_service_list_all_organizations** - -> V1beta1ListAllOrganizationsResponse admin_service_list_all_organizations() - -List all organizations - -Lists all the organizations in a Frontier instance. It can be filtered by user and state. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only optional values - query_params = { - 'userId': "userId_example", - 'state': "state_example", - } - try: - # List all organizations - api_response = api_instance.admin_service_list_all_organizations( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->admin_service_list_all_organizations: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -userId | UserIdSchema | | optional -state | StateSchema | | optional - - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_all_organizations.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_all_organizations.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_all_organizations.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_all_organizations.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_all_organizations.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_all_organizations.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_all_organizations.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_all_organizations.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListAllOrganizationsResponse**](../../models/V1beta1ListAllOrganizationsResponse.md) | | - - -#### admin_service_list_all_organizations.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_organizations.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_organizations.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_organizations.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_organizations.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_organizations.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_accept_organization_invitation** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_accept_organization_invitation(org_idid) - -Accept pending invitation - -Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Accept pending invitation - api_response = api_instance.frontier_service_accept_organization_invitation( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_accept_organization_invitation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_accept_organization_invitation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_accept_organization_invitation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_accept_organization_invitation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_accept_organization_invitation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_accept_organization_invitation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_accept_organization_invitation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_accept_organization_invitation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_accept_organization_invitation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_accept_organization_invitation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_accept_organization_invitation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_accept_organization_invitation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_accept_organization_invitation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_accept_organization_invitation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_accept_organization_invitation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_add_organization_users** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_add_organization_users(idbody) - -Add organization user - -Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - user_ids=[ - "user_ids_example" - ], - ) - try: - # Add organization user - api_response = api_instance.frontier_service_add_organization_users( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_add_organization_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[userIds](#userIds)** | list, tuple, | tuple, | List of user IDs to be added to the organization. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# userIds - -List of user IDs to be added to the organization. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | List of user IDs to be added to the organization. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_add_organization_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_add_organization_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_add_organization_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_add_organization_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_add_organization_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_add_organization_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_add_organization_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_add_organization_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_add_organization_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_organization_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_organization_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_organization_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_organization_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_add_organization_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_organization** - -> V1beta1CreateOrganizationResponse frontier_service_create_organization(body) - -Create organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1OrganizationRequestBody( - name="name_example", - title="title_example", - metadata=dict(), - avatar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA", - ) - try: - # Create organization - api_response = api_instance.frontier_service_create_organization( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_create_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1OrganizationRequestBody**](../../models/V1beta1OrganizationRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateOrganizationResponse**](../../models/V1beta1CreateOrganizationResponse.md) | | - - -#### frontier_service_create_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_organization_domain** - -> V1beta1CreateOrganizationDomainResponse frontier_service_create_organization_domain(org_idbody) - -Create org domain - -Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - body = dict( - domain="domain_example", - ) - try: - # Create org domain - api_response = api_instance.frontier_service_create_organization_domain( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_create_organization_domain: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**domain** | str, | str, | domain name to be added to the trusted domain list | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_organization_domain.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_organization_domain.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_organization_domain.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_organization_domain.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_organization_domain.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_organization_domain.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_organization_domain.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_organization_domain.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateOrganizationDomainResponse**](../../models/V1beta1CreateOrganizationDomainResponse.md) | | - - -#### frontier_service_create_organization_domain.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_domain.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_domain.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_domain.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_domain.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_domain.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_organization_invitation** - -> V1beta1CreateOrganizationInvitationResponse frontier_service_create_organization_invitation(org_idbody) - -Invite user - -Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - body = dict( - user_ids=[ - "user_ids_example" - ], - group_ids=[ - "group_ids_example" - ], - role_ids=[ - "role_ids_example" - ], - ) - try: - # Invite user - api_response = api_instance.frontier_service_create_organization_invitation( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_create_organization_invitation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[userIds](#userIds)** | list, tuple, | tuple, | user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified | -**[groupIds](#groupIds)** | list, tuple, | tuple, | list of group ids to which user needs to be added as a member. | [optional] -**[roleIds](#roleIds)** | list, tuple, | tuple, | list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# userIds - -user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# groupIds - -list of group ids to which user needs to be added as a member. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | list of group ids to which user needs to be added as a member. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# roleIds - -list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | list of role ids to which user needs to be added as a member. Roles are binded at organization level by default. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_organization_invitation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_organization_invitation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_organization_invitation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_organization_invitation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_organization_invitation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_organization_invitation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_organization_invitation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_organization_invitation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateOrganizationInvitationResponse**](../../models/V1beta1CreateOrganizationInvitationResponse.md) | | - - -#### frontier_service_create_organization_invitation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_invitation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_invitation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_invitation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_invitation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_invitation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_organization** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_organization(id) - -Delete organization - -Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete organization - api_response = api_instance.frontier_service_delete_organization( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_delete_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_organization_domain** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_organization_domain(org_idid) - -Delete org domain - -Remove a domain from the list of an organization's trusted domains list - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Delete org domain - api_response = api_instance.frontier_service_delete_organization_domain( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_delete_organization_domain: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_organization_domain.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_organization_domain.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_organization_domain.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_organization_domain.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_organization_domain.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_organization_domain.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_organization_domain.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_organization_domain.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_organization_domain.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_domain.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_domain.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_domain.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_domain.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_domain.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_organization_invitation** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_organization_invitation(org_idid) - -Delete pending invitation - -Delete a pending invitation queued for an organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Delete pending invitation - api_response = api_instance.frontier_service_delete_organization_invitation( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_delete_organization_invitation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_organization_invitation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_organization_invitation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_organization_invitation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_organization_invitation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_organization_invitation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_organization_invitation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_organization_invitation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_organization_invitation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_organization_invitation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_invitation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_invitation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_invitation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_invitation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_invitation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_disable_organization** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_disable_organization(idbody) - -Disable organization - -Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict() - try: - # Disable organization - api_response = api_instance.frontier_service_disable_organization( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_disable_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_disable_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_disable_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_disable_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_disable_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_disable_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_disable_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_disable_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_disable_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_disable_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_enable_organization** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_enable_organization(idbody) - -Enable organization - -Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict() - try: - # Enable organization - api_response = api_instance.frontier_service_enable_organization( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_enable_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_enable_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_enable_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_enable_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_enable_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_enable_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_enable_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_enable_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_enable_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_enable_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_organization** - -> V1beta1GetOrganizationResponse frontier_service_get_organization(id) - -Get organization - -Get organization by ID or name - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_response import V1beta1GetOrganizationResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get organization - api_response = api_instance.frontier_service_get_organization( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_get_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetOrganizationResponse**](../../models/V1beta1GetOrganizationResponse.md) | | - - -#### frontier_service_get_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_organization_domain** - -> V1beta1GetOrganizationDomainResponse frontier_service_get_organization_domain(org_idid) - -Get org domain - -Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Get org domain - api_response = api_instance.frontier_service_get_organization_domain( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_get_organization_domain: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_organization_domain.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_organization_domain.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_organization_domain.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_organization_domain.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_organization_domain.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_organization_domain.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_organization_domain.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_organization_domain.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetOrganizationDomainResponse**](../../models/V1beta1GetOrganizationDomainResponse.md) | | - - -#### frontier_service_get_organization_domain.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_domain.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_domain.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_domain.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_domain.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_domain.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_organization_invitation** - -> V1beta1GetOrganizationInvitationResponse frontier_service_get_organization_invitation(org_idid) - -Get pending invitation - -Returns a pending invitation queued for an organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Get pending invitation - api_response = api_instance.frontier_service_get_organization_invitation( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_get_organization_invitation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_organization_invitation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_organization_invitation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_organization_invitation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_organization_invitation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_organization_invitation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_organization_invitation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_organization_invitation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_organization_invitation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetOrganizationInvitationResponse**](../../models/V1beta1GetOrganizationInvitationResponse.md) | | - - -#### frontier_service_get_organization_invitation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_invitation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_invitation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_invitation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_invitation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_invitation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_join_organization** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_join_organization(org_id) - -Join organization - -Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - try: - # Join organization - api_response = api_instance.frontier_service_join_organization( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_join_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_join_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_join_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_join_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_join_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_join_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_join_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_join_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_join_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_join_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_join_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_join_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_join_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_join_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_join_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_admins** - -> V1beta1ListOrganizationAdminsResponse frontier_service_list_organization_admins(id) - -List organization admins - -Returns a list admins of an organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List organization admins - api_response = api_instance.frontier_service_list_organization_admins( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_admins: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_admins.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_admins.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_admins.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_admins.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_admins.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_admins.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_admins.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_admins.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationAdminsResponse**](../../models/V1beta1ListOrganizationAdminsResponse.md) | | - - -#### frontier_service_list_organization_admins.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_admins.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_admins.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_admins.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_admins.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_admins.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_domains** - -> V1beta1ListOrganizationDomainsResponse frontier_service_list_organization_domains(org_id) - -List org domains - -Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - query_params = { - } - try: - # List org domains - api_response = api_instance.frontier_service_list_organization_domains( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_domains: %s\n" % e) - - # example passing only optional values - path_params = { - 'orgId': "orgId_example", - } - query_params = { - 'state': "state_example", - } - try: - # List org domains - api_response = api_instance.frontier_service_list_organization_domains( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_domains: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -state | StateSchema | | optional - - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_domains.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_domains.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_domains.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_domains.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_domains.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_domains.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_domains.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_domains.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationDomainsResponse**](../../models/V1beta1ListOrganizationDomainsResponse.md) | | - - -#### frontier_service_list_organization_domains.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_domains.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_domains.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_domains.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_domains.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_domains.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_invitations** - -> V1beta1ListOrganizationInvitationsResponse frontier_service_list_organization_invitations(org_id) - -List pending invitations - -Returns all pending invitations queued for an organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - query_params = { - } - try: - # List pending invitations - api_response = api_instance.frontier_service_list_organization_invitations( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_invitations: %s\n" % e) - - # example passing only optional values - path_params = { - 'orgId': "orgId_example", - } - query_params = { - 'userId': "userId_example", - } - try: - # List pending invitations - api_response = api_instance.frontier_service_list_organization_invitations( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_invitations: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -userId | UserIdSchema | | optional - - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_invitations.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_invitations.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_invitations.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_invitations.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_invitations.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_invitations.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_invitations.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_invitations.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationInvitationsResponse**](../../models/V1beta1ListOrganizationInvitationsResponse.md) | | - - -#### frontier_service_list_organization_invitations.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_invitations.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_invitations.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_invitations.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_invitations.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_invitations.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_projects** - -> V1beta1ListOrganizationProjectsResponse frontier_service_list_organization_projects(id) - -Get organization projects - -Get all projects that belong to an organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - query_params = { - } - try: - # Get organization projects - api_response = api_instance.frontier_service_list_organization_projects( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_projects: %s\n" % e) - - # example passing only optional values - path_params = { - 'id': "id_example", - } - query_params = { - 'state': "state_example", - } - try: - # Get organization projects - api_response = api_instance.frontier_service_list_organization_projects( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_projects: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -state | StateSchema | | optional - - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_projects.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_projects.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_projects.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_projects.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_projects.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_projects.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_projects.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_projects.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationProjectsResponse**](../../models/V1beta1ListOrganizationProjectsResponse.md) | | - - -#### frontier_service_list_organization_projects.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_projects.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_projects.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_projects.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_projects.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_projects.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_service_users** - -> V1beta1ListOrganizationServiceUsersResponse frontier_service_list_organization_service_users(id) - -List organization service users - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List organization service users - api_response = api_instance.frontier_service_list_organization_service_users( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_service_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_service_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_service_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_service_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_service_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_service_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_service_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_service_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_service_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationServiceUsersResponse**](../../models/V1beta1ListOrganizationServiceUsersResponse.md) | | - - -#### frontier_service_list_organization_service_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_service_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_service_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_service_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_service_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_service_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_users** - -> V1beta1ListOrganizationUsersResponse frontier_service_list_organization_users(id) - -List organization users - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - query_params = { - } - try: - # List organization users - api_response = api_instance.frontier_service_list_organization_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_users: %s\n" % e) - - # example passing only optional values - path_params = { - 'id': "id_example", - } - query_params = { - 'permissionFilter': "permissionFilter_example", - } - try: - # List organization users - api_response = api_instance.frontier_service_list_organization_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organization_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -permissionFilter | PermissionFilterSchema | | optional - - -# PermissionFilterSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationUsersResponse**](../../models/V1beta1ListOrganizationUsersResponse.md) | | - - -#### frontier_service_list_organization_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organizations** - -> V1beta1ListOrganizationsResponse frontier_service_list_organizations() - -List organizations - -Returns a list of organizations. It can be filtered by userID or organization state. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only optional values - query_params = { - 'userId': "userId_example", - 'state': "state_example", - } - try: - # List organizations - api_response = api_instance.frontier_service_list_organizations( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_list_organizations: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -userId | UserIdSchema | | optional -state | StateSchema | | optional - - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organizations.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organizations.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organizations.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organizations.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organizations.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organizations.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organizations.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organizations.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationsResponse**](../../models/V1beta1ListOrganizationsResponse.md) | | - - -#### frontier_service_list_organizations.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_remove_organization_user** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_remove_organization_user(iduser_id) - -Remove organization user - -Remove a user from an organization - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - 'userId': "userId_example", - } - try: - # Remove organization user - api_response = api_instance.frontier_service_remove_organization_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_remove_organization_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | -userId | UserIdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_remove_organization_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_remove_organization_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_remove_organization_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_remove_organization_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_remove_organization_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_remove_organization_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_remove_organization_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_remove_organization_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_remove_organization_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_organization_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_organization_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_organization_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_organization_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_remove_organization_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_organization** - -> V1beta1UpdateOrganizationResponse frontier_service_update_organization(idbody) - -Update organization - -Update organization by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody -from frontier_api.model.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1OrganizationRequestBody( - name="name_example", - title="title_example", - metadata=dict(), - avatar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA", - ) - try: - # Update organization - api_response = api_instance.frontier_service_update_organization( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_update_organization: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1OrganizationRequestBody**](../../models/V1beta1OrganizationRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_organization.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_organization.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_organization.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_organization.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_organization.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_organization.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_organization.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_organization.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateOrganizationResponse**](../../models/V1beta1UpdateOrganizationResponse.md) | | - - -#### frontier_service_update_organization.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_verify_organization_domain** - -> V1beta1VerifyOrganizationDomainResponse frontier_service_verify_organization_domain(org_ididbody) - -Verify org domain - -Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import organization_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = organization_api.OrganizationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - body = dict() - try: - # Verify org domain - api_response = api_instance.frontier_service_verify_organization_domain( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling OrganizationApi->frontier_service_verify_organization_domain: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_verify_organization_domain.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_verify_organization_domain.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_verify_organization_domain.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_verify_organization_domain.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_verify_organization_domain.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_verify_organization_domain.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_verify_organization_domain.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_verify_organization_domain.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1VerifyOrganizationDomainResponse**](../../models/V1beta1VerifyOrganizationDomainResponse.md) | | - - -#### frontier_service_verify_organization_domain.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_verify_organization_domain.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_verify_organization_domain.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_verify_organization_domain.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_verify_organization_domain.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_verify_organization_domain.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/PermissionApi.md b/docs/apis/tags/PermissionApi.md deleted file mode 100644 index 9c03c69..0000000 --- a/docs/apis/tags/PermissionApi.md +++ /dev/null @@ -1,931 +0,0 @@ - -# frontier_api.apis.tags.permission_api.PermissionApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_create_permission**](#admin_service_create_permission) | **post** /v1beta1/permissions | Create platform permission -[**admin_service_delete_permission**](#admin_service_delete_permission) | **delete** /v1beta1/permissions/{id} | Delete platform permission -[**admin_service_update_permission**](#admin_service_update_permission) | **put** /v1beta1/permissions/{id} | Update platform permission -[**frontier_service_get_permission**](#frontier_service_get_permission) | **get** /v1beta1/permissions/{id} | Get permission -[**frontier_service_list_permissions**](#frontier_service_list_permissions) | **get** /v1beta1/permissions | Get all permissions - -# **admin_service_create_permission** - -> V1beta1CreatePermissionResponse admin_service_create_permission(body) - -Create platform permission - -Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import permission_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_permission_request import V1beta1CreatePermissionRequest -from frontier_api.model.v1beta1_create_permission_response import V1beta1CreatePermissionResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = permission_api.PermissionApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1CreatePermissionRequest( - bodies=[ - V1beta1PermissionRequestBody( - name="name_example", - namespace="namespace_example", - metadata=dict(), - title="title_example", - key="compute.instance.get", - ) - ], - ) - try: - # Create platform permission - api_response = api_instance.admin_service_create_permission( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PermissionApi->admin_service_create_permission: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreatePermissionRequest**](../../models/V1beta1CreatePermissionRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_create_permission.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_create_permission.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_create_permission.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_create_permission.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_create_permission.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_create_permission.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_create_permission.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_create_permission.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreatePermissionResponse**](../../models/V1beta1CreatePermissionResponse.md) | | - - -#### admin_service_create_permission.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_permission.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_permission.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_permission.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_permission.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_permission.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **admin_service_delete_permission** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} admin_service_delete_permission(id) - -Delete platform permission - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import permission_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = permission_api.PermissionApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete platform permission - api_response = api_instance.admin_service_delete_permission( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PermissionApi->admin_service_delete_permission: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_delete_permission.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_delete_permission.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_delete_permission.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_delete_permission.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_delete_permission.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_delete_permission.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_delete_permission.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_delete_permission.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### admin_service_delete_permission.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_permission.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_permission.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_permission.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_permission.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_permission.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **admin_service_update_permission** - -> V1beta1UpdatePermissionResponse admin_service_update_permission(idbody) - -Update platform permission - -Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import permission_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody -from frontier_api.model.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = permission_api.PermissionApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1PermissionRequestBody( - name="name_example", - namespace="namespace_example", - metadata=dict(), - title="title_example", - key="compute.instance.get", - ) - try: - # Update platform permission - api_response = api_instance.admin_service_update_permission( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PermissionApi->admin_service_update_permission: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1PermissionRequestBody**](../../models/V1beta1PermissionRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_update_permission.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_update_permission.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_update_permission.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_update_permission.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_update_permission.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_update_permission.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_update_permission.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_update_permission.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdatePermissionResponse**](../../models/V1beta1UpdatePermissionResponse.md) | | - - -#### admin_service_update_permission.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_permission.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_permission.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_permission.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_permission.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_permission.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_permission** - -> V1beta1GetPermissionResponse frontier_service_get_permission(id) - -Get permission - -Returns a permission by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import permission_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_permission_response import V1beta1GetPermissionResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = permission_api.PermissionApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get permission - api_response = api_instance.frontier_service_get_permission( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PermissionApi->frontier_service_get_permission: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_permission.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_permission.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_permission.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_permission.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_permission.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_permission.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_permission.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_permission.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetPermissionResponse**](../../models/V1beta1GetPermissionResponse.md) | | - - -#### frontier_service_get_permission.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_permission.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_permission.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_permission.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_permission.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_permission.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_permissions** - -> V1beta1ListPermissionsResponse frontier_service_list_permissions() - -Get all permissions - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import permission_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = permission_api.PermissionApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Get all permissions - api_response = api_instance.frontier_service_list_permissions() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PermissionApi->frontier_service_list_permissions: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_permissions.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_permissions.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_permissions.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_permissions.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_permissions.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_permissions.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_permissions.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_permissions.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListPermissionsResponse**](../../models/V1beta1ListPermissionsResponse.md) | | - - -#### frontier_service_list_permissions.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_permissions.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_permissions.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_permissions.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_permissions.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_permissions.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/PolicyApi.md b/docs/apis/tags/PolicyApi.md deleted file mode 100644 index efef170..0000000 --- a/docs/apis/tags/PolicyApi.md +++ /dev/null @@ -1,994 +0,0 @@ - -# frontier_api.apis.tags.policy_api.PolicyApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_policies**](#admin_service_list_policies) | **get** /v1beta1/policies | List all policies -[**frontier_service_create_policy**](#frontier_service_create_policy) | **post** /v1beta1/policies | Create policy -[**frontier_service_delete_policy**](#frontier_service_delete_policy) | **delete** /v1beta1/policies/{id} | Delete Policy -[**frontier_service_get_policy**](#frontier_service_get_policy) | **get** /v1beta1/policies/{id} | Get policy -[**frontier_service_update_policy**](#frontier_service_update_policy) | **put** /v1beta1/policies/{id} | Update policy - -# **admin_service_list_policies** - -> V1beta1ListPoliciesResponse admin_service_list_policies() - -List all policies - -Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import policy_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_policies_response import V1beta1ListPoliciesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = policy_api.PolicyApi(api_client) - - # example passing only optional values - query_params = { - 'orgId': "orgId_example", - 'projectId': "projectId_example", - 'userId': "userId_example", - 'roleId': "roleId_example", - 'groupId': "groupId_example", - } - try: - # List all policies - api_response = api_instance.admin_service_list_policies( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PolicyApi->admin_service_list_policies: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional -projectId | ProjectIdSchema | | optional -userId | UserIdSchema | | optional -roleId | RoleIdSchema | | optional -groupId | GroupIdSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# RoleIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# GroupIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_policies.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_policies.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_policies.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_policies.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_policies.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_policies.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_policies.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_policies.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListPoliciesResponse**](../../models/V1beta1ListPoliciesResponse.md) | | - - -#### admin_service_list_policies.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_policies.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_policies.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_policies.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_policies.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_policies.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_policy** - -> V1beta1CreatePolicyResponse frontier_service_create_policy(body) - -Create policy - -Creates a policy - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import policy_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_create_policy_response import V1beta1CreatePolicyResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = policy_api.PolicyApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1PolicyRequestBody( - role_id="role_id_example", - title="title_example", - resource="resource_example", - principal="principal_example", - metadata=dict(), - ) - try: - # Create policy - api_response = api_instance.frontier_service_create_policy( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PolicyApi->frontier_service_create_policy: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1PolicyRequestBody**](../../models/V1beta1PolicyRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_policy.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_policy.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_policy.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_policy.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_policy.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_policy.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_policy.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_policy.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreatePolicyResponse**](../../models/V1beta1CreatePolicyResponse.md) | | - - -#### frontier_service_create_policy.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_policy.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_policy.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_policy.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_policy.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_policy.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_policy** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_policy(id) - -Delete Policy - -Delete a policy all of its relations permanently. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import policy_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = policy_api.PolicyApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete Policy - api_response = api_instance.frontier_service_delete_policy( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PolicyApi->frontier_service_delete_policy: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_policy.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_policy.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_policy.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_policy.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_policy.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_policy.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_policy.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_policy.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_policy.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_policy.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_policy.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_policy.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_policy.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_policy.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_policy** - -> V1beta1GetPolicyResponse frontier_service_get_policy(id) - -Get policy - -Returns a policy by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import policy_api -from frontier_api.model.v1beta1_get_policy_response import V1beta1GetPolicyResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = policy_api.PolicyApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get policy - api_response = api_instance.frontier_service_get_policy( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PolicyApi->frontier_service_get_policy: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_policy.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_policy.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_policy.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_policy.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_policy.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_policy.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_policy.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_policy.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetPolicyResponse**](../../models/V1beta1GetPolicyResponse.md) | | - - -#### frontier_service_get_policy.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_policy.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_policy.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_policy.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_policy.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_policy.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_policy** - -> V1beta1UpdatePolicyResponse frontier_service_update_policy(idbody) - -Update policy - -Updates a policy by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import policy_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = policy_api.PolicyApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1PolicyRequestBody( - role_id="role_id_example", - title="title_example", - resource="resource_example", - principal="principal_example", - metadata=dict(), - ) - try: - # Update policy - api_response = api_instance.frontier_service_update_policy( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PolicyApi->frontier_service_update_policy: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1PolicyRequestBody**](../../models/V1beta1PolicyRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_policy.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_policy.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_policy.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_policy.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_policy.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_policy.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_policy.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_policy.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdatePolicyResponse**](../../models/V1beta1UpdatePolicyResponse.md) | | - - -#### frontier_service_update_policy.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_policy.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_policy.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_policy.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_policy.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_policy.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/PreferenceApi.md b/docs/apis/tags/PreferenceApi.md deleted file mode 100644 index 5732be0..0000000 --- a/docs/apis/tags/PreferenceApi.md +++ /dev/null @@ -1,2506 +0,0 @@ - -# frontier_api.apis.tags.preference_api.PreferenceApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_create_preferences**](#admin_service_create_preferences) | **post** /v1beta1/preferences | Create platform preferences -[**admin_service_list_preferences**](#admin_service_list_preferences) | **get** /v1beta1/preferences | List platform preferences -[**frontier_service_create_current_user_preferences**](#frontier_service_create_current_user_preferences) | **post** /v1beta1/users/self/preferences | Create current user preferences -[**frontier_service_create_group_preferences**](#frontier_service_create_group_preferences) | **post** /v1beta1/groups/{id}/preferences | Create group preferences -[**frontier_service_create_organization_preferences**](#frontier_service_create_organization_preferences) | **post** /v1beta1/organizations/{id}/preferences | Create organization preferences -[**frontier_service_create_project_preferences**](#frontier_service_create_project_preferences) | **post** /v1beta1/projects/{id}/preferences | Create project preferences -[**frontier_service_create_user_preferences**](#frontier_service_create_user_preferences) | **post** /v1beta1/users/{id}/preferences | Create user preferences -[**frontier_service_describe_preferences**](#frontier_service_describe_preferences) | **get** /v1beta1/preferences/traits | Describe preferences -[**frontier_service_list_current_user_preferences**](#frontier_service_list_current_user_preferences) | **get** /v1beta1/users/self/preferences | List current user preferences -[**frontier_service_list_group_preferences**](#frontier_service_list_group_preferences) | **get** /v1beta1/groups/{id}/preferences | List group preferences -[**frontier_service_list_organization_preferences**](#frontier_service_list_organization_preferences) | **get** /v1beta1/organizations/{id}/preferences | List organization preferences -[**frontier_service_list_project_preferences**](#frontier_service_list_project_preferences) | **get** /v1beta1/projects/{id}/preferences | List project preferences -[**frontier_service_list_user_preferences**](#frontier_service_list_user_preferences) | **get** /v1beta1/users/{id}/preferences | List user preferences - -# **admin_service_create_preferences** - -> V1beta1CreatePreferencesResponse admin_service_create_preferences(body) - -Create platform preferences - -Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1CreatePreferencesRequest( - preferences=[ - V1beta1PreferenceRequestBody( - name="name_example", - value="value_example", - ) - ], - ) - try: - # Create platform preferences - api_response = api_instance.admin_service_create_preferences( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->admin_service_create_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreatePreferencesRequest**](../../models/V1beta1CreatePreferencesRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_create_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_create_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_create_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_create_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_create_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_create_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_create_preferences.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_create_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreatePreferencesResponse**](../../models/V1beta1CreatePreferencesResponse.md) | | - - -#### admin_service_create_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **admin_service_list_preferences** - -> V1beta1ListPreferencesResponse admin_service_list_preferences() - -List platform preferences - -Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # List platform preferences - api_response = api_instance.admin_service_list_preferences() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->admin_service_list_preferences: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_preferences.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListPreferencesResponse**](../../models/V1beta1ListPreferencesResponse.md) | | - - -#### admin_service_list_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_current_user_preferences** - -> V1beta1CreateCurrentUserPreferencesResponse frontier_service_create_current_user_preferences(body) - -Create current user preferences - -Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse -from frontier_api.model.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1CreateCurrentUserPreferencesRequest( - bodies=[ - V1beta1PreferenceRequestBody( - name="name_example", - value="value_example", - ) - ], - ) - try: - # Create current user preferences - api_response = api_instance.frontier_service_create_current_user_preferences( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_create_current_user_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateCurrentUserPreferencesRequest**](../../models/V1beta1CreateCurrentUserPreferencesRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_current_user_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_current_user_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_current_user_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_current_user_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_current_user_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_current_user_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_current_user_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_current_user_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateCurrentUserPreferencesResponse**](../../models/V1beta1CreateCurrentUserPreferencesResponse.md) | | - - -#### frontier_service_create_current_user_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_current_user_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_current_user_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_current_user_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_current_user_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_current_user_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_group_preferences** - -> V1beta1CreateGroupPreferencesResponse frontier_service_create_group_preferences(idbody) - -Create group preferences - -Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - bodies=[ - V1beta1PreferenceRequestBody( - name="name_example", - value="value_example", - ) - ], - ) - try: - # Create group preferences - api_response = api_instance.frontier_service_create_group_preferences( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_create_group_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_group_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_group_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_group_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_group_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_group_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_group_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_group_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_group_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateGroupPreferencesResponse**](../../models/V1beta1CreateGroupPreferencesResponse.md) | | - - -#### frontier_service_create_group_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_group_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_organization_preferences** - -> V1beta1CreateOrganizationPreferencesResponse frontier_service_create_organization_preferences(idbody) - -Create organization preferences - -Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - bodies=[ - V1beta1PreferenceRequestBody( - name="name_example", - value="value_example", - ) - ], - ) - try: - # Create organization preferences - api_response = api_instance.frontier_service_create_organization_preferences( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_create_organization_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_organization_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_organization_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_organization_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_organization_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_organization_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_organization_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_organization_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_organization_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateOrganizationPreferencesResponse**](../../models/V1beta1CreateOrganizationPreferencesResponse.md) | | - - -#### frontier_service_create_organization_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_project_preferences** - -> V1beta1CreateProjectPreferencesResponse frontier_service_create_project_preferences(idbody) - -Create project preferences - -Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - bodies=[ - V1beta1PreferenceRequestBody( - name="name_example", - value="value_example", - ) - ], - ) - try: - # Create project preferences - api_response = api_instance.frontier_service_create_project_preferences( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_create_project_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_project_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_project_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_project_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_project_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_project_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_project_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_project_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_project_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateProjectPreferencesResponse**](../../models/V1beta1CreateProjectPreferencesResponse.md) | | - - -#### frontier_service_create_project_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_user_preferences** - -> V1beta1CreateUserPreferencesResponse frontier_service_create_user_preferences(idbody) - -Create user preferences - -Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - bodies=[ - V1beta1PreferenceRequestBody( - name="name_example", - value="value_example", - ) - ], - ) - try: - # Create user preferences - api_response = api_instance.frontier_service_create_user_preferences( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_create_user_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**]({{complexTypePrefix}}V1beta1PreferenceRequestBody.md) | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_user_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_user_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_user_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_user_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_user_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_user_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_user_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_user_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateUserPreferencesResponse**](../../models/V1beta1CreateUserPreferencesResponse.md) | | - - -#### frontier_service_create_user_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_describe_preferences** - -> V1beta1DescribePreferencesResponse frontier_service_describe_preferences() - -Describe preferences - -Returns a list of all preferences supported by Frontier. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Describe preferences - api_response = api_instance.frontier_service_describe_preferences() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_describe_preferences: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_describe_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_describe_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_describe_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_describe_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_describe_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_describe_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_describe_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_describe_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1DescribePreferencesResponse**](../../models/V1beta1DescribePreferencesResponse.md) | | - - -#### frontier_service_describe_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_describe_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_describe_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_describe_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_describe_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_describe_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_current_user_preferences** - -> V1beta1ListCurrentUserPreferencesResponse frontier_service_list_current_user_preferences() - -List current user preferences - -List a user preferences by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # List current user preferences - api_response = api_instance.frontier_service_list_current_user_preferences() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_list_current_user_preferences: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_current_user_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_current_user_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_current_user_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_current_user_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_current_user_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_current_user_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_current_user_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_current_user_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListCurrentUserPreferencesResponse**](../../models/V1beta1ListCurrentUserPreferencesResponse.md) | | - - -#### frontier_service_list_current_user_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_group_preferences** - -> V1beta1ListGroupPreferencesResponse frontier_service_list_group_preferences(id) - -List group preferences - -List a group preferences by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List group preferences - api_response = api_instance.frontier_service_list_group_preferences( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_list_group_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_group_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_group_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_group_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_group_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_group_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_group_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_group_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_group_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListGroupPreferencesResponse**](../../models/V1beta1ListGroupPreferencesResponse.md) | | - - -#### frontier_service_list_group_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_group_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_preferences** - -> V1beta1ListOrganizationPreferencesResponse frontier_service_list_organization_preferences(id) - -List organization preferences - -List an organization preferences by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List organization preferences - api_response = api_instance.frontier_service_list_organization_preferences( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_list_organization_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationPreferencesResponse**](../../models/V1beta1ListOrganizationPreferencesResponse.md) | | - - -#### frontier_service_list_organization_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_project_preferences** - -> V1beta1ListProjectPreferencesResponse frontier_service_list_project_preferences(id) - -List project preferences - -List a project preferences by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List project preferences - api_response = api_instance.frontier_service_list_project_preferences( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_list_project_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_project_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_project_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_project_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_project_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_project_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_project_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_project_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_project_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectPreferencesResponse**](../../models/V1beta1ListProjectPreferencesResponse.md) | | - - -#### frontier_service_list_project_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_user_preferences** - -> V1beta1ListUserPreferencesResponse frontier_service_list_user_preferences(id) - -List user preferences - -List a user preferences by ID. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import preference_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = preference_api.PreferenceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List user preferences - api_response = api_instance.frontier_service_list_user_preferences( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling PreferenceApi->frontier_service_list_user_preferences: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_user_preferences.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_user_preferences.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_user_preferences.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_user_preferences.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_user_preferences.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_user_preferences.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_user_preferences.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_user_preferences.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListUserPreferencesResponse**](../../models/V1beta1ListUserPreferencesResponse.md) | | - - -#### frontier_service_list_user_preferences.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_preferences.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_preferences.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_preferences.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_preferences.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_preferences.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/ProjectApi.md b/docs/apis/tags/ProjectApi.md deleted file mode 100644 index ac98e3e..0000000 --- a/docs/apis/tags/ProjectApi.md +++ /dev/null @@ -1,1996 +0,0 @@ - -# frontier_api.apis.tags.project_api.ProjectApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_projects**](#admin_service_list_projects) | **get** /v1beta1/admin/projects | List all projects -[**frontier_service_create_project**](#frontier_service_create_project) | **post** /v1beta1/projects | Create project -[**frontier_service_delete_project**](#frontier_service_delete_project) | **delete** /v1beta1/projects/{id} | Delete Project -[**frontier_service_disable_project**](#frontier_service_disable_project) | **post** /v1beta1/projects/{id}/disable | Disable project -[**frontier_service_enable_project**](#frontier_service_enable_project) | **post** /v1beta1/projects/{id}/enable | Enable project -[**frontier_service_get_project**](#frontier_service_get_project) | **get** /v1beta1/projects/{id} | Get project -[**frontier_service_list_project_admins**](#frontier_service_list_project_admins) | **get** /v1beta1/projects/{id}/admins | List project admins -[**frontier_service_list_project_service_users**](#frontier_service_list_project_service_users) | **get** /v1beta1/projects/{id}/serviceusers | List project serviceusers -[**frontier_service_list_project_users**](#frontier_service_list_project_users) | **get** /v1beta1/projects/{id}/users | List project users -[**frontier_service_update_project**](#frontier_service_update_project) | **put** /v1beta1/projects/{id} | Update project - -# **admin_service_list_projects** - -> V1beta1ListProjectsResponse admin_service_list_projects() - -List all projects - -Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_projects_response import V1beta1ListProjectsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only optional values - query_params = { - 'orgId': "orgId_example", - 'state': "state_example", - } - try: - # List all projects - api_response = api_instance.admin_service_list_projects( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->admin_service_list_projects: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional -state | StateSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_projects.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_projects.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_projects.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_projects.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_projects.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_projects.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_projects.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_projects.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectsResponse**](../../models/V1beta1ListProjectsResponse.md) | | - - -#### admin_service_list_projects.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_projects.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_projects.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_projects.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_projects.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_projects.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_project** - -> V1beta1CreateProjectResponse frontier_service_create_project(body) - -Create project - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_project_response import V1beta1CreateProjectResponse -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1ProjectRequestBody( - name="name_example", - title="title_example", - metadata=dict(), - org_id="org_id_example", - ) - try: - # Create project - api_response = api_instance.frontier_service_create_project( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_create_project: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ProjectRequestBody**](../../models/V1beta1ProjectRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_project.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_project.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_project.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_project.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_project.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_project.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_project.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_project.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateProjectResponse**](../../models/V1beta1CreateProjectResponse.md) | | - - -#### frontier_service_create_project.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_project** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_project(id) - -Delete Project - -Delete a project all of its relations permanently. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete Project - api_response = api_instance.frontier_service_delete_project( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_delete_project: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_project.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_project.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_project.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_project.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_project.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_project.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_project.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_project.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_project.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_disable_project** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_disable_project(idbody) - -Disable project - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict() - try: - # Disable project - api_response = api_instance.frontier_service_disable_project( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_disable_project: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_disable_project.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_disable_project.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_disable_project.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_disable_project.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_disable_project.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_disable_project.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_disable_project.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_disable_project.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_disable_project.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_project.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_project.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_project.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_project.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_project.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_enable_project** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_enable_project(idbody) - -Enable project - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict() - try: - # Enable project - api_response = api_instance.frontier_service_enable_project( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_enable_project: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_enable_project.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_enable_project.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_enable_project.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_enable_project.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_enable_project.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_enable_project.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_enable_project.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_enable_project.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_enable_project.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_project.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_project.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_project.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_project.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_project.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_project** - -> V1beta1GetProjectResponse frontier_service_get_project(id) - -Get project - -Returns a project by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_project_response import V1beta1GetProjectResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get project - api_response = api_instance.frontier_service_get_project( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_get_project: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_project.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_project.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_project.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_project.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_project.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_project.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_project.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_project.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetProjectResponse**](../../models/V1beta1GetProjectResponse.md) | | - - -#### frontier_service_get_project.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_project_admins** - -> V1beta1ListProjectAdminsResponse frontier_service_list_project_admins(id) - -List project admins - -Returns a collection of admins of a project - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List project admins - api_response = api_instance.frontier_service_list_project_admins( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_list_project_admins: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_project_admins.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_project_admins.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_project_admins.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_project_admins.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_project_admins.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_project_admins.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_project_admins.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_project_admins.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectAdminsResponse**](../../models/V1beta1ListProjectAdminsResponse.md) | | - - -#### frontier_service_list_project_admins.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_admins.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_admins.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_admins.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_admins.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_admins.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_project_service_users** - -> V1beta1ListProjectServiceUsersResponse frontier_service_list_project_service_users(id) - -List project serviceusers - -Returns a collection of users of a project. Filter by user permissions is supported. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - query_params = { - } - try: - # List project serviceusers - api_response = api_instance.frontier_service_list_project_service_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_list_project_service_users: %s\n" % e) - - # example passing only optional values - path_params = { - 'id': "id_example", - } - query_params = { - 'withRoles': True, - } - try: - # List project serviceusers - api_response = api_instance.frontier_service_list_project_service_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_list_project_service_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -withRoles | WithRolesSchema | | optional - - -# WithRolesSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_project_service_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_project_service_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_project_service_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_project_service_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_project_service_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_project_service_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_project_service_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_project_service_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectServiceUsersResponse**](../../models/V1beta1ListProjectServiceUsersResponse.md) | | - - -#### frontier_service_list_project_service_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_service_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_service_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_service_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_service_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_service_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_project_users** - -> V1beta1ListProjectUsersResponse frontier_service_list_project_users(id) - -List project users - -Returns a collection of users of a project. Filter by user permissions is supported. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - query_params = { - } - try: - # List project users - api_response = api_instance.frontier_service_list_project_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_list_project_users: %s\n" % e) - - # example passing only optional values - path_params = { - 'id': "id_example", - } - query_params = { - 'permissionFilter': "permissionFilter_example", - 'withRoles': True, - } - try: - # List project users - api_response = api_instance.frontier_service_list_project_users( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_list_project_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -permissionFilter | PermissionFilterSchema | | optional -withRoles | WithRolesSchema | | optional - - -# PermissionFilterSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# WithRolesSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -bool, | BoolClass, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_project_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_project_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_project_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_project_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_project_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_project_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_project_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_project_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectUsersResponse**](../../models/V1beta1ListProjectUsersResponse.md) | | - - -#### frontier_service_list_project_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_project** - -> V1beta1UpdateProjectResponse frontier_service_update_project(idbody) - -Update project - -Updates a project by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import project_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody -from frontier_api.model.v1beta1_update_project_response import V1beta1UpdateProjectResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = project_api.ProjectApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1ProjectRequestBody( - name="name_example", - title="title_example", - metadata=dict(), - org_id="org_id_example", - ) - try: - # Update project - api_response = api_instance.frontier_service_update_project( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ProjectApi->frontier_service_update_project: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ProjectRequestBody**](../../models/V1beta1ProjectRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_project.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_project.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_project.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_project.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_project.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_project.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_project.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_project.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateProjectResponse**](../../models/V1beta1UpdateProjectResponse.md) | | - - -#### frontier_service_update_project.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/RelationApi.md b/docs/apis/tags/RelationApi.md deleted file mode 100644 index a582495..0000000 --- a/docs/apis/tags/RelationApi.md +++ /dev/null @@ -1,739 +0,0 @@ - -# frontier_api.apis.tags.relation_api.RelationApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_relations**](#admin_service_list_relations) | **get** /v1beta1/admin/relations | List all relations -[**frontier_service_create_relation**](#frontier_service_create_relation) | **post** /v1beta1/relations | Create relation -[**frontier_service_delete_relation**](#frontier_service_delete_relation) | **delete** /v1beta1/relations/{relation}/object/{object}/subject/{subject} | Delete relation -[**frontier_service_get_relation**](#frontier_service_get_relation) | **get** /v1beta1/relations/{id} | Get relation - -# **admin_service_list_relations** - -> V1beta1ListRelationsResponse admin_service_list_relations() - -List all relations - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import relation_api -from frontier_api.model.v1beta1_list_relations_response import V1beta1ListRelationsResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = relation_api.RelationApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # List all relations - api_response = api_instance.admin_service_list_relations() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RelationApi->admin_service_list_relations: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_relations.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_relations.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_relations.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_relations.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_relations.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_relations.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_relations.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_relations.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListRelationsResponse**](../../models/V1beta1ListRelationsResponse.md) | | - - -#### admin_service_list_relations.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_relations.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_relations.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_relations.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_relations.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_relations.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_relation** - -> V1beta1CreateRelationResponse frontier_service_create_relation(body) - -Create relation - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import relation_api -from frontier_api.model.v1beta1_create_relation_response import V1beta1CreateRelationResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_relation_request_body import V1beta1RelationRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = relation_api.RelationApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1RelationRequestBody( - object="object_example", - subject="subject_example", - relation="relation_example", - subject_sub_relation="subject_sub_relation_example", - ) - try: - # Create relation - api_response = api_instance.frontier_service_create_relation( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RelationApi->frontier_service_create_relation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1RelationRequestBody**](../../models/V1beta1RelationRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_relation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_relation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_relation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_relation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_relation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_relation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_relation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_relation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateRelationResponse**](../../models/V1beta1CreateRelationResponse.md) | | - - -#### frontier_service_create_relation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_relation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_relation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_relation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_relation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_relation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_relation** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_relation(relationobjectsubject) - -Delete relation - -Remove a subject having a relation from an object - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import relation_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = relation_api.RelationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'relation': "relation_example", - 'object': "object_example", - 'subject': "subject_example", - } - try: - # Delete relation - api_response = api_instance.frontier_service_delete_relation( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RelationApi->frontier_service_delete_relation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -relation | RelationSchema | | -object | ObjectSchema | | -subject | SubjectSchema | | - -# RelationSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ObjectSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SubjectSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_relation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_relation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_relation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_relation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_relation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_relation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_relation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_relation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_relation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_relation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_relation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_relation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_relation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_relation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_relation** - -> V1beta1GetRelationResponse frontier_service_get_relation(id) - -Get relation - -Returns a relation by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import relation_api -from frontier_api.model.v1beta1_get_relation_response import V1beta1GetRelationResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = relation_api.RelationApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get relation - api_response = api_instance.frontier_service_get_relation( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RelationApi->frontier_service_get_relation: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_relation.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_relation.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_relation.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_relation.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_relation.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_relation.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_relation.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_relation.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetRelationResponse**](../../models/V1beta1GetRelationResponse.md) | | - - -#### frontier_service_get_relation.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_relation.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_relation.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_relation.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_relation.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_relation.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/ResourceApi.md b/docs/apis/tags/ResourceApi.md deleted file mode 100644 index 329b91b..0000000 --- a/docs/apis/tags/ResourceApi.md +++ /dev/null @@ -1,1295 +0,0 @@ - -# frontier_api.apis.tags.resource_api.ResourceApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_resources**](#admin_service_list_resources) | **get** /v1beta1/admin/resources | List all resources -[**frontier_service_create_project_resource**](#frontier_service_create_project_resource) | **post** /v1beta1/projects/{projectId}/resources | Create resource -[**frontier_service_delete_project_resource**](#frontier_service_delete_project_resource) | **delete** /v1beta1/projects/{projectId}/resources/{id} | Delete resource -[**frontier_service_get_project_resource**](#frontier_service_get_project_resource) | **get** /v1beta1/projects/{projectId}/resources/{id} | Get resource -[**frontier_service_list_project_resources**](#frontier_service_list_project_resources) | **get** /v1beta1/projects/{projectId}/resources | Get all resources -[**frontier_service_update_project_resource**](#frontier_service_update_project_resource) | **put** /v1beta1/projects/{projectId}/resources/{id} | Update resource - -# **admin_service_list_resources** - -> V1beta1ListResourcesResponse admin_service_list_resources() - -List all resources - -Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import resource_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_resources_response import V1beta1ListResourcesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = resource_api.ResourceApi(api_client) - - # example passing only optional values - query_params = { - 'userId': "userId_example", - 'projectId': "projectId_example", - 'organizationId': "organizationId_example", - 'namespace': "namespace_example", - } - try: - # List all resources - api_response = api_instance.admin_service_list_resources( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->admin_service_list_resources: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -userId | UserIdSchema | | optional -projectId | ProjectIdSchema | | optional -organizationId | OrganizationIdSchema | | optional -namespace | NamespaceSchema | | optional - - -# UserIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrganizationIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# NamespaceSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_resources.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_resources.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_resources.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_resources.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_resources.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_resources.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_resources.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_resources.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListResourcesResponse**](../../models/V1beta1ListResourcesResponse.md) | | - - -#### admin_service_list_resources.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_resources.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_resources.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_resources.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_resources.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_resources.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_project_resource** - -> V1beta1CreateProjectResourceResponse frontier_service_create_project_resource(project_idbody) - -Create resource - -Creates a resource in a project - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import resource_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = resource_api.ResourceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'projectId': "projectId_example", - } - query_params = { - } - body = V1beta1ResourceRequestBody( - name="name_example", - title="title_example", - namespace="namespace_example", - principal="principal_example", - metadata=dict(), - ) - try: - # Create resource - api_response = api_instance.frontier_service_create_project_resource( - path_params=path_params, - query_params=query_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_create_project_resource: %s\n" % e) - - # example passing only optional values - path_params = { - 'projectId': "projectId_example", - } - query_params = { - 'id': "id_example", - } - body = V1beta1ResourceRequestBody( - name="name_example", - title="title_example", - namespace="namespace_example", - principal="principal_example", - metadata=dict(), - ) - try: - # Create resource - api_response = api_instance.frontier_service_create_project_resource( - path_params=path_params, - query_params=query_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_create_project_resource: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ResourceRequestBody**](../../models/V1beta1ResourceRequestBody.md) | | - - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | optional - - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -projectId | ProjectIdSchema | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_project_resource.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_project_resource.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_project_resource.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_project_resource.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_project_resource.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_project_resource.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_project_resource.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_project_resource.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateProjectResourceResponse**](../../models/V1beta1CreateProjectResourceResponse.md) | | - - -#### frontier_service_create_project_resource.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_resource.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_resource.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_resource.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_resource.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_project_resource.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_project_resource** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_project_resource(project_idid) - -Delete resource - -Deletes a resource from a project permanently - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import resource_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = resource_api.ResourceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'projectId': "projectId_example", - 'id': "id_example", - } - try: - # Delete resource - api_response = api_instance.frontier_service_delete_project_resource( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_delete_project_resource: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -projectId | ProjectIdSchema | | -id | IdSchema | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_project_resource.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_project_resource.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_project_resource.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_project_resource.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_project_resource.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_project_resource.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_project_resource.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_project_resource.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_project_resource.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project_resource.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project_resource.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project_resource.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project_resource.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_project_resource.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_project_resource** - -> V1beta1GetProjectResourceResponse frontier_service_get_project_resource(project_idid) - -Get resource - -Returns a project resource by ID - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import resource_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = resource_api.ResourceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'projectId': "projectId_example", - 'id': "id_example", - } - try: - # Get resource - api_response = api_instance.frontier_service_get_project_resource( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_get_project_resource: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -projectId | ProjectIdSchema | | -id | IdSchema | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_project_resource.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_project_resource.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_project_resource.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_project_resource.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_project_resource.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_project_resource.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_project_resource.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_project_resource.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetProjectResourceResponse**](../../models/V1beta1GetProjectResourceResponse.md) | | - - -#### frontier_service_get_project_resource.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project_resource.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project_resource.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project_resource.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project_resource.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_project_resource.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_project_resources** - -> V1beta1ListProjectResourcesResponse frontier_service_list_project_resources(project_id) - -Get all resources - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import resource_api -from frontier_api.model.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = resource_api.ResourceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'projectId': "projectId_example", - } - query_params = { - } - try: - # Get all resources - api_response = api_instance.frontier_service_list_project_resources( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_list_project_resources: %s\n" % e) - - # example passing only optional values - path_params = { - 'projectId': "projectId_example", - } - query_params = { - 'namespace': "namespace_example", - } - try: - # Get all resources - api_response = api_instance.frontier_service_list_project_resources( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_list_project_resources: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -namespace | NamespaceSchema | | optional - - -# NamespaceSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -projectId | ProjectIdSchema | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_project_resources.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_project_resources.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_project_resources.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_project_resources.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_project_resources.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_project_resources.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_project_resources.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_project_resources.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectResourcesResponse**](../../models/V1beta1ListProjectResourcesResponse.md) | | - - -#### frontier_service_list_project_resources.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_resources.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_resources.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_resources.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_resources.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_project_resources.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_project_resource** - -> V1beta1UpdateProjectResourceResponse frontier_service_update_project_resource(project_ididbody) - -Update resource - -Updates a resource in a project - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import resource_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = resource_api.ResourceApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'projectId': "projectId_example", - 'id': "id_example", - } - body = V1beta1ResourceRequestBody( - name="name_example", - title="title_example", - namespace="namespace_example", - principal="principal_example", - metadata=dict(), - ) - try: - # Update resource - api_response = api_instance.frontier_service_update_project_resource( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ResourceApi->frontier_service_update_project_resource: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ResourceRequestBody**](../../models/V1beta1ResourceRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -projectId | ProjectIdSchema | | -id | IdSchema | | - -# ProjectIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_project_resource.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_project_resource.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_project_resource.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_project_resource.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_project_resource.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_project_resource.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_project_resource.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_project_resource.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateProjectResourceResponse**](../../models/V1beta1UpdateProjectResourceResponse.md) | | - - -#### frontier_service_update_project_resource.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project_resource.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project_resource.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project_resource.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project_resource.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_project_resource.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/RoleApi.md b/docs/apis/tags/RoleApi.md deleted file mode 100644 index db95ff7..0000000 --- a/docs/apis/tags/RoleApi.md +++ /dev/null @@ -1,1807 +0,0 @@ - -# frontier_api.apis.tags.role_api.RoleApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_create_role**](#admin_service_create_role) | **post** /v1beta1/roles | Create platform role -[**admin_service_delete_role**](#admin_service_delete_role) | **delete** /v1beta1/roles/{id} | Delete platform role -[**admin_service_update_role**](#admin_service_update_role) | **put** /v1beta1/roles/{id} | Update role -[**frontier_service_create_organization_role**](#frontier_service_create_organization_role) | **post** /v1beta1/organizations/{orgId}/roles | Create organization role -[**frontier_service_delete_organization_role**](#frontier_service_delete_organization_role) | **delete** /v1beta1/organizations/{orgId}/roles/{id} | Delete organization role -[**frontier_service_get_organization_role**](#frontier_service_get_organization_role) | **get** /v1beta1/organizations/{orgId}/roles/{id} | Get organization role -[**frontier_service_list_organization_roles**](#frontier_service_list_organization_roles) | **get** /v1beta1/organizations/{orgId}/roles | List organization roles -[**frontier_service_list_roles**](#frontier_service_list_roles) | **get** /v1beta1/roles | List platform roles -[**frontier_service_update_organization_role**](#frontier_service_update_organization_role) | **put** /v1beta1/organizations/{orgId}/roles/{id} | Update organization role - -# **admin_service_create_role** - -> V1beta1CreateRoleResponse admin_service_create_role(body) - -Create platform role - -Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_role_response import V1beta1CreateRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1RoleRequestBody( - name="name_example", - permissions=[ - "permissions_example" - ], - metadata=dict(), - title="title_example", - ) - try: - # Create platform role - api_response = api_instance.admin_service_create_role( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->admin_service_create_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1RoleRequestBody**](../../models/V1beta1RoleRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_create_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_create_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_create_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_create_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_create_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_create_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_create_role.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_create_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateRoleResponse**](../../models/V1beta1CreateRoleResponse.md) | | - - -#### admin_service_create_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_create_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **admin_service_delete_role** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} admin_service_delete_role(id) - -Delete platform role - -Delete a platform wide role and all of its relations. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete platform role - api_response = api_instance.admin_service_delete_role( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->admin_service_delete_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_delete_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_delete_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_delete_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_delete_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_delete_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_delete_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_delete_role.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_delete_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### admin_service_delete_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_delete_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **admin_service_update_role** - -> V1beta1UpdateRoleResponse admin_service_update_role(idbody) - -Update role - -Update a role title, description and permissions. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_role_response import V1beta1UpdateRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1RoleRequestBody( - name="name_example", - permissions=[ - "permissions_example" - ], - metadata=dict(), - title="title_example", - ) - try: - # Update role - api_response = api_instance.admin_service_update_role( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->admin_service_update_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1RoleRequestBody**](../../models/V1beta1RoleRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_update_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_update_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_update_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_update_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_update_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_update_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_update_role.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_update_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateRoleResponse**](../../models/V1beta1UpdateRoleResponse.md) | | - - -#### admin_service_update_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_update_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_organization_role** - -> V1beta1CreateOrganizationRoleResponse frontier_service_create_organization_role(org_idbody) - -Create organization role - -Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - body = V1beta1RoleRequestBody( - name="name_example", - permissions=[ - "permissions_example" - ], - metadata=dict(), - title="title_example", - ) - try: - # Create organization role - api_response = api_instance.frontier_service_create_organization_role( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_create_organization_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1RoleRequestBody**](../../models/V1beta1RoleRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_organization_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_organization_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_organization_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_organization_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_organization_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_organization_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_organization_role.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_organization_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateOrganizationRoleResponse**](../../models/V1beta1CreateOrganizationRoleResponse.md) | | - - -#### frontier_service_create_organization_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_organization_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_organization_role** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_organization_role(org_idid) - -Delete organization role - -Delete a custom role and all of its relations under an organization permanently. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Delete organization role - api_response = api_instance.frontier_service_delete_organization_role( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_delete_organization_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_organization_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_organization_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_organization_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_organization_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_organization_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_organization_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_organization_role.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_organization_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_organization_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_organization_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_organization_role** - -> V1beta1GetOrganizationRoleResponse frontier_service_get_organization_role(org_idid) - -Get organization role - -Returns a custom role under an organization along with its associated permissions - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - try: - # Get organization role - api_response = api_instance.frontier_service_get_organization_role( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_get_organization_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_organization_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_organization_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_organization_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_organization_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_organization_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_organization_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_organization_role.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_organization_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetOrganizationRoleResponse**](../../models/V1beta1GetOrganizationRoleResponse.md) | | - - -#### frontier_service_get_organization_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_organization_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organization_roles** - -> V1beta1ListOrganizationRolesResponse frontier_service_list_organization_roles(org_id) - -List organization roles - -Returns a list of custom roles created under an organization with their associated permissions - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - } - query_params = { - } - try: - # List organization roles - api_response = api_instance.frontier_service_list_organization_roles( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_list_organization_roles: %s\n" % e) - - # example passing only optional values - path_params = { - 'orgId': "orgId_example", - } - query_params = { - 'state': "state_example", - } - try: - # List organization roles - api_response = api_instance.frontier_service_list_organization_roles( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_list_organization_roles: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -state | StateSchema | | optional - - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organization_roles.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organization_roles.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organization_roles.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organization_roles.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organization_roles.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organization_roles.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organization_roles.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organization_roles.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationRolesResponse**](../../models/V1beta1ListOrganizationRolesResponse.md) | | - - -#### frontier_service_list_organization_roles.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_roles.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_roles.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_roles.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_roles.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organization_roles.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_roles** - -> V1beta1ListRolesResponse frontier_service_list_roles() - -List platform roles - -Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_roles_response import V1beta1ListRolesResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only optional values - query_params = { - 'state': "state_example", - } - try: - # List platform roles - api_response = api_instance.frontier_service_list_roles( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_list_roles: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -state | StateSchema | | optional - - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_roles.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_roles.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_roles.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_roles.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_roles.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_roles.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_roles.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_roles.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListRolesResponse**](../../models/V1beta1ListRolesResponse.md) | | - - -#### frontier_service_list_roles.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_roles.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_roles.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_roles.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_roles.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_roles.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_organization_role** - -> V1beta1UpdateOrganizationRoleResponse frontier_service_update_organization_role(org_ididbody) - -Update organization role - -Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import role_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = role_api.RoleApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'orgId': "orgId_example", - 'id': "id_example", - } - body = V1beta1RoleRequestBody( - name="name_example", - permissions=[ - "permissions_example" - ], - metadata=dict(), - title="title_example", - ) - try: - # Update organization role - api_response = api_instance.frontier_service_update_organization_role( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling RoleApi->frontier_service_update_organization_role: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1RoleRequestBody**](../../models/V1beta1RoleRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -id | IdSchema | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_organization_role.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_organization_role.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_organization_role.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_organization_role.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_organization_role.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_organization_role.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_organization_role.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_organization_role.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateOrganizationRoleResponse**](../../models/V1beta1UpdateOrganizationRoleResponse.md) | | - - -#### frontier_service_update_organization_role.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization_role.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization_role.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization_role.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization_role.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_organization_role.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/ServiceUserApi.md b/docs/apis/tags/ServiceUserApi.md deleted file mode 100644 index 7d8be5f..0000000 --- a/docs/apis/tags/ServiceUserApi.md +++ /dev/null @@ -1,2182 +0,0 @@ - -# frontier_api.apis.tags.service_user_api.ServiceUserApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**frontier_service_create_service_user**](#frontier_service_create_service_user) | **post** /v1beta1/serviceusers | Create service user -[**frontier_service_create_service_user_key**](#frontier_service_create_service_user_key) | **post** /v1beta1/serviceusers/{id}/keys | Create service user key -[**frontier_service_create_service_user_secret**](#frontier_service_create_service_user_secret) | **post** /v1beta1/serviceusers/{id}/secrets | Create service user secret -[**frontier_service_delete_service_user**](#frontier_service_delete_service_user) | **delete** /v1beta1/serviceusers/{id} | Delete service user -[**frontier_service_delete_service_user_key**](#frontier_service_delete_service_user_key) | **delete** /v1beta1/serviceusers/{id}/keys/{keyId} | Delete service user key -[**frontier_service_delete_service_user_secret**](#frontier_service_delete_service_user_secret) | **delete** /v1beta1/serviceusers/{id}/secrets/{secretId} | Delete service user secret -[**frontier_service_get_service_user**](#frontier_service_get_service_user) | **get** /v1beta1/serviceusers/{id} | Get service user -[**frontier_service_get_service_user_key**](#frontier_service_get_service_user_key) | **get** /v1beta1/serviceusers/{id}/keys/{keyId} | Get service user key -[**frontier_service_list_service_user_keys**](#frontier_service_list_service_user_keys) | **get** /v1beta1/serviceusers/{id}/keys | List service user keys -[**frontier_service_list_service_user_secrets**](#frontier_service_list_service_user_secrets) | **get** /v1beta1/serviceusers/{id}/secrets | List service user secrets -[**frontier_service_list_service_users**](#frontier_service_list_service_users) | **get** /v1beta1/serviceusers | List org service users - -# **frontier_service_create_service_user** - -> V1beta1CreateServiceUserResponse frontier_service_create_service_user(body) - -Create service user - -Create a service user. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1CreateServiceUserRequest( - body=V1beta1ServiceUserRequestBody( - title="Order Service", - metadata=dict(), - ), - org_id="org_id_example", - ) - try: - # Create service user - api_response = api_instance.frontier_service_create_service_user( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_create_service_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateServiceUserRequest**](../../models/V1beta1CreateServiceUserRequest.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_service_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_service_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_service_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_service_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_service_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_service_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_service_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_service_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateServiceUserResponse**](../../models/V1beta1CreateServiceUserResponse.md) | | - - -#### frontier_service_create_service_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_service_user_key** - -> V1beta1CreateServiceUserKeyResponse frontier_service_create_service_user_key(idbody) - -Create service user key - -Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - title="title_example", - ) - try: - # Create service user key - api_response = api_instance.frontier_service_create_service_user_key( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_create_service_user_key: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**title** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_service_user_key.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_service_user_key.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_service_user_key.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_service_user_key.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_service_user_key.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_service_user_key.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_service_user_key.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_service_user_key.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateServiceUserKeyResponse**](../../models/V1beta1CreateServiceUserKeyResponse.md) | | - - -#### frontier_service_create_service_user_key.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_key.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_key.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_key.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_key.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_key.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_service_user_secret** - -> V1beta1CreateServiceUserSecretResponse frontier_service_create_service_user_secret(idbody) - -Create service user secret - -Generate a service user secret and return it. The secret value will not be persisted and should be securely stored by client. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict( - title="title_example", - ) - try: - # Create service user secret - api_response = api_instance.frontier_service_create_service_user_secret( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_create_service_user_secret: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**title** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_service_user_secret.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_service_user_secret.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_service_user_secret.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_service_user_secret.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_service_user_secret.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_service_user_secret.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_service_user_secret.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_service_user_secret.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateServiceUserSecretResponse**](../../models/V1beta1CreateServiceUserSecretResponse.md) | | - - -#### frontier_service_create_service_user_secret.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_secret.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_secret.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_secret.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_secret.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_service_user_secret.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_service_user** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_service_user(id) - -Delete service user - -Delete a service user permanently and all of its relations (keys, organizations, roles, etc) - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - query_params = { - } - try: - # Delete service user - api_response = api_instance.frontier_service_delete_service_user( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_delete_service_user: %s\n" % e) - - # example passing only optional values - path_params = { - 'id': "id_example", - } - query_params = { - 'orgId': "orgId_example", - } - try: - # Delete service user - api_response = api_instance.frontier_service_delete_service_user( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_delete_service_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_service_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_service_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_service_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_service_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_service_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_service_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_service_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_service_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_service_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_service_user_key** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_service_user_key(idkey_id) - -Delete service user key - -Delete a service user key permanently. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - 'keyId': "keyId_example", - } - try: - # Delete service user key - api_response = api_instance.frontier_service_delete_service_user_key( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_delete_service_user_key: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | -keyId | KeyIdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# KeyIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_service_user_key.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_service_user_key.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_service_user_key.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_service_user_key.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_service_user_key.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_service_user_key.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_service_user_key.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_service_user_key.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_service_user_key.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_key.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_key.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_key.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_key.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_key.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_service_user_secret** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_service_user_secret(idsecret_id) - -Delete service user secret - -Delete a service user secret credential. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - 'secretId': "secretId_example", - } - try: - # Delete service user secret - api_response = api_instance.frontier_service_delete_service_user_secret( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_delete_service_user_secret: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | -secretId | SecretIdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# SecretIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_service_user_secret.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_service_user_secret.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_service_user_secret.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_service_user_secret.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_service_user_secret.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_service_user_secret.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_service_user_secret.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_service_user_secret.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_service_user_secret.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_secret.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_secret.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_secret.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_secret.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_service_user_secret.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_service_user** - -> V1beta1GetServiceUserResponse frontier_service_get_service_user(id) - -Get service user - -Get service user details by its id. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get service user - api_response = api_instance.frontier_service_get_service_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_get_service_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_service_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_service_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_service_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_service_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_service_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_service_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_service_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_service_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetServiceUserResponse**](../../models/V1beta1GetServiceUserResponse.md) | | - - -#### frontier_service_get_service_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_service_user_key** - -> V1beta1GetServiceUserKeyResponse frontier_service_get_service_user_key(idkey_id) - -Get service user key - -Get a service user public RSA JWK set. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - 'keyId': "keyId_example", - } - try: - # Get service user key - api_response = api_instance.frontier_service_get_service_user_key( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_get_service_user_key: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | -keyId | KeyIdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# KeyIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_service_user_key.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_service_user_key.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_service_user_key.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_service_user_key.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_service_user_key.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_service_user_key.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_service_user_key.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_service_user_key.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetServiceUserKeyResponse**](../../models/V1beta1GetServiceUserKeyResponse.md) | | - - -#### frontier_service_get_service_user_key.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user_key.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user_key.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user_key.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user_key.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_service_user_key.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_service_user_keys** - -> V1beta1ListServiceUserKeysResponse frontier_service_list_service_user_keys(id) - -List service user keys - -List all the keys of a service user with its details except jwk. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List service user keys - api_response = api_instance.frontier_service_list_service_user_keys( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_list_service_user_keys: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_service_user_keys.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_service_user_keys.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_service_user_keys.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_service_user_keys.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_service_user_keys.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_service_user_keys.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_service_user_keys.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_service_user_keys.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListServiceUserKeysResponse**](../../models/V1beta1ListServiceUserKeysResponse.md) | | - - -#### frontier_service_list_service_user_keys.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_keys.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_keys.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_keys.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_keys.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_keys.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_service_user_secrets** - -> V1beta1ListServiceUserSecretsResponse frontier_service_list_service_user_secrets(id) - -List service user secrets - -List all the secrets of a service user. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List service user secrets - api_response = api_instance.frontier_service_list_service_user_secrets( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_list_service_user_secrets: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_service_user_secrets.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_service_user_secrets.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_service_user_secrets.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_service_user_secrets.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_service_user_secrets.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_service_user_secrets.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_service_user_secrets.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_service_user_secrets.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListServiceUserSecretsResponse**](../../models/V1beta1ListServiceUserSecretsResponse.md) | | - - -#### frontier_service_list_service_user_secrets.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_secrets.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_secrets.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_secrets.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_secrets.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_user_secrets.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_service_users** - -> V1beta1ListServiceUsersResponse frontier_service_list_service_users(org_id) - -List org service users - -Returns the service user of an organization in a Frontier instance. It can be filter by it's state - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import service_user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = service_user_api.ServiceUserApi(api_client) - - # example passing only required values which don't have defaults set - query_params = { - 'orgId': "orgId_example", - } - try: - # List org service users - api_response = api_instance.frontier_service_list_service_users( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_list_service_users: %s\n" % e) - - # example passing only optional values - query_params = { - 'orgId': "orgId_example", - 'state': "state_example", - } - try: - # List org service users - api_response = api_instance.frontier_service_list_service_users( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling ServiceUserApi->frontier_service_list_service_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | -state | StateSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_service_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_service_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_service_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_service_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_service_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_service_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_service_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_service_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListServiceUsersResponse**](../../models/V1beta1ListServiceUsersResponse.md) | | - - -#### frontier_service_list_service_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_service_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/apis/tags/UserApi.md b/docs/apis/tags/UserApi.md deleted file mode 100644 index 038ef18..0000000 --- a/docs/apis/tags/UserApi.md +++ /dev/null @@ -1,3317 +0,0 @@ - -# frontier_api.apis.tags.user_api.UserApi - -All URIs are relative to *http://127.0.0.1:7400* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**admin_service_list_all_users**](#admin_service_list_all_users) | **get** /v1beta1/admin/users | List all users -[**frontier_service_create_user**](#frontier_service_create_user) | **post** /v1beta1/users | Create user -[**frontier_service_delete_user**](#frontier_service_delete_user) | **delete** /v1beta1/users/{id} | Delete user -[**frontier_service_disable_user**](#frontier_service_disable_user) | **post** /v1beta1/users/{id}/disable | Disable user -[**frontier_service_enable_user**](#frontier_service_enable_user) | **post** /v1beta1/users/{id}/enable | Enable user -[**frontier_service_get_current_user**](#frontier_service_get_current_user) | **get** /v1beta1/users/self | Get current user -[**frontier_service_get_user**](#frontier_service_get_user) | **get** /v1beta1/users/{id} | Get user -[**frontier_service_list_current_user_groups**](#frontier_service_list_current_user_groups) | **get** /v1beta1/users/self/groups | List my groups -[**frontier_service_list_organizations_by_current_user**](#frontier_service_list_organizations_by_current_user) | **get** /v1beta1/users/self/organizations | Get my organizations -[**frontier_service_list_organizations_by_user**](#frontier_service_list_organizations_by_user) | **get** /v1beta1/users/{id}/organizations | Get user organizations -[**frontier_service_list_projects_by_current_user**](#frontier_service_list_projects_by_current_user) | **get** /v1beta1/users/self/projects | Get my projects -[**frontier_service_list_projects_by_user**](#frontier_service_list_projects_by_user) | **get** /v1beta1/users/{id}/projects | Get user projects -[**frontier_service_list_user_groups**](#frontier_service_list_user_groups) | **get** /v1beta1/users/{id}/groups | List user groups -[**frontier_service_list_user_invitations**](#frontier_service_list_user_invitations) | **get** /v1beta1/users/{id}/invitations | List user invitations -[**frontier_service_list_users**](#frontier_service_list_users) | **get** /v1beta1/users | List public users -[**frontier_service_update_current_user**](#frontier_service_update_current_user) | **put** /v1beta1/users/self | Update current user -[**frontier_service_update_user**](#frontier_service_update_user) | **put** /v1beta1/users/{id} | Update user - -# **admin_service_list_all_users** - -> V1beta1ListAllUsersResponse admin_service_list_all_users() - -List all users - -Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only optional values - query_params = { - 'pageSize': 1, - 'pageNum': 1, - 'keyword': "keyword_example", - 'orgId': "orgId_example", - 'groupId': "groupId_example", - 'state': "state_example", - } - try: - # List all users - api_response = api_instance.admin_service_list_all_users( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->admin_service_list_all_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -pageSize | PageSizeSchema | | optional -pageNum | PageNumSchema | | optional -keyword | KeywordSchema | | optional -orgId | OrgIdSchema | | optional -groupId | GroupIdSchema | | optional -state | StateSchema | | optional - - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | value must be a 32 bit integer - -# PageNumSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | value must be a 32 bit integer - -# KeywordSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# GroupIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#admin_service_list_all_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#admin_service_list_all_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#admin_service_list_all_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#admin_service_list_all_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#admin_service_list_all_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#admin_service_list_all_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#admin_service_list_all_users.ApiResponseForDefault) | An unexpected error response. - -#### admin_service_list_all_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListAllUsersResponse**](../../models/V1beta1ListAllUsersResponse.md) | | - - -#### admin_service_list_all_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### admin_service_list_all_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_create_user** - -> V1beta1CreateUserResponse frontier_service_create_user(body) - -Create user - -Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name.

*Example:*`{\"email\":\"john.doe@raystack.org\",\"title\":\"John Doe\",metadata:{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}}` - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_user_response import V1beta1CreateUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1UserRequestBody( - name="name_example", - email="email_example", - metadata=dict(), - title="title_example", - avatar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA", - ) - try: - # Create user - api_response = api_instance.frontier_service_create_user( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_create_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UserRequestBody**](../../models/V1beta1UserRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_create_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_create_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_create_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_create_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_create_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_create_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_create_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_create_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1CreateUserResponse**](../../models/V1beta1CreateUserResponse.md) | | - - -#### frontier_service_create_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_create_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_delete_user** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_delete_user(id) - -Delete user - -Delete an user permanently forever and all of its relations (organizations, groups, etc) - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Delete user - api_response = api_instance.frontier_service_delete_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_delete_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_delete_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_delete_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_delete_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_delete_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_delete_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_delete_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_delete_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_delete_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_delete_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_delete_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_disable_user** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_disable_user(idbody) - -Disable user - -Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict() - try: - # Disable user - api_response = api_instance.frontier_service_disable_user( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_disable_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_disable_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_disable_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_disable_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_disable_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_disable_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_disable_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_disable_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_disable_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_disable_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_disable_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_enable_user** - -> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} frontier_service_enable_user(idbody) - -Enable user - -Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = dict() - try: - # Enable user - api_response = api_instance.frontier_service_enable_user( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_enable_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_enable_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_enable_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_enable_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_enable_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_enable_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_enable_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_enable_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_enable_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -#### frontier_service_enable_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_enable_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_current_user** - -> V1beta1GetCurrentUserResponse frontier_service_get_current_user() - -Get current user - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Get current user - api_response = api_instance.frontier_service_get_current_user() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_get_current_user: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_current_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_current_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_current_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_current_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_current_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_current_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_current_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_current_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetCurrentUserResponse**](../../models/V1beta1GetCurrentUserResponse.md) | | - - -#### frontier_service_get_current_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_current_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_current_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_current_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_current_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_current_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_get_user** - -> V1beta1GetUserResponse frontier_service_get_user(id) - -Get user - -Get a user by id searched over all organizations in Frontier. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_user_response import V1beta1GetUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get user - api_response = api_instance.frontier_service_get_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_get_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_get_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_get_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_get_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_get_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_get_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_get_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_get_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_get_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1GetUserResponse**](../../models/V1beta1GetUserResponse.md) | | - - -#### frontier_service_get_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_get_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_current_user_groups** - -> V1beta1ListCurrentUserGroupsResponse frontier_service_list_current_user_groups() - -List my groups - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only optional values - query_params = { - 'orgId': "orgId_example", - 'withPermissions': [ - "withPermissions_example" - ], - } - try: - # List my groups - api_response = api_instance.frontier_service_list_current_user_groups( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_current_user_groups: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional -withPermissions | WithPermissionsSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# WithPermissionsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_current_user_groups.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_current_user_groups.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_current_user_groups.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_current_user_groups.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_current_user_groups.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_current_user_groups.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_current_user_groups.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_current_user_groups.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListCurrentUserGroupsResponse**](../../models/V1beta1ListCurrentUserGroupsResponse.md) | | - - -#### frontier_service_list_current_user_groups.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_groups.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_groups.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_groups.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_groups.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_current_user_groups.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organizations_by_current_user** - -> V1beta1ListOrganizationsByCurrentUserResponse frontier_service_list_organizations_by_current_user() - -Get my organizations - -This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example, this endpoint has no required or optional parameters - try: - # Get my organizations - api_response = api_instance.frontier_service_list_organizations_by_current_user() - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_organizations_by_current_user: %s\n" % e) -``` -### Parameters -This endpoint does not need any parameter. - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organizations_by_current_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organizations_by_current_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organizations_by_current_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organizations_by_current_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organizations_by_current_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organizations_by_current_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organizations_by_current_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organizations_by_current_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationsByCurrentUserResponse**](../../models/V1beta1ListOrganizationsByCurrentUserResponse.md) | | - - -#### frontier_service_list_organizations_by_current_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_current_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_current_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_current_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_current_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_current_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_organizations_by_user** - -> V1beta1ListOrganizationsByUserResponse frontier_service_list_organizations_by_user(id) - -Get user organizations - -This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get user organizations - api_response = api_instance.frontier_service_list_organizations_by_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_organizations_by_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_organizations_by_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_organizations_by_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_organizations_by_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_organizations_by_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_organizations_by_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_organizations_by_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_organizations_by_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_organizations_by_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListOrganizationsByUserResponse**](../../models/V1beta1ListOrganizationsByUserResponse.md) | | - - -#### frontier_service_list_organizations_by_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_organizations_by_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_projects_by_current_user** - -> V1beta1ListProjectsByCurrentUserResponse frontier_service_list_projects_by_current_user() - -Get my projects - -Get all projects the current user belongs to - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only optional values - query_params = { - 'orgId': "orgId_example", - 'withPermissions': [ - "withPermissions_example" - ], - } - try: - # Get my projects - api_response = api_instance.frontier_service_list_projects_by_current_user( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_projects_by_current_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional -withPermissions | WithPermissionsSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# WithPermissionsSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_projects_by_current_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_projects_by_current_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_projects_by_current_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_projects_by_current_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_projects_by_current_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_projects_by_current_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_projects_by_current_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_projects_by_current_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectsByCurrentUserResponse**](../../models/V1beta1ListProjectsByCurrentUserResponse.md) | | - - -#### frontier_service_list_projects_by_current_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_current_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_current_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_current_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_current_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_current_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_projects_by_user** - -> V1beta1ListProjectsByUserResponse frontier_service_list_projects_by_user(id) - -Get user projects - -Get all the projects a user belongs to. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # Get user projects - api_response = api_instance.frontier_service_list_projects_by_user( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_projects_by_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_projects_by_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_projects_by_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_projects_by_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_projects_by_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_projects_by_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_projects_by_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_projects_by_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_projects_by_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListProjectsByUserResponse**](../../models/V1beta1ListProjectsByUserResponse.md) | | - - -#### frontier_service_list_projects_by_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_projects_by_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_user_groups** - -> V1beta1ListUserGroupsResponse frontier_service_list_user_groups(id) - -List user groups - -Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse -from frontier_api.model.rpc_status import RpcStatus -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - query_params = { - } - try: - # List user groups - api_response = api_instance.frontier_service_list_user_groups( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_user_groups: %s\n" % e) - - # example passing only optional values - path_params = { - 'id': "id_example", - } - query_params = { - 'orgId': "orgId_example", - } - try: - # List user groups - api_response = api_instance.frontier_service_list_user_groups( - path_params=path_params, - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_user_groups: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -orgId | OrgIdSchema | | optional - - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_user_groups.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_user_groups.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_user_groups.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_user_groups.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_user_groups.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_user_groups.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_user_groups.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_user_groups.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListUserGroupsResponse**](../../models/V1beta1ListUserGroupsResponse.md) | | - - -#### frontier_service_list_user_groups.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_groups.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_groups.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_groups.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_groups.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_groups.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_user_invitations** - -> V1beta1ListUserInvitationsResponse frontier_service_list_user_invitations(id) - -List user invitations - -List all the invitations sent to a user. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - try: - # List user invitations - api_response = api_instance.frontier_service_list_user_invitations( - path_params=path_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_user_invitations: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -path_params | RequestPathParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_user_invitations.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_user_invitations.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_user_invitations.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_user_invitations.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_user_invitations.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_user_invitations.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_user_invitations.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_user_invitations.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListUserInvitationsResponse**](../../models/V1beta1ListUserInvitationsResponse.md) | | - - -#### frontier_service_list_user_invitations.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_invitations.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_invitations.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_invitations.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_invitations.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_user_invitations.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_list_users** - -> V1beta1ListUsersResponse frontier_service_list_users() - -List public users - -Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination. - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_users_response import V1beta1ListUsersResponse -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only optional values - query_params = { - 'pageSize': 1, - 'pageNum': 1, - 'keyword': "keyword_example", - 'orgId': "orgId_example", - 'groupId': "groupId_example", - 'state': "state_example", - } - try: - # List public users - api_response = api_instance.frontier_service_list_users( - query_params=query_params, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_list_users: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -query_params | RequestQueryParams | | -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### query_params -#### RequestQueryParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -pageSize | PageSizeSchema | | optional -pageNum | PageNumSchema | | optional -keyword | KeywordSchema | | optional -orgId | OrgIdSchema | | optional -groupId | GroupIdSchema | | optional -state | StateSchema | | optional - - -# PageSizeSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | value must be a 32 bit integer - -# PageNumSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -decimal.Decimal, int, | decimal.Decimal, | | value must be a 32 bit integer - -# KeywordSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# OrgIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# GroupIdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -# StateSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_list_users.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_list_users.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_list_users.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_list_users.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_list_users.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_list_users.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_list_users.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_list_users.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1ListUsersResponse**](../../models/V1beta1ListUsersResponse.md) | | - - -#### frontier_service_list_users.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_users.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_users.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_users.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_users.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_list_users.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_current_user** - -> V1beta1UpdateCurrentUserResponse frontier_service_update_current_user(body) - -Update current user - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - body = V1beta1UserRequestBody( - name="name_example", - email="email_example", - metadata=dict(), - title="title_example", - avatar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA", - ) - try: - # Update current user - api_response = api_instance.frontier_service_update_current_user( - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_update_current_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UserRequestBody**](../../models/V1beta1UserRequestBody.md) | | - - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_current_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_current_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_current_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_current_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_current_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_current_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_current_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_current_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateCurrentUserResponse**](../../models/V1beta1UpdateCurrentUserResponse.md) | | - - -#### frontier_service_update_current_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_current_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_current_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_current_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_current_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_current_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **frontier_service_update_user** - -> V1beta1UpdateUserResponse frontier_service_update_user(idbody) - -Update user - -### Example - -* Basic Authentication (Basic): -```python -import frontier_api -from frontier_api.apis.tags import user_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_user_response import V1beta1UpdateUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody -from pprint import pprint -# Defining the host is optional and defaults to http://127.0.0.1:7400 -# See configuration.py for a list of all supported configuration parameters. -configuration = frontier_api.Configuration( - host = "http://127.0.0.1:7400" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure HTTP basic authorization: Basic -configuration = frontier_api.Configuration( - username = 'YOUR_USERNAME', - password = 'YOUR_PASSWORD' -) -# Enter a context with an instance of the API client -with frontier_api.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = user_api.UserApi(api_client) - - # example passing only required values which don't have defaults set - path_params = { - 'id': "id_example", - } - body = V1beta1UserRequestBody( - name="name_example", - email="email_example", - metadata=dict(), - title="title_example", - avatar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA", - ) - try: - # Update user - api_response = api_instance.frontier_service_update_user( - path_params=path_params, - body=body, - ) - pprint(api_response) - except frontier_api.ApiException as e: - print("Exception when calling UserApi->frontier_service_update_user: %s\n" % e) -``` -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -body | typing.Union[SchemaForRequestBodyApplicationJson] | required | -path_params | RequestPathParams | | -content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body -accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client -stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file -timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client -skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned - -### body - -# SchemaForRequestBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UserRequestBody**](../../models/V1beta1UserRequestBody.md) | | - - -### path_params -#### RequestPathParams - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -id | IdSchema | | - -# IdSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | | - -### Return Types, Responses - -Code | Class | Description -------------- | ------------- | ------------- -n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned -200 | [ApiResponseFor200](#frontier_service_update_user.ApiResponseFor200) | A successful response. -400 | [ApiResponseFor400](#frontier_service_update_user.ApiResponseFor400) | Bad Request - The request was malformed or contained invalid parameters. -401 | [ApiResponseFor401](#frontier_service_update_user.ApiResponseFor401) | Unauthorized - Authentication is required -403 | [ApiResponseFor403](#frontier_service_update_user.ApiResponseFor403) | Forbidden - User does not have permission to access the resource -404 | [ApiResponseFor404](#frontier_service_update_user.ApiResponseFor404) | Not Found - The requested resource was not found -500 | [ApiResponseFor500](#frontier_service_update_user.ApiResponseFor500) | Internal Server Error. Returned when theres is something wrong with Frontier server. -default | [ApiResponseForDefault](#frontier_service_update_user.ApiResponseForDefault) | An unexpected error response. - -#### frontier_service_update_user.ApiResponseFor200 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor200ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**V1beta1UpdateUserResponse**](../../models/V1beta1UpdateUserResponse.md) | | - - -#### frontier_service_update_user.ApiResponseFor400 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor400ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_user.ApiResponseFor401 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor401ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_user.ApiResponseFor403 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor403ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_user.ApiResponseFor404 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor404ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor404ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_user.ApiResponseFor500 -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor500ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor500ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -#### frontier_service_update_user.ApiResponseForDefault -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -response | urllib3.HTTPResponse | Raw response | -body | typing.Union[SchemaFor0ResponseBodyApplicationJson, ] | | -headers | Unset | headers were not defined | - -# SchemaFor0ResponseBodyApplicationJson -Type | Description | Notes -------------- | ------------- | ------------- -[**RpcStatus**](../../models/RpcStatus.md) | | - - -### Authorization - -[Basic](../../../README.md#Basic) - -[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - diff --git a/docs/models/ProtobufAny.md b/docs/models/ProtobufAny.md deleted file mode 100644 index f6a4aa3..0000000 --- a/docs/models/ProtobufAny.md +++ /dev/null @@ -1,22 +0,0 @@ -# frontier_api.model.protobuf_any.ProtobufAny - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**@type** | str, | str, | | [optional] -**[any_string_name](#any_string_name)** | dict, frozendict.frozendict, | frozendict.frozendict, | any string name can be used but the value must be the correct type | [optional] - -# any_string_name - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/ProtobufNullValue.md b/docs/models/ProtobufNullValue.md deleted file mode 100644 index 845b535..0000000 --- a/docs/models/ProtobufNullValue.md +++ /dev/null @@ -1,11 +0,0 @@ -# frontier_api.model.protobuf_null_value.ProtobufNullValue - -`NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -str, | str, | `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. | must be one of ["NULL_VALUE", ] if omitted the server will use the default value of "NULL_VALUE" - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/RpcStatus.md b/docs/models/RpcStatus.md deleted file mode 100644 index 94eb64e..0000000 --- a/docs/models/RpcStatus.md +++ /dev/null @@ -1,29 +0,0 @@ -# frontier_api.model.rpc_status.RpcStatus - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**code** | decimal.Decimal, int, | decimal.Decimal, | | [optional] value must be a 32 bit integer -**message** | str, | str, | | [optional] -**[details](#details)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# details - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**ProtobufAny**](ProtobufAny.md) | [**ProtobufAny**](ProtobufAny.md) | [**ProtobufAny**](ProtobufAny.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuditLog.md b/docs/models/V1beta1AuditLog.md deleted file mode 100644 index 832ba80..0000000 --- a/docs/models/V1beta1AuditLog.md +++ /dev/null @@ -1,33 +0,0 @@ -# frontier_api.model.v1beta1_audit_log.V1beta1AuditLog - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**action** | str, | str, | | -**source** | str, | str, | The source service generating the event. | -**id** | str, | str, | | [optional] -**actor** | [**V1beta1AuditLogActor**](V1beta1AuditLogActor.md) | [**V1beta1AuditLogActor**](V1beta1AuditLogActor.md) | | [optional] -**target** | [**V1beta1AuditLogTarget**](V1beta1AuditLogTarget.md) | [**V1beta1AuditLogTarget**](V1beta1AuditLogTarget.md) | | [optional] -**[context](#context)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the log was created. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# context - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**any_string_name** | str, | str, | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuditLogActor.md b/docs/models/V1beta1AuditLogActor.md deleted file mode 100644 index b08e815..0000000 --- a/docs/models/V1beta1AuditLogActor.md +++ /dev/null @@ -1,17 +0,0 @@ -# frontier_api.model.v1beta1_audit_log_actor.V1beta1AuditLogActor - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuditLogTarget.md b/docs/models/V1beta1AuditLogTarget.md deleted file mode 100644 index cae7697..0000000 --- a/docs/models/V1beta1AuditLogTarget.md +++ /dev/null @@ -1,17 +0,0 @@ -# frontier_api.model.v1beta1_audit_log_target.V1beta1AuditLogTarget - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**type** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuthCallbackRequest.md b/docs/models/V1beta1AuthCallbackRequest.md deleted file mode 100644 index 7737033..0000000 --- a/docs/models/V1beta1AuthCallbackRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# frontier_api.model.v1beta1_auth_callback_request.V1beta1AuthCallbackRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**strategyName** | str, | str, | | [optional] -**state** | str, | str, | | [optional] -**code** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuthStrategy.md b/docs/models/V1beta1AuthStrategy.md deleted file mode 100644 index 0de52a8..0000000 --- a/docs/models/V1beta1AuthStrategy.md +++ /dev/null @@ -1,23 +0,0 @@ -# frontier_api.model.v1beta1_auth_strategy.V1beta1AuthStrategy - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | [optional] -**[params](#params)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# params - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuthTokenRequest.md b/docs/models/V1beta1AuthTokenRequest.md deleted file mode 100644 index d951aa1..0000000 --- a/docs/models/V1beta1AuthTokenRequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# frontier_api.model.v1beta1_auth_token_request.V1beta1AuthTokenRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**grantType** | str, | str, | | [optional] -**clientId** | str, | str, | | [optional] -**clientSecret** | str, | str, | | [optional] -**assertion** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuthTokenResponse.md b/docs/models/V1beta1AuthTokenResponse.md deleted file mode 100644 index 24d5bfb..0000000 --- a/docs/models/V1beta1AuthTokenResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_auth_token_response.V1beta1AuthTokenResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**accessToken** | str, | str, | | [optional] -**tokenType** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1AuthenticateResponse.md b/docs/models/V1beta1AuthenticateResponse.md deleted file mode 100644 index 3f4df18..0000000 --- a/docs/models/V1beta1AuthenticateResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_authenticate_response.V1beta1AuthenticateResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**endpoint** | str, | str, | | [optional] -**state** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1BatchCheckPermissionBody.md b/docs/models/V1beta1BatchCheckPermissionBody.md deleted file mode 100644 index 635fcce..0000000 --- a/docs/models/V1beta1BatchCheckPermissionBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_batch_check_permission_body.V1beta1BatchCheckPermissionBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**permission** | str, | str, | the permission name to check. <br/> *Example:* `get` or `list` | -**resource** | str, | str, | `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1BatchCheckPermissionRequest.md b/docs/models/V1beta1BatchCheckPermissionRequest.md deleted file mode 100644 index 70d12c3..0000000 --- a/docs/models/V1beta1BatchCheckPermissionRequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_batch_check_permission_request.V1beta1BatchCheckPermissionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1BatchCheckPermissionBody**](V1beta1BatchCheckPermissionBody.md) | [**V1beta1BatchCheckPermissionBody**](V1beta1BatchCheckPermissionBody.md) | [**V1beta1BatchCheckPermissionBody**](V1beta1BatchCheckPermissionBody.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1BatchCheckPermissionResponse.md b/docs/models/V1beta1BatchCheckPermissionResponse.md deleted file mode 100644 index f335e4f..0000000 --- a/docs/models/V1beta1BatchCheckPermissionResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_batch_check_permission_response.V1beta1BatchCheckPermissionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[pairs](#pairs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# pairs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1BatchCheckPermissionResponsePair**](V1beta1BatchCheckPermissionResponsePair.md) | [**V1beta1BatchCheckPermissionResponsePair**](V1beta1BatchCheckPermissionResponsePair.md) | [**V1beta1BatchCheckPermissionResponsePair**](V1beta1BatchCheckPermissionResponsePair.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1BatchCheckPermissionResponsePair.md b/docs/models/V1beta1BatchCheckPermissionResponsePair.md deleted file mode 100644 index b331751..0000000 --- a/docs/models/V1beta1BatchCheckPermissionResponsePair.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_batch_check_permission_response_pair.V1beta1BatchCheckPermissionResponsePair - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**body** | [**V1beta1BatchCheckPermissionBody**](V1beta1BatchCheckPermissionBody.md) | [**V1beta1BatchCheckPermissionBody**](V1beta1BatchCheckPermissionBody.md) | | [optional] -**status** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CheckResourcePermissionRequest.md b/docs/models/V1beta1CheckResourcePermissionRequest.md deleted file mode 100644 index 086cfa9..0000000 --- a/docs/models/V1beta1CheckResourcePermissionRequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# frontier_api.model.v1beta1_check_resource_permission_request.V1beta1CheckResourcePermissionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**permission** | str, | str, | the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` | -**objectId** | str, | str, | Deprecated. Use `resource` field instead. | [optional] -**objectNamespace** | str, | str, | Deprecated. Use `resource` field instead. | [optional] -**resource** | str, | str, | `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CheckResourcePermissionResponse.md b/docs/models/V1beta1CheckResourcePermissionResponse.md deleted file mode 100644 index 798251e..0000000 --- a/docs/models/V1beta1CheckResourcePermissionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_check_resource_permission_response.V1beta1CheckResourcePermissionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**status** | bool, | BoolClass, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateCurrentUserPreferencesRequest.md b/docs/models/V1beta1CreateCurrentUserPreferencesRequest.md deleted file mode 100644 index 854a9c0..0000000 --- a/docs/models/V1beta1CreateCurrentUserPreferencesRequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_current_user_preferences_request.V1beta1CreateCurrentUserPreferencesRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceRequestBody**](V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**](V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**](V1beta1PreferenceRequestBody.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateCurrentUserPreferencesResponse.md b/docs/models/V1beta1CreateCurrentUserPreferencesResponse.md deleted file mode 100644 index f21b393..0000000 --- a/docs/models/V1beta1CreateCurrentUserPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_current_user_preferences_response.V1beta1CreateCurrentUserPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateGroupPreferencesResponse.md b/docs/models/V1beta1CreateGroupPreferencesResponse.md deleted file mode 100644 index 8de750a..0000000 --- a/docs/models/V1beta1CreateGroupPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_group_preferences_response.V1beta1CreateGroupPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateGroupResponse.md b/docs/models/V1beta1CreateGroupResponse.md deleted file mode 100644 index 6175b7e..0000000 --- a/docs/models/V1beta1CreateGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_group_response.V1beta1CreateGroupResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateMetaSchemaResponse.md b/docs/models/V1beta1CreateMetaSchemaResponse.md deleted file mode 100644 index 34d93cf..0000000 --- a/docs/models/V1beta1CreateMetaSchemaResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_meta_schema_response.V1beta1CreateMetaSchemaResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**metaschema** | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateOrganizationDomainResponse.md b/docs/models/V1beta1CreateOrganizationDomainResponse.md deleted file mode 100644 index a90fc89..0000000 --- a/docs/models/V1beta1CreateOrganizationDomainResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_organization_domain_response.V1beta1CreateOrganizationDomainResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**domain** | [**V1beta1Domain**](V1beta1Domain.md) | [**V1beta1Domain**](V1beta1Domain.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateOrganizationInvitationResponse.md b/docs/models/V1beta1CreateOrganizationInvitationResponse.md deleted file mode 100644 index 13caf4a..0000000 --- a/docs/models/V1beta1CreateOrganizationInvitationResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_organization_invitation_response.V1beta1CreateOrganizationInvitationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[invitations](#invitations)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# invitations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateOrganizationPreferencesResponse.md b/docs/models/V1beta1CreateOrganizationPreferencesResponse.md deleted file mode 100644 index 3039ead..0000000 --- a/docs/models/V1beta1CreateOrganizationPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_organization_preferences_response.V1beta1CreateOrganizationPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateOrganizationResponse.md b/docs/models/V1beta1CreateOrganizationResponse.md deleted file mode 100644 index 299dba3..0000000 --- a/docs/models/V1beta1CreateOrganizationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_organization_response.V1beta1CreateOrganizationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**organization** | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateOrganizationRoleResponse.md b/docs/models/V1beta1CreateOrganizationRoleResponse.md deleted file mode 100644 index a1bd97f..0000000 --- a/docs/models/V1beta1CreateOrganizationRoleResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_organization_role_response.V1beta1CreateOrganizationRoleResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**role** | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreatePermissionRequest.md b/docs/models/V1beta1CreatePermissionRequest.md deleted file mode 100644 index 5d2c267..0000000 --- a/docs/models/V1beta1CreatePermissionRequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_permission_request.V1beta1CreatePermissionRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[bodies](#bodies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# bodies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PermissionRequestBody**](V1beta1PermissionRequestBody.md) | [**V1beta1PermissionRequestBody**](V1beta1PermissionRequestBody.md) | [**V1beta1PermissionRequestBody**](V1beta1PermissionRequestBody.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreatePermissionResponse.md b/docs/models/V1beta1CreatePermissionResponse.md deleted file mode 100644 index 8369f5c..0000000 --- a/docs/models/V1beta1CreatePermissionResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_permission_response.V1beta1CreatePermissionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[permissions](#permissions)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# permissions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Permission**](V1beta1Permission.md) | [**V1beta1Permission**](V1beta1Permission.md) | [**V1beta1Permission**](V1beta1Permission.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreatePolicyResponse.md b/docs/models/V1beta1CreatePolicyResponse.md deleted file mode 100644 index 584248b..0000000 --- a/docs/models/V1beta1CreatePolicyResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_policy_response.V1beta1CreatePolicyResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**policy** | [**V1beta1Policy**](V1beta1Policy.md) | [**V1beta1Policy**](V1beta1Policy.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreatePreferencesRequest.md b/docs/models/V1beta1CreatePreferencesRequest.md deleted file mode 100644 index f44fb99..0000000 --- a/docs/models/V1beta1CreatePreferencesRequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_preferences_request.V1beta1CreatePreferencesRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceRequestBody**](V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**](V1beta1PreferenceRequestBody.md) | [**V1beta1PreferenceRequestBody**](V1beta1PreferenceRequestBody.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreatePreferencesResponse.md b/docs/models/V1beta1CreatePreferencesResponse.md deleted file mode 100644 index 681195a..0000000 --- a/docs/models/V1beta1CreatePreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_preferences_response.V1beta1CreatePreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preference](#preference)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preference - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateProjectPreferencesResponse.md b/docs/models/V1beta1CreateProjectPreferencesResponse.md deleted file mode 100644 index 20f7d66..0000000 --- a/docs/models/V1beta1CreateProjectPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_project_preferences_response.V1beta1CreateProjectPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateProjectResourceResponse.md b/docs/models/V1beta1CreateProjectResourceResponse.md deleted file mode 100644 index 72dfa01..0000000 --- a/docs/models/V1beta1CreateProjectResourceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_project_resource_response.V1beta1CreateProjectResourceResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**resource** | [**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateProjectResponse.md b/docs/models/V1beta1CreateProjectResponse.md deleted file mode 100644 index 07e327f..0000000 --- a/docs/models/V1beta1CreateProjectResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_project_response.V1beta1CreateProjectResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**project** | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateRelationResponse.md b/docs/models/V1beta1CreateRelationResponse.md deleted file mode 100644 index 8a3e449..0000000 --- a/docs/models/V1beta1CreateRelationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_relation_response.V1beta1CreateRelationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**relation** | [**V1beta1Relation**](V1beta1Relation.md) | [**V1beta1Relation**](V1beta1Relation.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateRoleResponse.md b/docs/models/V1beta1CreateRoleResponse.md deleted file mode 100644 index 02db309..0000000 --- a/docs/models/V1beta1CreateRoleResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_role_response.V1beta1CreateRoleResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**role** | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateServiceUserKeyResponse.md b/docs/models/V1beta1CreateServiceUserKeyResponse.md deleted file mode 100644 index c854110..0000000 --- a/docs/models/V1beta1CreateServiceUserKeyResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_service_user_key_response.V1beta1CreateServiceUserKeyResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**key** | [**V1beta1KeyCredential**](V1beta1KeyCredential.md) | [**V1beta1KeyCredential**](V1beta1KeyCredential.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateServiceUserRequest.md b/docs/models/V1beta1CreateServiceUserRequest.md deleted file mode 100644 index 443ab9b..0000000 --- a/docs/models/V1beta1CreateServiceUserRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_create_service_user_request.V1beta1CreateServiceUserRequest - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**orgId** | str, | str, | The organization ID to which the service user belongs to. | -**body** | [**V1beta1ServiceUserRequestBody**](V1beta1ServiceUserRequestBody.md) | [**V1beta1ServiceUserRequestBody**](V1beta1ServiceUserRequestBody.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateServiceUserResponse.md b/docs/models/V1beta1CreateServiceUserResponse.md deleted file mode 100644 index ecee9ab..0000000 --- a/docs/models/V1beta1CreateServiceUserResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_service_user_response.V1beta1CreateServiceUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**serviceuser** | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateServiceUserSecretResponse.md b/docs/models/V1beta1CreateServiceUserSecretResponse.md deleted file mode 100644 index 065230d..0000000 --- a/docs/models/V1beta1CreateServiceUserSecretResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_service_user_secret_response.V1beta1CreateServiceUserSecretResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**secret** | [**V1beta1SecretCredential**](V1beta1SecretCredential.md) | [**V1beta1SecretCredential**](V1beta1SecretCredential.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateUserPreferencesResponse.md b/docs/models/V1beta1CreateUserPreferencesResponse.md deleted file mode 100644 index 2c7db03..0000000 --- a/docs/models/V1beta1CreateUserPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_create_user_preferences_response.V1beta1CreateUserPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1CreateUserResponse.md b/docs/models/V1beta1CreateUserResponse.md deleted file mode 100644 index 20fbbfa..0000000 --- a/docs/models/V1beta1CreateUserResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_create_user_response.V1beta1CreateUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1DescribePreferencesResponse.md b/docs/models/V1beta1DescribePreferencesResponse.md deleted file mode 100644 index ddf03d3..0000000 --- a/docs/models/V1beta1DescribePreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_describe_preferences_response.V1beta1DescribePreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[traits](#traits)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# traits - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1PreferenceTrait**](V1beta1PreferenceTrait.md) | [**V1beta1PreferenceTrait**](V1beta1PreferenceTrait.md) | [**V1beta1PreferenceTrait**](V1beta1PreferenceTrait.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Domain.md b/docs/models/V1beta1Domain.md deleted file mode 100644 index 9e2896c..0000000 --- a/docs/models/V1beta1Domain.md +++ /dev/null @@ -1,21 +0,0 @@ -# frontier_api.model.v1beta1_domain.V1beta1Domain - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | The domain id | [optional] -**name** | str, | str, | The domain name | [optional] -**orgId** | str, | str, | The organization id | [optional] -**token** | str, | str, | The dns TXT record token to verify the domain | [optional] -**state** | str, | str, | The domain state either pending or verified | [optional] -**createdAt** | str, datetime, | str, | The time the domain whitelist request was created | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the org domain was updated | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetCurrentUserResponse.md b/docs/models/V1beta1GetCurrentUserResponse.md deleted file mode 100644 index 5b1eef2..0000000 --- a/docs/models/V1beta1GetCurrentUserResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_get_current_user_response.V1beta1GetCurrentUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | [optional] -**serviceuser** | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetGroupResponse.md b/docs/models/V1beta1GetGroupResponse.md deleted file mode 100644 index 579e363..0000000 --- a/docs/models/V1beta1GetGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_group_response.V1beta1GetGroupResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetJWKsResponse.md b/docs/models/V1beta1GetJWKsResponse.md deleted file mode 100644 index 0b1e89f..0000000 --- a/docs/models/V1beta1GetJWKsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_get_jwks_response.V1beta1GetJWKsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[keys](#keys)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# keys - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1JSONWebKey**](V1beta1JSONWebKey.md) | [**V1beta1JSONWebKey**](V1beta1JSONWebKey.md) | [**V1beta1JSONWebKey**](V1beta1JSONWebKey.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetMetaSchemaResponse.md b/docs/models/V1beta1GetMetaSchemaResponse.md deleted file mode 100644 index 31b72eb..0000000 --- a/docs/models/V1beta1GetMetaSchemaResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_meta_schema_response.V1beta1GetMetaSchemaResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**metaschema** | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetNamespaceResponse.md b/docs/models/V1beta1GetNamespaceResponse.md deleted file mode 100644 index e90f142..0000000 --- a/docs/models/V1beta1GetNamespaceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_namespace_response.V1beta1GetNamespaceResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**namespace** | [**V1beta1Namespace**](V1beta1Namespace.md) | [**V1beta1Namespace**](V1beta1Namespace.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetOrganizationAuditLogResponse.md b/docs/models/V1beta1GetOrganizationAuditLogResponse.md deleted file mode 100644 index 2dae9ba..0000000 --- a/docs/models/V1beta1GetOrganizationAuditLogResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_organization_audit_log_response.V1beta1GetOrganizationAuditLogResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**log** | [**V1beta1AuditLog**](V1beta1AuditLog.md) | [**V1beta1AuditLog**](V1beta1AuditLog.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetOrganizationDomainResponse.md b/docs/models/V1beta1GetOrganizationDomainResponse.md deleted file mode 100644 index 779604c..0000000 --- a/docs/models/V1beta1GetOrganizationDomainResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_organization_domain_response.V1beta1GetOrganizationDomainResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**domain** | [**V1beta1Domain**](V1beta1Domain.md) | [**V1beta1Domain**](V1beta1Domain.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetOrganizationInvitationResponse.md b/docs/models/V1beta1GetOrganizationInvitationResponse.md deleted file mode 100644 index 33d8728..0000000 --- a/docs/models/V1beta1GetOrganizationInvitationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_organization_invitation_response.V1beta1GetOrganizationInvitationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**invitation** | [**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetOrganizationResponse.md b/docs/models/V1beta1GetOrganizationResponse.md deleted file mode 100644 index 9642099..0000000 --- a/docs/models/V1beta1GetOrganizationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_organization_response.V1beta1GetOrganizationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**organization** | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetOrganizationRoleResponse.md b/docs/models/V1beta1GetOrganizationRoleResponse.md deleted file mode 100644 index 963da32..0000000 --- a/docs/models/V1beta1GetOrganizationRoleResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_organization_role_response.V1beta1GetOrganizationRoleResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**role** | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetPermissionResponse.md b/docs/models/V1beta1GetPermissionResponse.md deleted file mode 100644 index f0c598e..0000000 --- a/docs/models/V1beta1GetPermissionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_permission_response.V1beta1GetPermissionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**permission** | [**V1beta1Permission**](V1beta1Permission.md) | [**V1beta1Permission**](V1beta1Permission.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetPolicyResponse.md b/docs/models/V1beta1GetPolicyResponse.md deleted file mode 100644 index 5ea702e..0000000 --- a/docs/models/V1beta1GetPolicyResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_policy_response.V1beta1GetPolicyResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**policy** | [**V1beta1Policy**](V1beta1Policy.md) | [**V1beta1Policy**](V1beta1Policy.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetProjectResourceResponse.md b/docs/models/V1beta1GetProjectResourceResponse.md deleted file mode 100644 index f5abceb..0000000 --- a/docs/models/V1beta1GetProjectResourceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_project_resource_response.V1beta1GetProjectResourceResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**resource** | [**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetProjectResponse.md b/docs/models/V1beta1GetProjectResponse.md deleted file mode 100644 index b3a58c6..0000000 --- a/docs/models/V1beta1GetProjectResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_project_response.V1beta1GetProjectResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**project** | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetRelationResponse.md b/docs/models/V1beta1GetRelationResponse.md deleted file mode 100644 index c16012f..0000000 --- a/docs/models/V1beta1GetRelationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_relation_response.V1beta1GetRelationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**relation** | [**V1beta1Relation**](V1beta1Relation.md) | [**V1beta1Relation**](V1beta1Relation.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetServiceUserKeyResponse.md b/docs/models/V1beta1GetServiceUserKeyResponse.md deleted file mode 100644 index 5e0b43d..0000000 --- a/docs/models/V1beta1GetServiceUserKeyResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_get_service_user_key_response.V1beta1GetServiceUserKeyResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[keys](#keys)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# keys - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1JSONWebKey**](V1beta1JSONWebKey.md) | [**V1beta1JSONWebKey**](V1beta1JSONWebKey.md) | [**V1beta1JSONWebKey**](V1beta1JSONWebKey.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetServiceUserResponse.md b/docs/models/V1beta1GetServiceUserResponse.md deleted file mode 100644 index e89cb5c..0000000 --- a/docs/models/V1beta1GetServiceUserResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_service_user_response.V1beta1GetServiceUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**serviceuser** | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GetUserResponse.md b/docs/models/V1beta1GetUserResponse.md deleted file mode 100644 index 507a473..0000000 --- a/docs/models/V1beta1GetUserResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_get_user_response.V1beta1GetUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Group.md b/docs/models/V1beta1Group.md deleted file mode 100644 index 35a832b..0000000 --- a/docs/models/V1beta1Group.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_group.V1beta1Group - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**orgId** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the group was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the group was last updated. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1GroupRequestBody.md b/docs/models/V1beta1GroupRequestBody.md deleted file mode 100644 index b4119cc..0000000 --- a/docs/models/V1beta1GroupRequestBody.md +++ /dev/null @@ -1,26 +0,0 @@ -# frontier_api.model.v1beta1_group_request_body.V1beta1GroupRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | The name of the group. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores. | -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the group. Can also be left empty. | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for groups that can hold key value pairs defined in Group Metaschema. The metadata object can be used to store arbitrary information about the group such as labels, descriptions etc. The default Group Metaschema contains labels and descripton fields. Update the Group Metaschema to add more fields.<br/>*Example:*`{\"labels\": {\"key\": \"value\"}, \"description\": \"Group description\"}` | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -Metadata object for groups that can hold key value pairs defined in Group Metaschema. The metadata object can be used to store arbitrary information about the group such as labels, descriptions etc. The default Group Metaschema contains labels and descripton fields. Update the Group Metaschema to add more fields.
*Example:*`{\"labels\": {\"key\": \"value\"}, \"description\": \"Group description\"}` - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for groups that can hold key value pairs defined in Group Metaschema. The metadata object can be used to store arbitrary information about the group such as labels, descriptions etc. The default Group Metaschema contains labels and descripton fields. Update the Group Metaschema to add more fields.<br/>*Example:*`{\"labels\": {\"key\": \"value\"}, \"description\": \"Group description\"}` | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Invitation.md b/docs/models/V1beta1Invitation.md deleted file mode 100644 index 7fd6004..0000000 --- a/docs/models/V1beta1Invitation.md +++ /dev/null @@ -1,59 +0,0 @@ -# frontier_api.model.v1beta1_invitation.V1beta1Invitation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | The unique invitation identifier. | [optional] -**userId** | str, | str, | The user email of the invited user. | [optional] -**orgId** | str, | str, | The organization id to which the user is invited. | [optional] -**[groupIds](#groupIds)** | list, tuple, | tuple, | The list of group ids to which the user is invited. | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | The metadata of the invitation. | [optional] -**createdAt** | str, datetime, | str, | The time when the invitation was created. | [optional] value must conform to RFC-3339 date-time -**expiresAt** | str, datetime, | str, | The time when the invitation expires. | [optional] value must conform to RFC-3339 date-time -**[roleIds](#roleIds)** | list, tuple, | tuple, | The list of role ids to which the user is invited in an organization. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groupIds - -The list of group ids to which the user is invited. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | The list of group ids to which the user is invited. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# metadata - -The metadata of the invitation. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The metadata of the invitation. | - -# roleIds - -The list of role ids to which the user is invited in an organization. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | The list of role ids to which the user is invited in an organization. | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1JSONWebKey.md b/docs/models/V1beta1JSONWebKey.md deleted file mode 100644 index 66a1dbd..0000000 --- a/docs/models/V1beta1JSONWebKey.md +++ /dev/null @@ -1,23 +0,0 @@ -# frontier_api.model.v1beta1_json_web_key.V1beta1JSONWebKey - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**kty** | str, | str, | Key Type. | [optional] -**alg** | str, | str, | Algorithm. | [optional] -**use** | str, | str, | Permitted uses for the public keys. | [optional] -**kid** | str, | str, | Key ID. | [optional] -**n** | str, | str, | Used for RSA keys. | [optional] -**e** | str, | str, | Used for RSA keys. | [optional] -**x** | str, | str, | Used for ECDSA keys. | [optional] -**y** | str, | str, | Used for ECDSA keys. | [optional] -**crv** | str, | str, | Used for ECDSA keys. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1KeyCredential.md b/docs/models/V1beta1KeyCredential.md deleted file mode 100644 index e0ce8a0..0000000 --- a/docs/models/V1beta1KeyCredential.md +++ /dev/null @@ -1,18 +0,0 @@ -# frontier_api.model.v1beta1_key_credential.V1beta1KeyCredential - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**type** | str, | str, | | [optional] -**kid** | str, | str, | | [optional] -**principalId** | str, | str, | | [optional] -**privateKey** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListAllOrganizationsResponse.md b/docs/models/V1beta1ListAllOrganizationsResponse.md deleted file mode 100644 index 96c442d..0000000 --- a/docs/models/V1beta1ListAllOrganizationsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_all_organizations_response.V1beta1ListAllOrganizationsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[organizations](#organizations)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# organizations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListAllUsersResponse.md b/docs/models/V1beta1ListAllUsersResponse.md deleted file mode 100644 index d0c33c3..0000000 --- a/docs/models/V1beta1ListAllUsersResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_all_users_response.V1beta1ListAllUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**count** | decimal.Decimal, int, | decimal.Decimal, | | [optional] value must be a 32 bit integer -**[users](#users)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListAuthStrategiesResponse.md b/docs/models/V1beta1ListAuthStrategiesResponse.md deleted file mode 100644 index 6cac9ef..0000000 --- a/docs/models/V1beta1ListAuthStrategiesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_auth_strategies_response.V1beta1ListAuthStrategiesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[strategies](#strategies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# strategies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1AuthStrategy**](V1beta1AuthStrategy.md) | [**V1beta1AuthStrategy**](V1beta1AuthStrategy.md) | [**V1beta1AuthStrategy**](V1beta1AuthStrategy.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListCurrentUserGroupsResponse.md b/docs/models/V1beta1ListCurrentUserGroupsResponse.md deleted file mode 100644 index bfddb7f..0000000 --- a/docs/models/V1beta1ListCurrentUserGroupsResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_current_user_groups_response.V1beta1ListCurrentUserGroupsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[groups](#groups)** | list, tuple, | tuple, | | [optional] -**[accessPairs](#accessPairs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groups - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | - -# accessPairs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ListCurrentUserGroupsResponseAccessPair**](V1beta1ListCurrentUserGroupsResponseAccessPair.md) | [**V1beta1ListCurrentUserGroupsResponseAccessPair**](V1beta1ListCurrentUserGroupsResponseAccessPair.md) | [**V1beta1ListCurrentUserGroupsResponseAccessPair**](V1beta1ListCurrentUserGroupsResponseAccessPair.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListCurrentUserGroupsResponseAccessPair.md b/docs/models/V1beta1ListCurrentUserGroupsResponseAccessPair.md deleted file mode 100644 index 9cddb89..0000000 --- a/docs/models/V1beta1ListCurrentUserGroupsResponseAccessPair.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_current_user_groups_response_access_pair.V1beta1ListCurrentUserGroupsResponseAccessPair - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**groupId** | str, | str, | | [optional] -**[permissions](#permissions)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# permissions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListCurrentUserPreferencesResponse.md b/docs/models/V1beta1ListCurrentUserPreferencesResponse.md deleted file mode 100644 index 5f0a1ca..0000000 --- a/docs/models/V1beta1ListCurrentUserPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_current_user_preferences_response.V1beta1ListCurrentUserPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListGroupPreferencesResponse.md b/docs/models/V1beta1ListGroupPreferencesResponse.md deleted file mode 100644 index 13e191f..0000000 --- a/docs/models/V1beta1ListGroupPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_group_preferences_response.V1beta1ListGroupPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListGroupUsersResponse.md b/docs/models/V1beta1ListGroupUsersResponse.md deleted file mode 100644 index 5e90bce..0000000 --- a/docs/models/V1beta1ListGroupUsersResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_group_users_response.V1beta1ListGroupUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | | [optional] -**[rolePairs](#rolePairs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -# rolePairs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ListGroupUsersResponseRolePair**](V1beta1ListGroupUsersResponseRolePair.md) | [**V1beta1ListGroupUsersResponseRolePair**](V1beta1ListGroupUsersResponseRolePair.md) | [**V1beta1ListGroupUsersResponseRolePair**](V1beta1ListGroupUsersResponseRolePair.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListGroupUsersResponseRolePair.md b/docs/models/V1beta1ListGroupUsersResponseRolePair.md deleted file mode 100644 index 9f07078..0000000 --- a/docs/models/V1beta1ListGroupUsersResponseRolePair.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_group_users_response_role_pair.V1beta1ListGroupUsersResponseRolePair - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**userId** | str, | str, | | [optional] -**[roles](#roles)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# roles - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListGroupsResponse.md b/docs/models/V1beta1ListGroupsResponse.md deleted file mode 100644 index f5c5e4c..0000000 --- a/docs/models/V1beta1ListGroupsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_groups_response.V1beta1ListGroupsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[groups](#groups)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groups - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListMetaSchemasResponse.md b/docs/models/V1beta1ListMetaSchemasResponse.md deleted file mode 100644 index 24a6db7..0000000 --- a/docs/models/V1beta1ListMetaSchemasResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_meta_schemas_response.V1beta1ListMetaSchemasResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[metaschemas](#metaschemas)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metaschemas - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1MetaSchema**](V1beta1MetaSchema.md) | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListNamespacesResponse.md b/docs/models/V1beta1ListNamespacesResponse.md deleted file mode 100644 index 27ccb22..0000000 --- a/docs/models/V1beta1ListNamespacesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_namespaces_response.V1beta1ListNamespacesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[namespaces](#namespaces)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# namespaces - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Namespace**](V1beta1Namespace.md) | [**V1beta1Namespace**](V1beta1Namespace.md) | [**V1beta1Namespace**](V1beta1Namespace.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationAdminsResponse.md b/docs/models/V1beta1ListOrganizationAdminsResponse.md deleted file mode 100644 index 74b5cbb..0000000 --- a/docs/models/V1beta1ListOrganizationAdminsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_admins_response.V1beta1ListOrganizationAdminsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationAuditLogsResponse.md b/docs/models/V1beta1ListOrganizationAuditLogsResponse.md deleted file mode 100644 index 4ee7647..0000000 --- a/docs/models/V1beta1ListOrganizationAuditLogsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_audit_logs_response.V1beta1ListOrganizationAuditLogsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[logs](#logs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# logs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1AuditLog**](V1beta1AuditLog.md) | [**V1beta1AuditLog**](V1beta1AuditLog.md) | [**V1beta1AuditLog**](V1beta1AuditLog.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationDomainsResponse.md b/docs/models/V1beta1ListOrganizationDomainsResponse.md deleted file mode 100644 index 3cd2519..0000000 --- a/docs/models/V1beta1ListOrganizationDomainsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_domains_response.V1beta1ListOrganizationDomainsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[domains](#domains)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# domains - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Domain**](V1beta1Domain.md) | [**V1beta1Domain**](V1beta1Domain.md) | [**V1beta1Domain**](V1beta1Domain.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationGroupsResponse.md b/docs/models/V1beta1ListOrganizationGroupsResponse.md deleted file mode 100644 index 324c2c7..0000000 --- a/docs/models/V1beta1ListOrganizationGroupsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_groups_response.V1beta1ListOrganizationGroupsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[groups](#groups)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groups - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationInvitationsResponse.md b/docs/models/V1beta1ListOrganizationInvitationsResponse.md deleted file mode 100644 index 1cb7696..0000000 --- a/docs/models/V1beta1ListOrganizationInvitationsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_invitations_response.V1beta1ListOrganizationInvitationsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[invitations](#invitations)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# invitations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationPreferencesResponse.md b/docs/models/V1beta1ListOrganizationPreferencesResponse.md deleted file mode 100644 index 5f01db9..0000000 --- a/docs/models/V1beta1ListOrganizationPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_preferences_response.V1beta1ListOrganizationPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationProjectsResponse.md b/docs/models/V1beta1ListOrganizationProjectsResponse.md deleted file mode 100644 index 0ecef10..0000000 --- a/docs/models/V1beta1ListOrganizationProjectsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_projects_response.V1beta1ListOrganizationProjectsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[projects](#projects)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# projects - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationRolesResponse.md b/docs/models/V1beta1ListOrganizationRolesResponse.md deleted file mode 100644 index 2e34b0e..0000000 --- a/docs/models/V1beta1ListOrganizationRolesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_roles_response.V1beta1ListOrganizationRolesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[roles](#roles)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# roles - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationServiceUsersResponse.md b/docs/models/V1beta1ListOrganizationServiceUsersResponse.md deleted file mode 100644 index 9c7b973..0000000 --- a/docs/models/V1beta1ListOrganizationServiceUsersResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_service_users_response.V1beta1ListOrganizationServiceUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[serviceusers](#serviceusers)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# serviceusers - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationUsersResponse.md b/docs/models/V1beta1ListOrganizationUsersResponse.md deleted file mode 100644 index c719bde..0000000 --- a/docs/models/V1beta1ListOrganizationUsersResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organization_users_response.V1beta1ListOrganizationUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationsByCurrentUserResponse.md b/docs/models/V1beta1ListOrganizationsByCurrentUserResponse.md deleted file mode 100644 index 643ca6d..0000000 --- a/docs/models/V1beta1ListOrganizationsByCurrentUserResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_organizations_by_current_user_response.V1beta1ListOrganizationsByCurrentUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[organizations](#organizations)** | list, tuple, | tuple, | | [optional] -**[joinableViaDomain](#joinableViaDomain)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# organizations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | - -# joinableViaDomain - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationsByUserResponse.md b/docs/models/V1beta1ListOrganizationsByUserResponse.md deleted file mode 100644 index b7fa1c7..0000000 --- a/docs/models/V1beta1ListOrganizationsByUserResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_organizations_by_user_response.V1beta1ListOrganizationsByUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[organizations](#organizations)** | list, tuple, | tuple, | | [optional] -**[joinableViaDomain](#joinableViaDomain)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# organizations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | - -# joinableViaDomain - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListOrganizationsResponse.md b/docs/models/V1beta1ListOrganizationsResponse.md deleted file mode 100644 index 6200cef..0000000 --- a/docs/models/V1beta1ListOrganizationsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_organizations_response.V1beta1ListOrganizationsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[organizations](#organizations)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# organizations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListPermissionsResponse.md b/docs/models/V1beta1ListPermissionsResponse.md deleted file mode 100644 index 231101b..0000000 --- a/docs/models/V1beta1ListPermissionsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_permissions_response.V1beta1ListPermissionsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[permissions](#permissions)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# permissions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Permission**](V1beta1Permission.md) | [**V1beta1Permission**](V1beta1Permission.md) | [**V1beta1Permission**](V1beta1Permission.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListPoliciesResponse.md b/docs/models/V1beta1ListPoliciesResponse.md deleted file mode 100644 index 45f61e9..0000000 --- a/docs/models/V1beta1ListPoliciesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_policies_response.V1beta1ListPoliciesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[policies](#policies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# policies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Policy**](V1beta1Policy.md) | [**V1beta1Policy**](V1beta1Policy.md) | [**V1beta1Policy**](V1beta1Policy.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListPreferencesResponse.md b/docs/models/V1beta1ListPreferencesResponse.md deleted file mode 100644 index 68f2445..0000000 --- a/docs/models/V1beta1ListPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_preferences_response.V1beta1ListPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectAdminsResponse.md b/docs/models/V1beta1ListProjectAdminsResponse.md deleted file mode 100644 index 5bfeccf..0000000 --- a/docs/models/V1beta1ListProjectAdminsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_project_admins_response.V1beta1ListProjectAdminsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectPreferencesResponse.md b/docs/models/V1beta1ListProjectPreferencesResponse.md deleted file mode 100644 index de53f88..0000000 --- a/docs/models/V1beta1ListProjectPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_project_preferences_response.V1beta1ListProjectPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectResourcesResponse.md b/docs/models/V1beta1ListProjectResourcesResponse.md deleted file mode 100644 index a4308ea..0000000 --- a/docs/models/V1beta1ListProjectResourcesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_project_resources_response.V1beta1ListProjectResourcesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[resources](#resources)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resources - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectServiceUsersResponse.md b/docs/models/V1beta1ListProjectServiceUsersResponse.md deleted file mode 100644 index 841c902..0000000 --- a/docs/models/V1beta1ListProjectServiceUsersResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_project_service_users_response.V1beta1ListProjectServiceUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[serviceusers](#serviceusers)** | list, tuple, | tuple, | | [optional] -**[rolePairs](#rolePairs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# serviceusers - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | - -# rolePairs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ListProjectServiceUsersResponseRolePair**](V1beta1ListProjectServiceUsersResponseRolePair.md) | [**V1beta1ListProjectServiceUsersResponseRolePair**](V1beta1ListProjectServiceUsersResponseRolePair.md) | [**V1beta1ListProjectServiceUsersResponseRolePair**](V1beta1ListProjectServiceUsersResponseRolePair.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectServiceUsersResponseRolePair.md b/docs/models/V1beta1ListProjectServiceUsersResponseRolePair.md deleted file mode 100644 index 924d0d8..0000000 --- a/docs/models/V1beta1ListProjectServiceUsersResponseRolePair.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_project_service_users_response_role_pair.V1beta1ListProjectServiceUsersResponseRolePair - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**serviceuserId** | str, | str, | | [optional] -**[roles](#roles)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# roles - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectUsersResponse.md b/docs/models/V1beta1ListProjectUsersResponse.md deleted file mode 100644 index e1b7513..0000000 --- a/docs/models/V1beta1ListProjectUsersResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_project_users_response.V1beta1ListProjectUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[users](#users)** | list, tuple, | tuple, | | [optional] -**[rolePairs](#rolePairs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -# rolePairs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ListProjectUsersResponseRolePair**](V1beta1ListProjectUsersResponseRolePair.md) | [**V1beta1ListProjectUsersResponseRolePair**](V1beta1ListProjectUsersResponseRolePair.md) | [**V1beta1ListProjectUsersResponseRolePair**](V1beta1ListProjectUsersResponseRolePair.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectUsersResponseRolePair.md b/docs/models/V1beta1ListProjectUsersResponseRolePair.md deleted file mode 100644 index 557cdcc..0000000 --- a/docs/models/V1beta1ListProjectUsersResponseRolePair.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_project_users_response_role_pair.V1beta1ListProjectUsersResponseRolePair - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**userId** | str, | str, | | [optional] -**[roles](#roles)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# roles - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectsByCurrentUserResponse.md b/docs/models/V1beta1ListProjectsByCurrentUserResponse.md deleted file mode 100644 index 71170fc..0000000 --- a/docs/models/V1beta1ListProjectsByCurrentUserResponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# frontier_api.model.v1beta1_list_projects_by_current_user_response.V1beta1ListProjectsByCurrentUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[projects](#projects)** | list, tuple, | tuple, | | [optional] -**[accessPairs](#accessPairs)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# projects - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | - -# accessPairs - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ListProjectsByCurrentUserResponseAccessPair**](V1beta1ListProjectsByCurrentUserResponseAccessPair.md) | [**V1beta1ListProjectsByCurrentUserResponseAccessPair**](V1beta1ListProjectsByCurrentUserResponseAccessPair.md) | [**V1beta1ListProjectsByCurrentUserResponseAccessPair**](V1beta1ListProjectsByCurrentUserResponseAccessPair.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectsByCurrentUserResponseAccessPair.md b/docs/models/V1beta1ListProjectsByCurrentUserResponseAccessPair.md deleted file mode 100644 index c9d7dc7..0000000 --- a/docs/models/V1beta1ListProjectsByCurrentUserResponseAccessPair.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_projects_by_current_user_response_access_pair.V1beta1ListProjectsByCurrentUserResponseAccessPair - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**projectId** | str, | str, | | [optional] -**[permissions](#permissions)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# permissions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectsByUserResponse.md b/docs/models/V1beta1ListProjectsByUserResponse.md deleted file mode 100644 index 0818e76..0000000 --- a/docs/models/V1beta1ListProjectsByUserResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_projects_by_user_response.V1beta1ListProjectsByUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[projects](#projects)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# projects - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListProjectsResponse.md b/docs/models/V1beta1ListProjectsResponse.md deleted file mode 100644 index 406b385..0000000 --- a/docs/models/V1beta1ListProjectsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_projects_response.V1beta1ListProjectsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[projects](#projects)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# projects - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListRelationsResponse.md b/docs/models/V1beta1ListRelationsResponse.md deleted file mode 100644 index 44c0ffb..0000000 --- a/docs/models/V1beta1ListRelationsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_relations_response.V1beta1ListRelationsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[relations](#relations)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# relations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Relation**](V1beta1Relation.md) | [**V1beta1Relation**](V1beta1Relation.md) | [**V1beta1Relation**](V1beta1Relation.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListResourcesResponse.md b/docs/models/V1beta1ListResourcesResponse.md deleted file mode 100644 index 43a666d..0000000 --- a/docs/models/V1beta1ListResourcesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_resources_response.V1beta1ListResourcesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[resources](#resources)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# resources - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListRolesResponse.md b/docs/models/V1beta1ListRolesResponse.md deleted file mode 100644 index 7ba08ea..0000000 --- a/docs/models/V1beta1ListRolesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_roles_response.V1beta1ListRolesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[roles](#roles)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# roles - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListServiceUserKeysResponse.md b/docs/models/V1beta1ListServiceUserKeysResponse.md deleted file mode 100644 index c797bbf..0000000 --- a/docs/models/V1beta1ListServiceUserKeysResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_service_user_keys_response.V1beta1ListServiceUserKeysResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[keys](#keys)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# keys - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ServiceUserKey**](V1beta1ServiceUserKey.md) | [**V1beta1ServiceUserKey**](V1beta1ServiceUserKey.md) | [**V1beta1ServiceUserKey**](V1beta1ServiceUserKey.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListServiceUserSecretsResponse.md b/docs/models/V1beta1ListServiceUserSecretsResponse.md deleted file mode 100644 index c39b71c..0000000 --- a/docs/models/V1beta1ListServiceUserSecretsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_service_user_secrets_response.V1beta1ListServiceUserSecretsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[secrets](#secrets)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# secrets - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1SecretCredential**](V1beta1SecretCredential.md) | [**V1beta1SecretCredential**](V1beta1SecretCredential.md) | [**V1beta1SecretCredential**](V1beta1SecretCredential.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListServiceUsersResponse.md b/docs/models/V1beta1ListServiceUsersResponse.md deleted file mode 100644 index c3e6bc4..0000000 --- a/docs/models/V1beta1ListServiceUsersResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_service_users_response.V1beta1ListServiceUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[serviceusers](#serviceusers)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# serviceusers - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | [**V1beta1ServiceUser**](V1beta1ServiceUser.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListUserGroupsResponse.md b/docs/models/V1beta1ListUserGroupsResponse.md deleted file mode 100644 index 3fcc37b..0000000 --- a/docs/models/V1beta1ListUserGroupsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_user_groups_response.V1beta1ListUserGroupsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[groups](#groups)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# groups - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListUserInvitationsResponse.md b/docs/models/V1beta1ListUserInvitationsResponse.md deleted file mode 100644 index e5492cb..0000000 --- a/docs/models/V1beta1ListUserInvitationsResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_user_invitations_response.V1beta1ListUserInvitationsResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[invitations](#invitations)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# invitations - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | [**V1beta1Invitation**](V1beta1Invitation.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListUserPreferencesResponse.md b/docs/models/V1beta1ListUserPreferencesResponse.md deleted file mode 100644 index b4d210b..0000000 --- a/docs/models/V1beta1ListUserPreferencesResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_list_user_preferences_response.V1beta1ListUserPreferencesResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[preferences](#preferences)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# preferences - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | [**V1beta1Preference**](V1beta1Preference.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ListUsersResponse.md b/docs/models/V1beta1ListUsersResponse.md deleted file mode 100644 index 341d6d9..0000000 --- a/docs/models/V1beta1ListUsersResponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_list_users_response.V1beta1ListUsersResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**count** | decimal.Decimal, int, | decimal.Decimal, | | [optional] value must be a 32 bit integer -**[users](#users)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# users - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1MetaSchema.md b/docs/models/V1beta1MetaSchema.md deleted file mode 100644 index 549d835..0000000 --- a/docs/models/V1beta1MetaSchema.md +++ /dev/null @@ -1,19 +0,0 @@ -# frontier_api.model.v1beta1_meta_schema.V1beta1MetaSchema - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | The unique metaschema uuid. | [optional] -**name** | str, | str, | | [optional] -**schema** | str, | str, | The metaschema json schema. | [optional] -**createdAt** | str, datetime, | str, | The time when the metaschema was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time when the metaschema was updated. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1MetaSchemaRequestBody.md b/docs/models/V1beta1MetaSchemaRequestBody.md deleted file mode 100644 index 838958f..0000000 --- a/docs/models/V1beta1MetaSchemaRequestBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_meta_schema_request_body.V1beta1MetaSchemaRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**schema** | str, | str, | The schema of the metaschema. The schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. | -**name** | str, | str, | The name of the metaschema. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores. | -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Namespace.md b/docs/models/V1beta1Namespace.md deleted file mode 100644 index 23e91f4..0000000 --- a/docs/models/V1beta1Namespace.md +++ /dev/null @@ -1,26 +0,0 @@ -# frontier_api.model.v1beta1_namespace.V1beta1Namespace - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the namespace was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the namespace was last updated. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Organization.md b/docs/models/V1beta1Organization.md deleted file mode 100644 index 5082f5f..0000000 --- a/docs/models/V1beta1Organization.md +++ /dev/null @@ -1,29 +0,0 @@ -# frontier_api.model.v1beta1_organization.V1beta1Organization - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the organization was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the organization was last updated. | [optional] value must conform to RFC-3339 date-time -**state** | str, | str, | The state of the organization (enabled or disabled). | [optional] -**avatar** | str, | str, | The base64 encoded image string of the organization avatar. Should be less than 2MB. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1OrganizationRequestBody.md b/docs/models/V1beta1OrganizationRequestBody.md deleted file mode 100644 index b769c99..0000000 --- a/docs/models/V1beta1OrganizationRequestBody.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_organization_request_body.V1beta1OrganizationRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/>*Example:*`\"frontier-org1-acme\"` | -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the organization. Can also be left empty.<br/> *Example*: `\"Acme Inc\"` | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields. <br/>*Example*:`{\"labels\": {\"key\": \"value\"}, \"description\": \"Organization description\"}` | [optional] -**avatar** | str, | str, | The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields.
*Example*:`{\"labels\": {\"key\": \"value\"}, \"description\": \"Organization description\"}` - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields. <br/>*Example*:`{\"labels\": {\"key\": \"value\"}, \"description\": \"Organization description\"}` | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Permission.md b/docs/models/V1beta1Permission.md deleted file mode 100644 index a5187c8..0000000 --- a/docs/models/V1beta1Permission.md +++ /dev/null @@ -1,29 +0,0 @@ -# frontier_api.model.v1beta1_permission.V1beta1Permission - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**createdAt** | str, datetime, | str, | The time the permission was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the permission was last updated. | [optional] value must conform to RFC-3339 date-time -**namespace** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**key** | str, | str, | Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1PermissionRequestBody.md b/docs/models/V1beta1PermissionRequestBody.md deleted file mode 100644 index bcd0dde..0000000 --- a/docs/models/V1beta1PermissionRequestBody.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_permission_request_body.V1beta1PermissionRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters. | [optional] -**namespace** | str, | str, | The namespace of the permission. The namespace should be in service/resource format.<br/>*Example:*`compute/guardian` | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | The metadata object for permissions that can hold key value pairs. | [optional] -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty. | [optional] -**key** | str, | str, | Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be `app` as it's reserved for core permissions. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -The metadata object for permissions that can hold key value pairs. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | The metadata object for permissions that can hold key value pairs. | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Policy.md b/docs/models/V1beta1Policy.md deleted file mode 100644 index 97e3804..0000000 --- a/docs/models/V1beta1Policy.md +++ /dev/null @@ -1,29 +0,0 @@ -# frontier_api.model.v1beta1_policy.V1beta1Policy - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**createdAt** | str, datetime, | str, | The time the policy was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the policy was last updated. | [optional] value must conform to RFC-3339 date-time -**roleId** | str, | str, | | [optional] -**resource** | str, | str, | | [optional] -**principal** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1PolicyRequestBody.md b/docs/models/V1beta1PolicyRequestBody.md deleted file mode 100644 index 8dfd3d7..0000000 --- a/docs/models/V1beta1PolicyRequestBody.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_policy_request_body.V1beta1PolicyRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**principal** | str, | str, | principal is the user or group to which policy is assigned. The principal id must be prefixed with its namespace id in this format `namespace:uuid`. The namespace can be `app/user`, `app/group` or `app/serviceuser` (coming up!) and uuid is the unique id of the principal. <br/> *Example:* `app/user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | -**resource** | str, | str, | The resource to which policy is assigned in this format `namespace:uuid`. <br/> *Example:* `app/guardian:70f69c3a-334b-4f25-90b8-4d4f3be6b8e2` | -**roleId** | str, | str, | unique id of the role to which policy is assigned | -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the policy. Can also be left empty. <br/> *Example:* `Policy title` | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{\"labels\": {\"key\": \"value\"}, \"description\": \"Policy description\"}` | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -Metadata object for policies that can hold key value pairs defined in Policy Metaschema.
*Example:* `{\"labels\": {\"key\": \"value\"}, \"description\": \"Policy description\"}` - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for policies that can hold key value pairs defined in Policy Metaschema.<br/> *Example:* `{\"labels\": {\"key\": \"value\"}, \"description\": \"Policy description\"}` | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Preference.md b/docs/models/V1beta1Preference.md deleted file mode 100644 index 6fc3160..0000000 --- a/docs/models/V1beta1Preference.md +++ /dev/null @@ -1,21 +0,0 @@ -# frontier_api.model.v1beta1_preference.V1beta1Preference - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**value** | str, | str, | | [optional] -**resourceId** | str, | str, | | [optional] -**resourceType** | str, | str, | | [optional] -**createdAt** | str, datetime, | str, | The time when the preference was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time when the preference was updated. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1PreferenceRequestBody.md b/docs/models/V1beta1PreferenceRequestBody.md deleted file mode 100644 index 12d9cda..0000000 --- a/docs/models/V1beta1PreferenceRequestBody.md +++ /dev/null @@ -1,16 +0,0 @@ -# frontier_api.model.v1beta1_preference_request_body.V1beta1PreferenceRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | [optional] -**value** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1PreferenceTrait.md b/docs/models/V1beta1PreferenceTrait.md deleted file mode 100644 index 202807f..0000000 --- a/docs/models/V1beta1PreferenceTrait.md +++ /dev/null @@ -1,30 +0,0 @@ -# frontier_api.model.v1beta1_preference_trait.V1beta1PreferenceTrait - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**resourceType** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**description** | str, | str, | | [optional] -**longDescription** | str, | str, | | [optional] -**heading** | str, | str, | | [optional] -**subHeading** | str, | str, | | [optional] -**breadcrumb** | str, | str, | | [optional] -**inputHints** | str, | str, | | [optional] -**text** | str, | str, | | [optional] -**textarea** | str, | str, | | [optional] -**select** | str, | str, | | [optional] -**combobox** | str, | str, | | [optional] -**checkbox** | str, | str, | | [optional] -**multiselect** | str, | str, | | [optional] -**number** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Project.md b/docs/models/V1beta1Project.md deleted file mode 100644 index 679612e..0000000 --- a/docs/models/V1beta1Project.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_project.V1beta1Project - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**orgId** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the project was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the project was last updated. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ProjectRequestBody.md b/docs/models/V1beta1ProjectRequestBody.md deleted file mode 100644 index 4fddbfc..0000000 --- a/docs/models/V1beta1ProjectRequestBody.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_project_request_body.V1beta1ProjectRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | The name of the project. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/> *Example:* `frontier-playground` | -**orgId** | str, | str, | unique id of the organization to which project belongs | -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the project. Can also be left empty. <br/> *Example:* `Frontier Playground` | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for projects that can hold key value pairs defined in Project Metaschema. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -Metadata object for projects that can hold key value pairs defined in Project Metaschema. - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for projects that can hold key value pairs defined in Project Metaschema. | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Relation.md b/docs/models/V1beta1Relation.md deleted file mode 100644 index fa6a0c2..0000000 --- a/docs/models/V1beta1Relation.md +++ /dev/null @@ -1,21 +0,0 @@ -# frontier_api.model.v1beta1_relation.V1beta1Relation - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**createdAt** | str, datetime, | str, | The time the relation was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the relation was last updated. | [optional] value must conform to RFC-3339 date-time -**subjectSubRelation** | str, | str, | | [optional] -**relation** | str, | str, | | [optional] -**object** | str, | str, | | [optional] -**subject** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1RelationRequestBody.md b/docs/models/V1beta1RelationRequestBody.md deleted file mode 100644 index 076d9b6..0000000 --- a/docs/models/V1beta1RelationRequestBody.md +++ /dev/null @@ -1,18 +0,0 @@ -# frontier_api.model.v1beta1_relation_request_body.V1beta1RelationRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**object** | str, | str, | | [optional] -**subject** | str, | str, | | [optional] -**relation** | str, | str, | | [optional] -**subjectSubRelation** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Resource.md b/docs/models/V1beta1Resource.md deleted file mode 100644 index e3dc3eb..0000000 --- a/docs/models/V1beta1Resource.md +++ /dev/null @@ -1,30 +0,0 @@ -# frontier_api.model.v1beta1_resource.V1beta1Resource - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | Name of the resource. Must be unique within the project. | [optional] -**createdAt** | str, datetime, | str, | The time the resource was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the resource was last updated. | [optional] value must conform to RFC-3339 date-time -**urn** | str, | str, | | [optional] -**projectId** | str, | str, | | [optional] -**namespace** | str, | str, | | [optional] -**principal** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ResourceRequestBody.md b/docs/models/V1beta1ResourceRequestBody.md deleted file mode 100644 index 741f3d8..0000000 --- a/docs/models/V1beta1ResourceRequestBody.md +++ /dev/null @@ -1,26 +0,0 @@ -# frontier_api.model.v1beta1_resource_request_body.V1beta1ResourceRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | The name of the resource. Must be unique within the project. <br/> *Example:* `my-resource` | -**namespace** | str, | str, | The namespace of the resource. The resource namespace are created when permissions for that resource is created in Frontier. If namespace doesn't exists the request will fail. <br/> *Example:* `compute/instance` | -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the resource. Can also be left empty. | [optional] -**principal** | str, | str, | UserID or ServiceUserID that should be marked as owner of the resource. If not provided, the current logged in user will be made the resource owner. <br/> *Example:* `user:92f69c3a-334b-4f25-90b8-4d4f3be6b825` | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1Role.md b/docs/models/V1beta1Role.md deleted file mode 100644 index b8b3d47..0000000 --- a/docs/models/V1beta1Role.md +++ /dev/null @@ -1,42 +0,0 @@ -# frontier_api.model.v1beta1_role.V1beta1Role - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | | [optional] -**[permissions](#permissions)** | list, tuple, | tuple, | | [optional] -**title** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the role was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the role was last updated. | [optional] value must conform to RFC-3339 date-time -**orgId** | str, | str, | | [optional] -**state** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# permissions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1RoleRequestBody.md b/docs/models/V1beta1RoleRequestBody.md deleted file mode 100644 index d18b91e..0000000 --- a/docs/models/V1beta1RoleRequestBody.md +++ /dev/null @@ -1,37 +0,0 @@ -# frontier_api.model.v1beta1_role_request_body.V1beta1RoleRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**name** | str, | str, | | [optional] -**[permissions](#permissions)** | list, tuple, | tuple, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**title** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# permissions - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -items | str, | str, | | - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1SecretCredential.md b/docs/models/V1beta1SecretCredential.md deleted file mode 100644 index 1bff7bd..0000000 --- a/docs/models/V1beta1SecretCredential.md +++ /dev/null @@ -1,18 +0,0 @@ -# frontier_api.model.v1beta1_secret_credential.V1beta1SecretCredential - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**secret** | str, | str, | | [optional] -**createdAt** | str, datetime, | str, | The time when the secret was created. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ServiceUser.md b/docs/models/V1beta1ServiceUser.md deleted file mode 100644 index 839790d..0000000 --- a/docs/models/V1beta1ServiceUser.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_service_user.V1beta1ServiceUser - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**title** | str, | str, | User friendly name of the service user. | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the user was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the user was last updated. | [optional] value must conform to RFC-3339 date-time -**state** | str, | str, | | [optional] -**orgId** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ServiceUserKey.md b/docs/models/V1beta1ServiceUserKey.md deleted file mode 100644 index f10f445..0000000 --- a/docs/models/V1beta1ServiceUserKey.md +++ /dev/null @@ -1,19 +0,0 @@ -# frontier_api.model.v1beta1_service_user_key.V1beta1ServiceUserKey - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**title** | str, | str, | | [optional] -**principalId** | str, | str, | | [optional] -**publicKey** | str, | str, | | [optional] -**createdAt** | str, datetime, | str, | The time when the secret was created. | [optional] value must conform to RFC-3339 date-time -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1ServiceUserRequestBody.md b/docs/models/V1beta1ServiceUserRequestBody.md deleted file mode 100644 index a4b031d..0000000 --- a/docs/models/V1beta1ServiceUserRequestBody.md +++ /dev/null @@ -1,23 +0,0 @@ -# frontier_api.model.v1beta1_service_user_request_body.V1beta1ServiceUserRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**title** | str, | str, | User friendly name of the service user. | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateCurrentUserResponse.md b/docs/models/V1beta1UpdateCurrentUserResponse.md deleted file mode 100644 index 610eb1c..0000000 --- a/docs/models/V1beta1UpdateCurrentUserResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_current_user_response.V1beta1UpdateCurrentUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateGroupResponse.md b/docs/models/V1beta1UpdateGroupResponse.md deleted file mode 100644 index 9f79d80..0000000 --- a/docs/models/V1beta1UpdateGroupResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_group_response.V1beta1UpdateGroupResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**group** | [**V1beta1Group**](V1beta1Group.md) | [**V1beta1Group**](V1beta1Group.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateMetaSchemaResponse.md b/docs/models/V1beta1UpdateMetaSchemaResponse.md deleted file mode 100644 index fd75718..0000000 --- a/docs/models/V1beta1UpdateMetaSchemaResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_meta_schema_response.V1beta1UpdateMetaSchemaResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**metaschema** | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | [**V1beta1MetaSchema**](V1beta1MetaSchema.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateOrganizationResponse.md b/docs/models/V1beta1UpdateOrganizationResponse.md deleted file mode 100644 index 12bf558..0000000 --- a/docs/models/V1beta1UpdateOrganizationResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_organization_response.V1beta1UpdateOrganizationResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**organization** | [**V1beta1Organization**](V1beta1Organization.md) | [**V1beta1Organization**](V1beta1Organization.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateOrganizationRoleResponse.md b/docs/models/V1beta1UpdateOrganizationRoleResponse.md deleted file mode 100644 index 5c29e80..0000000 --- a/docs/models/V1beta1UpdateOrganizationRoleResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_organization_role_response.V1beta1UpdateOrganizationRoleResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**role** | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdatePermissionResponse.md b/docs/models/V1beta1UpdatePermissionResponse.md deleted file mode 100644 index f61068f..0000000 --- a/docs/models/V1beta1UpdatePermissionResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_permission_response.V1beta1UpdatePermissionResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**permission** | [**V1beta1Permission**](V1beta1Permission.md) | [**V1beta1Permission**](V1beta1Permission.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdatePolicyResponse.md b/docs/models/V1beta1UpdatePolicyResponse.md deleted file mode 100644 index a96e6db..0000000 --- a/docs/models/V1beta1UpdatePolicyResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# frontier_api.model.v1beta1_update_policy_response.V1beta1UpdatePolicyResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**[policies](#policies)** | list, tuple, | tuple, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# policies - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -list, tuple, | tuple, | | - -### Tuple Items -Class Name | Input Type | Accessed Type | Description | Notes -------------- | ------------- | ------------- | ------------- | ------------- -[**V1beta1Policy**](V1beta1Policy.md) | [**V1beta1Policy**](V1beta1Policy.md) | [**V1beta1Policy**](V1beta1Policy.md) | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateProjectResourceResponse.md b/docs/models/V1beta1UpdateProjectResourceResponse.md deleted file mode 100644 index 51b148a..0000000 --- a/docs/models/V1beta1UpdateProjectResourceResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_project_resource_response.V1beta1UpdateProjectResourceResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**resource** | [**V1beta1Resource**](V1beta1Resource.md) | [**V1beta1Resource**](V1beta1Resource.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateProjectResponse.md b/docs/models/V1beta1UpdateProjectResponse.md deleted file mode 100644 index 0dcd976..0000000 --- a/docs/models/V1beta1UpdateProjectResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_project_response.V1beta1UpdateProjectResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**project** | [**V1beta1Project**](V1beta1Project.md) | [**V1beta1Project**](V1beta1Project.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateRoleResponse.md b/docs/models/V1beta1UpdateRoleResponse.md deleted file mode 100644 index b7fd1d2..0000000 --- a/docs/models/V1beta1UpdateRoleResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_role_response.V1beta1UpdateRoleResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**role** | [**V1beta1Role**](V1beta1Role.md) | [**V1beta1Role**](V1beta1Role.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UpdateUserResponse.md b/docs/models/V1beta1UpdateUserResponse.md deleted file mode 100644 index 59892c2..0000000 --- a/docs/models/V1beta1UpdateUserResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_update_user_response.V1beta1UpdateUserResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**V1beta1User**](V1beta1User.md) | [**V1beta1User**](V1beta1User.md) | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1User.md b/docs/models/V1beta1User.md deleted file mode 100644 index 49783c0..0000000 --- a/docs/models/V1beta1User.md +++ /dev/null @@ -1,30 +0,0 @@ -# frontier_api.model.v1beta1_user.V1beta1User - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**id** | str, | str, | | [optional] -**name** | str, | str, | Unique name of the user. | [optional] -**title** | str, | str, | Name of the user. | [optional] -**email** | str, | str, | | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | | [optional] -**createdAt** | str, datetime, | str, | The time the user was created. | [optional] value must conform to RFC-3339 date-time -**updatedAt** | str, datetime, | str, | The time the user was last updated. | [optional] value must conform to RFC-3339 date-time -**state** | str, | str, | The state of the user (enabled or disabled). | [optional] -**avatar** | str, | str, | The base64 encoded image string of the user avatar. Should be less than 2MB. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1UserRequestBody.md b/docs/models/V1beta1UserRequestBody.md deleted file mode 100644 index c2d25d4..0000000 --- a/docs/models/V1beta1UserRequestBody.md +++ /dev/null @@ -1,28 +0,0 @@ -# frontier_api.model.v1beta1_user_request_body.V1beta1UserRequestBody - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**email** | str, | str, | The email of the user. The email must be unique within the entire Frontier instance.<br/>*Example:*`\"john.doe@raystack.org\"` | -**name** | str, | str, | The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email. | [optional] -**[metadata](#metadata)** | dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object. <br/>*Example:*`{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}` | [optional] -**title** | str, | str, | The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty. <br/>*Example:*`\"John Doe\"` | [optional] -**avatar** | str, | str, | The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`. | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -# metadata - -Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object.
*Example:*`{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}` - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object. <br/>*Example:*`{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}` | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/docs/models/V1beta1VerifyOrganizationDomainResponse.md b/docs/models/V1beta1VerifyOrganizationDomainResponse.md deleted file mode 100644 index 2657d63..0000000 --- a/docs/models/V1beta1VerifyOrganizationDomainResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# frontier_api.model.v1beta1_verify_organization_domain_response.V1beta1VerifyOrganizationDomainResponse - -## Model Type Info -Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- -dict, frozendict.frozendict, | frozendict.frozendict, | | - -### Dictionary Keys -Key | Input Type | Accessed Type | Description | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**state** | str, | str, | | [optional] -**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - diff --git a/frontier_api/__init__.py b/frontier_api/__init__.py index 2d04575..feff2ef 100644 --- a/frontier_api/__init__.py +++ b/frontier_api/__init__.py @@ -5,25 +5,268 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + __version__ = "1.0.0" +# import apis into sdk package +from frontier_api.api.audit_log_api import AuditLogApi +from frontier_api.api.authn_api import AuthnApi +from frontier_api.api.authz_api import AuthzApi +from frontier_api.api.billing_api import BillingApi +from frontier_api.api.checkout_api import CheckoutApi +from frontier_api.api.entitlement_api import EntitlementApi +from frontier_api.api.feature_api import FeatureApi +from frontier_api.api.group_api import GroupApi +from frontier_api.api.meta_schema_api import MetaSchemaApi +from frontier_api.api.namespace_api import NamespaceApi +from frontier_api.api.organization_api import OrganizationApi +from frontier_api.api.permission_api import PermissionApi +from frontier_api.api.plan_api import PlanApi +from frontier_api.api.platform_api import PlatformApi +from frontier_api.api.policy_api import PolicyApi +from frontier_api.api.preference_api import PreferenceApi +from frontier_api.api.project_api import ProjectApi +from frontier_api.api.relation_api import RelationApi +from frontier_api.api.resource_api import ResourceApi +from frontier_api.api.role_api import RoleApi +from frontier_api.api.service_user_api import ServiceUserApi +from frontier_api.api.subscription_api import SubscriptionApi +from frontier_api.api.transaction_api import TransactionApi +from frontier_api.api.usage_api import UsageApi +from frontier_api.api.user_api import UserApi + # import ApiClient +from frontier_api.api_response import ApiResponse from frontier_api.api_client import ApiClient - -# import Configuration from frontier_api.configuration import Configuration - -# import exceptions from frontier_api.exceptions import OpenApiException -from frontier_api.exceptions import ApiAttributeError from frontier_api.exceptions import ApiTypeError from frontier_api.exceptions import ApiValueError from frontier_api.exceptions import ApiKeyError +from frontier_api.exceptions import ApiAttributeError from frontier_api.exceptions import ApiException + +# import models into sdk package +from frontier_api.models.billing_account_address import BillingAccountAddress +from frontier_api.models.billing_account_balance import BillingAccountBalance +from frontier_api.models.frontier_service_add_group_users_request import FrontierServiceAddGroupUsersRequest +from frontier_api.models.frontier_service_add_organization_users_request import FrontierServiceAddOrganizationUsersRequest +from frontier_api.models.frontier_service_authenticate2_request import FrontierServiceAuthenticate2Request +from frontier_api.models.frontier_service_check_feature_entitlement_request import FrontierServiceCheckFeatureEntitlementRequest +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest +from frontier_api.models.frontier_service_create_billing_usage_request import FrontierServiceCreateBillingUsageRequest +from frontier_api.models.frontier_service_create_checkout_request import FrontierServiceCreateCheckoutRequest +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.frontier_service_create_organization_audit_logs_request import FrontierServiceCreateOrganizationAuditLogsRequest +from frontier_api.models.frontier_service_create_organization_domain_request import FrontierServiceCreateOrganizationDomainRequest +from frontier_api.models.frontier_service_create_organization_invitation_request import FrontierServiceCreateOrganizationInvitationRequest +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest +from frontier_api.models.frontier_service_update_feature_request import FrontierServiceUpdateFeatureRequest +from frontier_api.models.frontier_service_update_plan_request import FrontierServiceUpdatePlanRequest +from frontier_api.models.frontier_service_update_subscription_request import FrontierServiceUpdateSubscriptionRequest +from frontier_api.models.protobuf_any import ProtobufAny +from frontier_api.models.protobuf_null_value import ProtobufNullValue +from frontier_api.models.rpc_status import RpcStatus +from frontier_api.models.v1beta1_add_platform_user_request import V1beta1AddPlatformUserRequest +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog +from frontier_api.models.v1beta1_audit_log_actor import V1beta1AuditLogActor +from frontier_api.models.v1beta1_audit_log_target import V1beta1AuditLogTarget +from frontier_api.models.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest +from frontier_api.models.v1beta1_auth_strategy import V1beta1AuthStrategy +from frontier_api.models.v1beta1_auth_token_request import V1beta1AuthTokenRequest +from frontier_api.models.v1beta1_auth_token_response import V1beta1AuthTokenResponse +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse +from frontier_api.models.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody +from frontier_api.models.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest +from frontier_api.models.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse +from frontier_api.models.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount +from frontier_api.models.v1beta1_billing_account_request_body import V1beta1BillingAccountRequestBody +from frontier_api.models.v1beta1_billing_transaction import V1beta1BillingTransaction +from frontier_api.models.v1beta1_check_feature_entitlement_response import V1beta1CheckFeatureEntitlementResponse +from frontier_api.models.v1beta1_check_federated_resource_permission_request import V1beta1CheckFederatedResourcePermissionRequest +from frontier_api.models.v1beta1_check_federated_resource_permission_response import V1beta1CheckFederatedResourcePermissionResponse +from frontier_api.models.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest +from frontier_api.models.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse +from frontier_api.models.v1beta1_checkout_feature_body import V1beta1CheckoutFeatureBody +from frontier_api.models.v1beta1_checkout_session import V1beta1CheckoutSession +from frontier_api.models.v1beta1_checkout_subscription_body import V1beta1CheckoutSubscriptionBody +from frontier_api.models.v1beta1_create_billing_account_response import V1beta1CreateBillingAccountResponse +from frontier_api.models.v1beta1_create_checkout_response import V1beta1CreateCheckoutResponse +from frontier_api.models.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest +from frontier_api.models.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse +from frontier_api.models.v1beta1_create_feature_request import V1beta1CreateFeatureRequest +from frontier_api.models.v1beta1_create_feature_response import V1beta1CreateFeatureResponse +from frontier_api.models.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse +from frontier_api.models.v1beta1_create_group_response import V1beta1CreateGroupResponse +from frontier_api.models.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse +from frontier_api.models.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse +from frontier_api.models.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse +from frontier_api.models.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse +from frontier_api.models.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse +from frontier_api.models.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse +from frontier_api.models.v1beta1_create_permission_request import V1beta1CreatePermissionRequest +from frontier_api.models.v1beta1_create_permission_response import V1beta1CreatePermissionResponse +from frontier_api.models.v1beta1_create_plan_request import V1beta1CreatePlanRequest +from frontier_api.models.v1beta1_create_plan_response import V1beta1CreatePlanResponse +from frontier_api.models.v1beta1_create_policy_response import V1beta1CreatePolicyResponse +from frontier_api.models.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest +from frontier_api.models.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse +from frontier_api.models.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse +from frontier_api.models.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse +from frontier_api.models.v1beta1_create_project_response import V1beta1CreateProjectResponse +from frontier_api.models.v1beta1_create_relation_response import V1beta1CreateRelationResponse +from frontier_api.models.v1beta1_create_role_response import V1beta1CreateRoleResponse +from frontier_api.models.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse +from frontier_api.models.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest +from frontier_api.models.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse +from frontier_api.models.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse +from frontier_api.models.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse +from frontier_api.models.v1beta1_create_user_response import V1beta1CreateUserResponse +from frontier_api.models.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse +from frontier_api.models.v1beta1_domain import V1beta1Domain +from frontier_api.models.v1beta1_feature import V1beta1Feature +from frontier_api.models.v1beta1_feature_request_body import V1beta1FeatureRequestBody +from frontier_api.models.v1beta1_get_billing_account_response import V1beta1GetBillingAccountResponse +from frontier_api.models.v1beta1_get_billing_balance_response import V1beta1GetBillingBalanceResponse +from frontier_api.models.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse +from frontier_api.models.v1beta1_get_feature_response import V1beta1GetFeatureResponse +from frontier_api.models.v1beta1_get_group_response import V1beta1GetGroupResponse +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse +from frontier_api.models.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse +from frontier_api.models.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse +from frontier_api.models.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse +from frontier_api.models.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse +from frontier_api.models.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse +from frontier_api.models.v1beta1_get_organization_response import V1beta1GetOrganizationResponse +from frontier_api.models.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse +from frontier_api.models.v1beta1_get_permission_response import V1beta1GetPermissionResponse +from frontier_api.models.v1beta1_get_plan_response import V1beta1GetPlanResponse +from frontier_api.models.v1beta1_get_policy_response import V1beta1GetPolicyResponse +from frontier_api.models.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse +from frontier_api.models.v1beta1_get_project_response import V1beta1GetProjectResponse +from frontier_api.models.v1beta1_get_relation_response import V1beta1GetRelationResponse +from frontier_api.models.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse +from frontier_api.models.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse +from frontier_api.models.v1beta1_get_subscription_response import V1beta1GetSubscriptionResponse +from frontier_api.models.v1beta1_get_user_response import V1beta1GetUserResponse +from frontier_api.models.v1beta1_group import V1beta1Group +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +from frontier_api.models.v1beta1_json_web_key import V1beta1JSONWebKey +from frontier_api.models.v1beta1_key_credential import V1beta1KeyCredential +from frontier_api.models.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse +from frontier_api.models.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse +from frontier_api.models.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse +from frontier_api.models.v1beta1_list_billing_accounts_response import V1beta1ListBillingAccountsResponse +from frontier_api.models.v1beta1_list_billing_transactions_response import V1beta1ListBillingTransactionsResponse +from frontier_api.models.v1beta1_list_checkouts_response import V1beta1ListCheckoutsResponse +from frontier_api.models.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse +from frontier_api.models.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair +from frontier_api.models.v1beta1_list_current_user_invitations_response import V1beta1ListCurrentUserInvitationsResponse +from frontier_api.models.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse +from frontier_api.models.v1beta1_list_features_response import V1beta1ListFeaturesResponse +from frontier_api.models.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse +from frontier_api.models.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse +from frontier_api.models.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair +from frontier_api.models.v1beta1_list_groups_response import V1beta1ListGroupsResponse +from frontier_api.models.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse +from frontier_api.models.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse +from frontier_api.models.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse +from frontier_api.models.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse +from frontier_api.models.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse +from frontier_api.models.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse +from frontier_api.models.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse +from frontier_api.models.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse +from frontier_api.models.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse +from frontier_api.models.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse +from frontier_api.models.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse +from frontier_api.models.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse +from frontier_api.models.v1beta1_list_organization_users_response_role_pair import V1beta1ListOrganizationUsersResponseRolePair +from frontier_api.models.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse +from frontier_api.models.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse +from frontier_api.models.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse +from frontier_api.models.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse +from frontier_api.models.v1beta1_list_plans_response import V1beta1ListPlansResponse +from frontier_api.models.v1beta1_list_policies_response import V1beta1ListPoliciesResponse +from frontier_api.models.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse +from frontier_api.models.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse +from frontier_api.models.v1beta1_list_project_groups_response import V1beta1ListProjectGroupsResponse +from frontier_api.models.v1beta1_list_project_groups_response_role_pair import V1beta1ListProjectGroupsResponseRolePair +from frontier_api.models.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse +from frontier_api.models.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse +from frontier_api.models.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse +from frontier_api.models.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair +from frontier_api.models.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse +from frontier_api.models.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair +from frontier_api.models.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse +from frontier_api.models.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair +from frontier_api.models.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse +from frontier_api.models.v1beta1_list_projects_response import V1beta1ListProjectsResponse +from frontier_api.models.v1beta1_list_relations_response import V1beta1ListRelationsResponse +from frontier_api.models.v1beta1_list_resources_response import V1beta1ListResourcesResponse +from frontier_api.models.v1beta1_list_roles_response import V1beta1ListRolesResponse +from frontier_api.models.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse +from frontier_api.models.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse +from frontier_api.models.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse +from frontier_api.models.v1beta1_list_subscriptions_response import V1beta1ListSubscriptionsResponse +from frontier_api.models.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse +from frontier_api.models.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse +from frontier_api.models.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse +from frontier_api.models.v1beta1_list_users_response import V1beta1ListUsersResponse +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody +from frontier_api.models.v1beta1_namespace import V1beta1Namespace +from frontier_api.models.v1beta1_organization import V1beta1Organization +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody +from frontier_api.models.v1beta1_permission import V1beta1Permission +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody +from frontier_api.models.v1beta1_plan import V1beta1Plan +from frontier_api.models.v1beta1_plan_request_body import V1beta1PlanRequestBody +from frontier_api.models.v1beta1_policy import V1beta1Policy +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody +from frontier_api.models.v1beta1_preference import V1beta1Preference +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody +from frontier_api.models.v1beta1_preference_trait import V1beta1PreferenceTrait +from frontier_api.models.v1beta1_price import V1beta1Price +from frontier_api.models.v1beta1_project import V1beta1Project +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody +from frontier_api.models.v1beta1_relation import V1beta1Relation +from frontier_api.models.v1beta1_relation_request_body import V1beta1RelationRequestBody +from frontier_api.models.v1beta1_resource import V1beta1Resource +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody +from frontier_api.models.v1beta1_role import V1beta1Role +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.models.v1beta1_secret_credential import V1beta1SecretCredential +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +from frontier_api.models.v1beta1_service_user_key import V1beta1ServiceUserKey +from frontier_api.models.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody +from frontier_api.models.v1beta1_subscription import V1beta1Subscription +from frontier_api.models.v1beta1_update_billing_account_response import V1beta1UpdateBillingAccountResponse +from frontier_api.models.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse +from frontier_api.models.v1beta1_update_feature_response import V1beta1UpdateFeatureResponse +from frontier_api.models.v1beta1_update_group_response import V1beta1UpdateGroupResponse +from frontier_api.models.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse +from frontier_api.models.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse +from frontier_api.models.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse +from frontier_api.models.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse +from frontier_api.models.v1beta1_update_plan_response import V1beta1UpdatePlanResponse +from frontier_api.models.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse +from frontier_api.models.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse +from frontier_api.models.v1beta1_update_project_response import V1beta1UpdateProjectResponse +from frontier_api.models.v1beta1_update_role_response import V1beta1UpdateRoleResponse +from frontier_api.models.v1beta1_update_subscription_response import V1beta1UpdateSubscriptionResponse +from frontier_api.models.v1beta1_update_user_response import V1beta1UpdateUserResponse +from frontier_api.models.v1beta1_usage import V1beta1Usage +from frontier_api.models.v1beta1_user import V1beta1User +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody +from frontier_api.models.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse diff --git a/frontier_api/api/__init__.py b/frontier_api/api/__init__.py new file mode 100644 index 0000000..2145043 --- /dev/null +++ b/frontier_api/api/__init__.py @@ -0,0 +1,29 @@ +# flake8: noqa + +# import apis into api package +from frontier_api.api.audit_log_api import AuditLogApi +from frontier_api.api.authn_api import AuthnApi +from frontier_api.api.authz_api import AuthzApi +from frontier_api.api.billing_api import BillingApi +from frontier_api.api.checkout_api import CheckoutApi +from frontier_api.api.entitlement_api import EntitlementApi +from frontier_api.api.feature_api import FeatureApi +from frontier_api.api.group_api import GroupApi +from frontier_api.api.meta_schema_api import MetaSchemaApi +from frontier_api.api.namespace_api import NamespaceApi +from frontier_api.api.organization_api import OrganizationApi +from frontier_api.api.permission_api import PermissionApi +from frontier_api.api.plan_api import PlanApi +from frontier_api.api.platform_api import PlatformApi +from frontier_api.api.policy_api import PolicyApi +from frontier_api.api.preference_api import PreferenceApi +from frontier_api.api.project_api import ProjectApi +from frontier_api.api.relation_api import RelationApi +from frontier_api.api.resource_api import ResourceApi +from frontier_api.api.role_api import RoleApi +from frontier_api.api.service_user_api import ServiceUserApi +from frontier_api.api.subscription_api import SubscriptionApi +from frontier_api.api.transaction_api import TransactionApi +from frontier_api.api.usage_api import UsageApi +from frontier_api.api.user_api import UserApi + diff --git a/frontier_api/api/audit_log_api.py b/frontier_api/api/audit_log_api.py new file mode 100644 index 0000000..0749e99 --- /dev/null +++ b/frontier_api/api/audit_log_api.py @@ -0,0 +1,1023 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from datetime import datetime + +from pydantic import StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.frontier_service_create_organization_audit_logs_request import FrontierServiceCreateOrganizationAuditLogsRequest +from frontier_api.models.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse +from frontier_api.models.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class AuditLogApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_organization_audit_logs( + self, + org_id: StrictStr, + body: FrontierServiceCreateOrganizationAuditLogsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Create audit log + + Create new audit logs in a batch. + + :param org_id: (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationAuditLogsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_audit_logs_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_organization_audit_logs_with_http_info( + self, + org_id: StrictStr, + body: FrontierServiceCreateOrganizationAuditLogsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Create audit log + + Create new audit logs in a batch. + + :param org_id: (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationAuditLogsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_audit_logs_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_organization_audit_logs_without_preload_content( + self, + org_id: StrictStr, + body: FrontierServiceCreateOrganizationAuditLogsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create audit log + + Create new audit logs in a batch. + + :param org_id: (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationAuditLogsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_audit_logs_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_organization_audit_logs_serialize( + self, + org_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organization/{orgId}/auditlogs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_organization_audit_log( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetOrganizationAuditLogResponse: + """Get audit log + + Get an audit log by ID. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_audit_log_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationAuditLogResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_organization_audit_log_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetOrganizationAuditLogResponse]: + """Get audit log + + Get an audit log by ID. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_audit_log_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationAuditLogResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_organization_audit_log_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get audit log + + Get an audit log by ID. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_audit_log_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationAuditLogResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_organization_audit_log_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organization/{orgId}/auditlogs/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_audit_logs( + self, + org_id: StrictStr, + source: Optional[StrictStr] = None, + action: Optional[StrictStr] = None, + start_time: Annotated[Optional[datetime], Field(description="start_time and end_time are inclusive")] = None, + end_time: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationAuditLogsResponse: + """List audit logs + + Returns a list of audit logs of an organization in Frontier. + + :param org_id: (required) + :type org_id: str + :param source: + :type source: str + :param action: + :type action: str + :param start_time: start_time and end_time are inclusive + :type start_time: datetime + :param end_time: + :type end_time: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_audit_logs_serialize( + org_id=org_id, + source=source, + action=action, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationAuditLogsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_audit_logs_with_http_info( + self, + org_id: StrictStr, + source: Optional[StrictStr] = None, + action: Optional[StrictStr] = None, + start_time: Annotated[Optional[datetime], Field(description="start_time and end_time are inclusive")] = None, + end_time: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationAuditLogsResponse]: + """List audit logs + + Returns a list of audit logs of an organization in Frontier. + + :param org_id: (required) + :type org_id: str + :param source: + :type source: str + :param action: + :type action: str + :param start_time: start_time and end_time are inclusive + :type start_time: datetime + :param end_time: + :type end_time: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_audit_logs_serialize( + org_id=org_id, + source=source, + action=action, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationAuditLogsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_audit_logs_without_preload_content( + self, + org_id: StrictStr, + source: Optional[StrictStr] = None, + action: Optional[StrictStr] = None, + start_time: Annotated[Optional[datetime], Field(description="start_time and end_time are inclusive")] = None, + end_time: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List audit logs + + Returns a list of audit logs of an organization in Frontier. + + :param org_id: (required) + :type org_id: str + :param source: + :type source: str + :param action: + :type action: str + :param start_time: start_time and end_time are inclusive + :type start_time: datetime + :param end_time: + :type end_time: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_audit_logs_serialize( + org_id=org_id, + source=source, + action=action, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationAuditLogsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_audit_logs_serialize( + self, + org_id, + source, + action, + start_time, + end_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + if source is not None: + + _query_params.append(('source', source)) + + if action is not None: + + _query_params.append(('action', action)) + + if start_time is not None: + if isinstance(start_time, datetime): + _query_params.append( + ( + 'startTime', + start_time.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('startTime', start_time)) + + if end_time is not None: + if isinstance(end_time, datetime): + _query_params.append( + ( + 'endTime', + end_time.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('endTime', end_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organization/{orgId}/auditlogs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/authn_api.py b/frontier_api/api/authn_api.py new file mode 100644 index 0000000..31c264b --- /dev/null +++ b/frontier_api/api/authn_api.py @@ -0,0 +1,2419 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictBool, StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.frontier_service_authenticate2_request import FrontierServiceAuthenticate2Request +from frontier_api.models.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest +from frontier_api.models.v1beta1_auth_token_request import V1beta1AuthTokenRequest +from frontier_api.models.v1beta1_auth_token_response import V1beta1AuthTokenResponse +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse +from frontier_api.models.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class AuthnApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_auth_callback( + self, + strategy_name: Annotated[Optional[StrictStr], Field(description="strategy_name will not be set for oidc but can be utilized for methods like email magic links")] = None, + state: Annotated[Optional[StrictStr], Field(description="for oidc & magic links")] = None, + code: Optional[StrictStr] = None, + state_options: Annotated[Optional[Dict[str, Any]], Field(description="state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Callback from a strategy + + Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + + :param strategy_name: strategy_name will not be set for oidc but can be utilized for methods like email magic links + :type strategy_name: str + :param state: for oidc & magic links + :type state: str + :param code: + :type code: str + :param state_options: state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key + :type state_options: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_callback_serialize( + strategy_name=strategy_name, + state=state, + code=code, + state_options=state_options, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_auth_callback_with_http_info( + self, + strategy_name: Annotated[Optional[StrictStr], Field(description="strategy_name will not be set for oidc but can be utilized for methods like email magic links")] = None, + state: Annotated[Optional[StrictStr], Field(description="for oidc & magic links")] = None, + code: Optional[StrictStr] = None, + state_options: Annotated[Optional[Dict[str, Any]], Field(description="state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Callback from a strategy + + Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + + :param strategy_name: strategy_name will not be set for oidc but can be utilized for methods like email magic links + :type strategy_name: str + :param state: for oidc & magic links + :type state: str + :param code: + :type code: str + :param state_options: state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key + :type state_options: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_callback_serialize( + strategy_name=strategy_name, + state=state, + code=code, + state_options=state_options, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_auth_callback_without_preload_content( + self, + strategy_name: Annotated[Optional[StrictStr], Field(description="strategy_name will not be set for oidc but can be utilized for methods like email magic links")] = None, + state: Annotated[Optional[StrictStr], Field(description="for oidc & magic links")] = None, + code: Optional[StrictStr] = None, + state_options: Annotated[Optional[Dict[str, Any]], Field(description="state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Callback from a strategy + + Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + + :param strategy_name: strategy_name will not be set for oidc but can be utilized for methods like email magic links + :type strategy_name: str + :param state: for oidc & magic links + :type state: str + :param code: + :type code: str + :param state_options: state_options has additional configurations for the authentication flow at hand for example, in case of passkey, it has challenge and public key + :type state_options: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_callback_serialize( + strategy_name=strategy_name, + state=state, + code=code, + state_options=state_options, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_auth_callback_serialize( + self, + strategy_name, + state, + code, + state_options, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if strategy_name is not None: + + _query_params.append(('strategyName', strategy_name)) + + if state is not None: + + _query_params.append(('state', state)) + + if code is not None: + + _query_params.append(('code', code)) + + if state_options is not None: + + _query_params.append(('stateOptions', state_options)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/auth/callback', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_auth_callback2( + self, + body: V1beta1AuthCallbackRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Callback from a strategy + + Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + + :param body: (required) + :type body: V1beta1AuthCallbackRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_callback2_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_auth_callback2_with_http_info( + self, + body: V1beta1AuthCallbackRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Callback from a strategy + + Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + + :param body: (required) + :type body: V1beta1AuthCallbackRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_callback2_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_auth_callback2_without_preload_content( + self, + body: V1beta1AuthCallbackRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Callback from a strategy + + Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url. + + :param body: (required) + :type body: V1beta1AuthCallbackRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_callback2_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_auth_callback2_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/auth/callback', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_auth_logout( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Logout from a strategy + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_logout_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_auth_logout_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Logout from a strategy + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_logout_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_auth_logout_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Logout from a strategy + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_logout_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_auth_logout_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/auth/logout', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_auth_logout2( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Logout from a strategy + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_logout2_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_auth_logout2_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Logout from a strategy + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_logout2_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_auth_logout2_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Logout from a strategy + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_logout2_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_auth_logout2_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/auth/logout', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_auth_token( + self, + body: V1beta1AuthTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1AuthTokenResponse: + """Generate access token by given credentials + + Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources. + + :param body: (required) + :type body: V1beta1AuthTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_token_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthTokenResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_auth_token_with_http_info( + self, + body: V1beta1AuthTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1AuthTokenResponse]: + """Generate access token by given credentials + + Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources. + + :param body: (required) + :type body: V1beta1AuthTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_token_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthTokenResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_auth_token_without_preload_content( + self, + body: V1beta1AuthTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Generate access token by given credentials + + Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources. + + :param body: (required) + :type body: V1beta1AuthTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_auth_token_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthTokenResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_auth_token_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/auth/token', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_authenticate( + self, + strategy_name: Annotated[StrictStr, Field(description="Name of the strategy to use for authentication.
*Example:* `google`")], + redirect_onstart: Annotated[Optional[StrictBool], Field(description="by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow")] = None, + return_to: Annotated[Optional[StrictStr], Field(description="by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"`")] = None, + email: Annotated[Optional[StrictStr], Field(description="email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org`")] = None, + callback_url: Annotated[Optional[StrictStr], Field(description="callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback`")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1AuthenticateResponse: + """Authenticate with a strategy + + Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + + :param strategy_name: Name of the strategy to use for authentication.
*Example:* `google` (required) + :type strategy_name: str + :param redirect_onstart: by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow + :type redirect_onstart: bool + :param return_to: by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"` + :type return_to: str + :param email: email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org` + :type email: str + :param callback_url: callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback` + :type callback_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_authenticate_serialize( + strategy_name=strategy_name, + redirect_onstart=redirect_onstart, + return_to=return_to, + email=email, + callback_url=callback_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthenticateResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_authenticate_with_http_info( + self, + strategy_name: Annotated[StrictStr, Field(description="Name of the strategy to use for authentication.
*Example:* `google`")], + redirect_onstart: Annotated[Optional[StrictBool], Field(description="by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow")] = None, + return_to: Annotated[Optional[StrictStr], Field(description="by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"`")] = None, + email: Annotated[Optional[StrictStr], Field(description="email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org`")] = None, + callback_url: Annotated[Optional[StrictStr], Field(description="callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback`")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1AuthenticateResponse]: + """Authenticate with a strategy + + Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + + :param strategy_name: Name of the strategy to use for authentication.
*Example:* `google` (required) + :type strategy_name: str + :param redirect_onstart: by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow + :type redirect_onstart: bool + :param return_to: by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"` + :type return_to: str + :param email: email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org` + :type email: str + :param callback_url: callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback` + :type callback_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_authenticate_serialize( + strategy_name=strategy_name, + redirect_onstart=redirect_onstart, + return_to=return_to, + email=email, + callback_url=callback_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthenticateResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_authenticate_without_preload_content( + self, + strategy_name: Annotated[StrictStr, Field(description="Name of the strategy to use for authentication.
*Example:* `google`")], + redirect_onstart: Annotated[Optional[StrictBool], Field(description="by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow")] = None, + return_to: Annotated[Optional[StrictStr], Field(description="by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"`")] = None, + email: Annotated[Optional[StrictStr], Field(description="email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org`")] = None, + callback_url: Annotated[Optional[StrictStr], Field(description="callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback`")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Authenticate with a strategy + + Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + + :param strategy_name: Name of the strategy to use for authentication.
*Example:* `google` (required) + :type strategy_name: str + :param redirect_onstart: by default, location redirect header for starting authentication flow if applicable will be skipped unless this is set to true, useful in browser, same value will also be returned as endpoint in response anyway If set to true, location header will be set for redirect to start auth flow + :type redirect_onstart: bool + :param return_to: by default, after successful authentication(flow completes) no operation will be performed, to apply redirection in case of browsers, provide an url that will be used after authentication where users are sent from frontier. return_to should be one of the allowed urls configured at instance level URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"` + :type return_to: str + :param email: email of the user for magic links Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org` + :type email: str + :param callback_url: callback_url will be used by strategy as last step to finish authentication flow in OIDC this host will receive \"state\" and \"code\" query params, in case of magic links this will be the url where user is redirected after clicking on magic link. For most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint. callback_url should be one of the allowed urls configured at instance level Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback` + :type callback_url: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_authenticate_serialize( + strategy_name=strategy_name, + redirect_onstart=redirect_onstart, + return_to=return_to, + email=email, + callback_url=callback_url, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthenticateResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_authenticate_serialize( + self, + strategy_name, + redirect_onstart, + return_to, + email, + callback_url, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if strategy_name is not None: + _path_params['strategyName'] = strategy_name + # process the query parameters + if redirect_onstart is not None: + + _query_params.append(('redirectOnstart', redirect_onstart)) + + if return_to is not None: + + _query_params.append(('returnTo', return_to)) + + if email is not None: + + _query_params.append(('email', email)) + + if callback_url is not None: + + _query_params.append(('callbackUrl', callback_url)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/auth/register/{strategyName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_authenticate2( + self, + strategy_name: Annotated[StrictStr, Field(description="Name of the strategy to use for authentication.
*Example:* `google`")], + body: FrontierServiceAuthenticate2Request, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1AuthenticateResponse: + """Authenticate with a strategy + + Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + + :param strategy_name: Name of the strategy to use for authentication.
*Example:* `google` (required) + :type strategy_name: str + :param body: (required) + :type body: FrontierServiceAuthenticate2Request + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_authenticate2_serialize( + strategy_name=strategy_name, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthenticateResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_authenticate2_with_http_info( + self, + strategy_name: Annotated[StrictStr, Field(description="Name of the strategy to use for authentication.
*Example:* `google`")], + body: FrontierServiceAuthenticate2Request, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1AuthenticateResponse]: + """Authenticate with a strategy + + Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + + :param strategy_name: Name of the strategy to use for authentication.
*Example:* `google` (required) + :type strategy_name: str + :param body: (required) + :type body: FrontierServiceAuthenticate2Request + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_authenticate2_serialize( + strategy_name=strategy_name, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthenticateResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_authenticate2_without_preload_content( + self, + strategy_name: Annotated[StrictStr, Field(description="Name of the strategy to use for authentication.
*Example:* `google`")], + body: FrontierServiceAuthenticate2Request, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Authenticate with a strategy + + Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication. + + :param strategy_name: Name of the strategy to use for authentication.
*Example:* `google` (required) + :type strategy_name: str + :param body: (required) + :type body: FrontierServiceAuthenticate2Request + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_authenticate2_serialize( + strategy_name=strategy_name, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1AuthenticateResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_authenticate2_serialize( + self, + strategy_name, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if strategy_name is not None: + _path_params['strategyName'] = strategy_name + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/auth/register/{strategyName}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_auth_strategies( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListAuthStrategiesResponse: + """List authentication strategies + + Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_auth_strategies_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAuthStrategiesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_auth_strategies_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListAuthStrategiesResponse]: + """List authentication strategies + + Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_auth_strategies_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAuthStrategiesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_auth_strategies_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List authentication strategies + + Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_auth_strategies_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAuthStrategiesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_auth_strategies_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/auth', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/authz_api.py b/frontier_api/api/authz_api.py new file mode 100644 index 0000000..691ea61 --- /dev/null +++ b/frontier_api/api/authz_api.py @@ -0,0 +1,1453 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from frontier_api.models.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest +from frontier_api.models.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse +from frontier_api.models.v1beta1_check_federated_resource_permission_request import V1beta1CheckFederatedResourcePermissionRequest +from frontier_api.models.v1beta1_check_federated_resource_permission_response import V1beta1CheckFederatedResourcePermissionResponse +from frontier_api.models.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest +from frontier_api.models.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class AuthzApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_check_federated_resource_permission( + self, + body: V1beta1CheckFederatedResourcePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CheckFederatedResourcePermissionResponse: + """Check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user, group or a service account. + + :param body: (required) + :type body: V1beta1CheckFederatedResourcePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_check_federated_resource_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckFederatedResourcePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_check_federated_resource_permission_with_http_info( + self, + body: V1beta1CheckFederatedResourcePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CheckFederatedResourcePermissionResponse]: + """Check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user, group or a service account. + + :param body: (required) + :type body: V1beta1CheckFederatedResourcePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_check_federated_resource_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckFederatedResourcePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_check_federated_resource_permission_without_preload_content( + self, + body: V1beta1CheckFederatedResourcePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user, group or a service account. + + :param body: (required) + :type body: V1beta1CheckFederatedResourcePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_check_federated_resource_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckFederatedResourcePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_check_federated_resource_permission_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/admin/check', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_batch_check_permission( + self, + body: V1beta1BatchCheckPermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1BatchCheckPermissionResponse: + """Batch check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts). + + :param body: (required) + :type body: V1beta1BatchCheckPermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_batch_check_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1BatchCheckPermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_batch_check_permission_with_http_info( + self, + body: V1beta1BatchCheckPermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1BatchCheckPermissionResponse]: + """Batch check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts). + + :param body: (required) + :type body: V1beta1BatchCheckPermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_batch_check_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1BatchCheckPermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_batch_check_permission_without_preload_content( + self, + body: V1beta1BatchCheckPermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Batch check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts). + + :param body: (required) + :type body: V1beta1BatchCheckPermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_batch_check_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1BatchCheckPermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_batch_check_permission_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/batchcheck', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_check_resource_permission( + self, + body: V1beta1CheckResourcePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CheckResourcePermissionResponse: + """Check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account. Frontier will extract principal from the current logged in session cookie (if any), or the client id and secret (in case of service users) or the access token. + + :param body: (required) + :type body: V1beta1CheckResourcePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_check_resource_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckResourcePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_check_resource_permission_with_http_info( + self, + body: V1beta1CheckResourcePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CheckResourcePermissionResponse]: + """Check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account. Frontier will extract principal from the current logged in session cookie (if any), or the client id and secret (in case of service users) or the access token. + + :param body: (required) + :type body: V1beta1CheckResourcePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_check_resource_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckResourcePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_check_resource_permission_without_preload_content( + self, + body: V1beta1CheckResourcePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check + + Returns true if a principal has required permissions to access a resource and false otherwise.
Note the principal can be a user or a service account. Frontier will extract principal from the current logged in session cookie (if any), or the client id and secret (in case of service users) or the access token. + + :param body: (required) + :type body: V1beta1CheckResourcePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_check_resource_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckResourcePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_check_resource_permission_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/check', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_jwks( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetJWKsResponse: + """Get well known JWKs + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_jwks_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetJWKsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_jwks_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetJWKsResponse]: + """Get well known JWKs + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_jwks_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetJWKsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_jwks_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get well known JWKs + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_jwks_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetJWKsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_jwks_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/auth/jwks', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_jwks2( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetJWKsResponse: + """Get well known JWKs + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_jwks2_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetJWKsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_jwks2_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetJWKsResponse]: + """Get well known JWKs + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_jwks2_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetJWKsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_jwks2_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get well known JWKs + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_jwks2_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetJWKsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_jwks2_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/.well-known/jwks.json', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/billing_api.py b/frontier_api/api/billing_api.py new file mode 100644 index 0000000..a24676a --- /dev/null +++ b/frontier_api/api/billing_api.py @@ -0,0 +1,1851 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Union + +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest +from frontier_api.models.v1beta1_create_billing_account_response import V1beta1CreateBillingAccountResponse +from frontier_api.models.v1beta1_get_billing_account_response import V1beta1GetBillingAccountResponse +from frontier_api.models.v1beta1_get_billing_balance_response import V1beta1GetBillingBalanceResponse +from frontier_api.models.v1beta1_list_billing_accounts_response import V1beta1ListBillingAccountsResponse +from frontier_api.models.v1beta1_update_billing_account_response import V1beta1UpdateBillingAccountResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class BillingApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_billing_account( + self, + org_id: Annotated[StrictStr, Field(description="ID of the organization to create the billing account for")], + body: FrontierServiceCreateBillingAccountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateBillingAccountResponse: + """Create billing account + + Create a new billing account for an organization. + + :param org_id: ID of the organization to create the billing account for (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateBillingAccountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_billing_account_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_billing_account_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="ID of the organization to create the billing account for")], + body: FrontierServiceCreateBillingAccountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateBillingAccountResponse]: + """Create billing account + + Create a new billing account for an organization. + + :param org_id: ID of the organization to create the billing account for (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateBillingAccountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_billing_account_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_billing_account_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="ID of the organization to create the billing account for")], + body: FrontierServiceCreateBillingAccountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create billing account + + Create a new billing account for an organization. + + :param org_id: ID of the organization to create the billing account for (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateBillingAccountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_billing_account_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_billing_account_serialize( + self, + org_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/billing', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_billing_account( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete billing account + + Delete a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to delete (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_billing_account_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_billing_account_with_http_info( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete billing account + + Delete a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to delete (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_billing_account_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_billing_account_without_preload_content( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to delete")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete billing account + + Delete a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to delete (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_billing_account_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_billing_account_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{orgId}/billing/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_billing_account( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetBillingAccountResponse: + """Get billing account + + Get a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_billing_account_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_billing_account_with_http_info( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetBillingAccountResponse]: + """Get billing account + + Get a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_billing_account_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_billing_account_without_preload_content( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get billing account + + Get a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_billing_account_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_billing_account_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/billing/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_billing_balance( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to get the balance for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetBillingBalanceResponse: + """Get billing balance + + Get the balance of a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to get the balance for (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_billing_balance_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetBillingBalanceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_billing_balance_with_http_info( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to get the balance for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetBillingBalanceResponse]: + """Get billing balance + + Get the balance of a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to get the balance for (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_billing_balance_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetBillingBalanceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_billing_balance_without_preload_content( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to get the balance for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get billing balance + + Get the balance of a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to get the balance for (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_billing_balance_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetBillingBalanceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_billing_balance_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/billing/{id}/balance', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_billing_accounts( + self, + org_id: Annotated[StrictStr, Field(description="ID of the organization to list billing accounts for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListBillingAccountsResponse: + """List billing accounts + + List billing accounts of an organization. + + :param org_id: ID of the organization to list billing accounts for (required) + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_billing_accounts_serialize( + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListBillingAccountsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_billing_accounts_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="ID of the organization to list billing accounts for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListBillingAccountsResponse]: + """List billing accounts + + List billing accounts of an organization. + + :param org_id: ID of the organization to list billing accounts for (required) + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_billing_accounts_serialize( + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListBillingAccountsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_billing_accounts_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="ID of the organization to list billing accounts for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List billing accounts + + List billing accounts of an organization. + + :param org_id: ID of the organization to list billing accounts for (required) + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_billing_accounts_serialize( + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListBillingAccountsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_billing_accounts_serialize( + self, + org_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/billing', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_billing_account( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to update")], + body: FrontierServiceCreateBillingAccountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateBillingAccountResponse: + """Update billing account + + Update a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateBillingAccountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_billing_account_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_billing_account_with_http_info( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to update")], + body: FrontierServiceCreateBillingAccountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateBillingAccountResponse]: + """Update billing account + + Update a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateBillingAccountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_billing_account_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_billing_account_without_preload_content( + self, + org_id: StrictStr, + id: Annotated[StrictStr, Field(description="ID of the billing account to update")], + body: FrontierServiceCreateBillingAccountRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update billing account + + Update a billing account by ID. + + :param org_id: (required) + :type org_id: str + :param id: ID of the billing account to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateBillingAccountRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_billing_account_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateBillingAccountResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_billing_account_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/organizations/{orgId}/billing/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/checkout_api.py b/frontier_api/api/checkout_api.py new file mode 100644 index 0000000..90d6dfb --- /dev/null +++ b/frontier_api/api/checkout_api.py @@ -0,0 +1,668 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from frontier_api.models.frontier_service_create_checkout_request import FrontierServiceCreateCheckoutRequest +from frontier_api.models.v1beta1_create_checkout_response import V1beta1CreateCheckoutResponse +from frontier_api.models.v1beta1_list_checkouts_response import V1beta1ListCheckoutsResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class CheckoutApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_checkout( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCreateCheckoutRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateCheckoutResponse: + """Checkout a feature or subscription + + Checkout a feature to buy it one time or start a subscription plan on a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCreateCheckoutRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_checkout_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateCheckoutResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_checkout_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCreateCheckoutRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateCheckoutResponse]: + """Checkout a feature or subscription + + Checkout a feature to buy it one time or start a subscription plan on a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCreateCheckoutRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_checkout_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateCheckoutResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_checkout_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCreateCheckoutRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Checkout a feature or subscription + + Checkout a feature to buy it one time or start a subscription plan on a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCreateCheckoutRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_checkout_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateCheckoutResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_checkout_serialize( + self, + org_id, + billing_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/checkouts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_checkouts( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListCheckoutsResponse: + """List checkouts + + List all checkouts of a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_checkouts_serialize( + org_id=org_id, + billing_id=billing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCheckoutsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_checkouts_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListCheckoutsResponse]: + """List checkouts + + List all checkouts of a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_checkouts_serialize( + org_id=org_id, + billing_id=billing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCheckoutsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_checkouts_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List checkouts + + List all checkouts of a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_checkouts_serialize( + org_id=org_id, + billing_id=billing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCheckoutsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_checkouts_serialize( + self, + org_id, + billing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/checkouts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/entitlement_api.py b/frontier_api/api/entitlement_api.py new file mode 100644 index 0000000..be4fe92 --- /dev/null +++ b/frontier_api/api/entitlement_api.py @@ -0,0 +1,372 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from frontier_api.models.frontier_service_check_feature_entitlement_request import FrontierServiceCheckFeatureEntitlementRequest +from frontier_api.models.v1beta1_check_feature_entitlement_response import V1beta1CheckFeatureEntitlementResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class EntitlementApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_check_feature_entitlement( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCheckFeatureEntitlementRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CheckFeatureEntitlementResponse: + """Check entitlement + + Check if a billing account is entitled to a feature. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCheckFeatureEntitlementRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_check_feature_entitlement_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckFeatureEntitlementResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_check_feature_entitlement_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCheckFeatureEntitlementRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CheckFeatureEntitlementResponse]: + """Check entitlement + + Check if a billing account is entitled to a feature. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCheckFeatureEntitlementRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_check_feature_entitlement_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckFeatureEntitlementResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_check_feature_entitlement_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCheckFeatureEntitlementRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Check entitlement + + Check if a billing account is entitled to a feature. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCheckFeatureEntitlementRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_check_feature_entitlement_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CheckFeatureEntitlementResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_check_feature_entitlement_serialize( + self, + org_id, + billing_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/check', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/feature_api.py b/frontier_api/api/feature_api.py new file mode 100644 index 0000000..a76c4ed --- /dev/null +++ b/frontier_api/api/feature_api.py @@ -0,0 +1,1199 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from frontier_api.models.frontier_service_update_feature_request import FrontierServiceUpdateFeatureRequest +from frontier_api.models.v1beta1_create_feature_request import V1beta1CreateFeatureRequest +from frontier_api.models.v1beta1_create_feature_response import V1beta1CreateFeatureResponse +from frontier_api.models.v1beta1_get_feature_response import V1beta1GetFeatureResponse +from frontier_api.models.v1beta1_list_features_response import V1beta1ListFeaturesResponse +from frontier_api.models.v1beta1_update_feature_response import V1beta1UpdateFeatureResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class FeatureApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_feature( + self, + body: V1beta1CreateFeatureRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateFeatureResponse: + """Create feature + + Create a new feature for platform. + + :param body: (required) + :type body: V1beta1CreateFeatureRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_feature_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_feature_with_http_info( + self, + body: V1beta1CreateFeatureRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateFeatureResponse]: + """Create feature + + Create a new feature for platform. + + :param body: (required) + :type body: V1beta1CreateFeatureRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_feature_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_feature_without_preload_content( + self, + body: V1beta1CreateFeatureRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create feature + + Create a new feature for platform. + + :param body: (required) + :type body: V1beta1CreateFeatureRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_feature_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_feature_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/billing/features', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_feature( + self, + id: Annotated[StrictStr, Field(description="ID of the feature to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetFeatureResponse: + """Get feature + + Get a feature by ID. + + :param id: ID of the feature to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_feature_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_feature_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of the feature to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetFeatureResponse]: + """Get feature + + Get a feature by ID. + + :param id: ID of the feature to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_feature_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_feature_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of the feature to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get feature + + Get a feature by ID. + + :param id: ID of the feature to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_feature_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_feature_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/billing/features/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_features( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListFeaturesResponse: + """List features + + List all features of a platform. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_features_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListFeaturesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_features_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListFeaturesResponse]: + """List features + + List all features of a platform. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_features_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListFeaturesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_features_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List features + + List all features of a platform. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_features_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListFeaturesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_features_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/billing/features', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_feature( + self, + id: Annotated[StrictStr, Field(description="ID of the feature to update")], + body: FrontierServiceUpdateFeatureRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateFeatureResponse: + """Update feature + + Update a feature by ID. + + :param id: ID of the feature to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdateFeatureRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_feature_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_feature_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of the feature to update")], + body: FrontierServiceUpdateFeatureRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateFeatureResponse]: + """Update feature + + Update a feature by ID. + + :param id: ID of the feature to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdateFeatureRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_feature_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_feature_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of the feature to update")], + body: FrontierServiceUpdateFeatureRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update feature + + Update a feature by ID. + + :param id: ID of the feature to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdateFeatureRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_feature_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateFeatureResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_feature_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/billing/features/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/group_api.py b/frontier_api/api/group_api.py new file mode 100644 index 0000000..8206445 --- /dev/null +++ b/frontier_api/api/group_api.py @@ -0,0 +1,3511 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictBool, StrictStr + +from typing import Any, Dict, List, Optional, Union + +from frontier_api.models.frontier_service_add_group_users_request import FrontierServiceAddGroupUsersRequest +from frontier_api.models.v1beta1_create_group_response import V1beta1CreateGroupResponse +from frontier_api.models.v1beta1_get_group_response import V1beta1GetGroupResponse +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody +from frontier_api.models.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse +from frontier_api.models.v1beta1_list_groups_response import V1beta1ListGroupsResponse +from frontier_api.models.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse +from frontier_api.models.v1beta1_update_group_response import V1beta1UpdateGroupResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class GroupApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_list_groups( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListGroupsResponse: + """List all groups + + Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state. + + :param org_id: The organization id to filter by. + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_groups_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_groups_with_http_info( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListGroupsResponse]: + """List all groups + + Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state. + + :param org_id: The organization id to filter by. + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_groups_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_groups_without_preload_content( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all groups + + Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state. + + :param org_id: The organization id to filter by. + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_groups_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_groups_serialize( + self, + org_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/admin/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_add_group_users( + self, + org_id: StrictStr, + id: StrictStr, + body: FrontierServiceAddGroupUsersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Add group user + + Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceAddGroupUsersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_add_group_users_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_add_group_users_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + body: FrontierServiceAddGroupUsersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Add group user + + Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceAddGroupUsersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_add_group_users_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_add_group_users_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + body: FrontierServiceAddGroupUsersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add group user + + Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceAddGroupUsersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_add_group_users_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_add_group_users_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_group( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the group belongs to.")], + body: V1beta1GroupRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateGroupResponse: + """Create group + + Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups. + + :param org_id: The organization ID to which the group belongs to. (required) + :type org_id: str + :param body: (required) + :type body: V1beta1GroupRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_group_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_group_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the group belongs to.")], + body: V1beta1GroupRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateGroupResponse]: + """Create group + + Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups. + + :param org_id: The organization ID to which the group belongs to. (required) + :type org_id: str + :param body: (required) + :type body: V1beta1GroupRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_group_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_group_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the group belongs to.")], + body: V1beta1GroupRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create group + + Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups. + + :param org_id: The organization ID to which the group belongs to. (required) + :type org_id: str + :param body: (required) + :type body: V1beta1GroupRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_group_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_group_serialize( + self, + org_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_group( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete group + + Delete an organization group permanently and all of its relations + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_group_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_group_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete group + + Delete an organization group permanently and all of its relations + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_group_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_group_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete group + + Delete an organization group permanently and all of its relations + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_group_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_group_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_disable_group( + self, + org_id: StrictStr, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Disable group + + Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_disable_group_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Disable group + + Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_disable_group_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Disable group + + Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_disable_group_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_enable_group( + self, + org_id: StrictStr, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Enable group + + Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_enable_group_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Enable group + + Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_enable_group_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enable group + + Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_enable_group_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_group( + self, + org_id: StrictStr, + id: StrictStr, + with_members: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetGroupResponse: + """Get group + + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param with_members: + :type with_members: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_group_serialize( + org_id=org_id, + id=id, + with_members=with_members, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_group_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + with_members: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetGroupResponse]: + """Get group + + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param with_members: + :type with_members: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_group_serialize( + org_id=org_id, + id=id, + with_members=with_members, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_group_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + with_members: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get group + + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param with_members: + :type with_members: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_group_serialize( + org_id=org_id, + id=id, + with_members=with_members, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_group_serialize( + self, + org_id, + id, + with_members, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + if with_members is not None: + + _query_params.append(('withMembers', with_members)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_group_users( + self, + org_id: StrictStr, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListGroupUsersResponse: + """List group users + + Returns a list of users that belong to a group. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_group_users_serialize( + org_id=org_id, + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_group_users_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListGroupUsersResponse]: + """List group users + + Returns a list of users that belong to a group. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_group_users_serialize( + org_id=org_id, + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_group_users_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List group users + + Returns a list of users that belong to a group. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_group_users_serialize( + org_id=org_id, + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_group_users_serialize( + self, + org_id, + id, + with_roles, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + if with_roles is not None: + + _query_params.append(('withRoles', with_roles)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_groups( + self, + org_id: StrictStr, + state: Annotated[Optional[StrictStr], Field(description="The state of the group to filter by. It can be enabled or disabled.")] = None, + group_ids: Optional[List[StrictStr]] = None, + with_members: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationGroupsResponse: + """List organization groups + + Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled. + + :param org_id: (required) + :type org_id: str + :param state: The state of the group to filter by. It can be enabled or disabled. + :type state: str + :param group_ids: + :type group_ids: List[str] + :param with_members: + :type with_members: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_groups_serialize( + org_id=org_id, + state=state, + group_ids=group_ids, + with_members=with_members, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_groups_with_http_info( + self, + org_id: StrictStr, + state: Annotated[Optional[StrictStr], Field(description="The state of the group to filter by. It can be enabled or disabled.")] = None, + group_ids: Optional[List[StrictStr]] = None, + with_members: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationGroupsResponse]: + """List organization groups + + Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled. + + :param org_id: (required) + :type org_id: str + :param state: The state of the group to filter by. It can be enabled or disabled. + :type state: str + :param group_ids: + :type group_ids: List[str] + :param with_members: + :type with_members: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_groups_serialize( + org_id=org_id, + state=state, + group_ids=group_ids, + with_members=with_members, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_groups_without_preload_content( + self, + org_id: StrictStr, + state: Annotated[Optional[StrictStr], Field(description="The state of the group to filter by. It can be enabled or disabled.")] = None, + group_ids: Optional[List[StrictStr]] = None, + with_members: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organization groups + + Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled. + + :param org_id: (required) + :type org_id: str + :param state: The state of the group to filter by. It can be enabled or disabled. + :type state: str + :param group_ids: + :type group_ids: List[str] + :param with_members: + :type with_members: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_groups_serialize( + org_id=org_id, + state=state, + group_ids=group_ids, + with_members=with_members, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_groups_serialize( + self, + org_id, + state, + group_ids, + with_members, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + 'groupIds': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + if state is not None: + + _query_params.append(('state', state)) + + if group_ids is not None: + + _query_params.append(('groupIds', group_ids)) + + if with_members is not None: + + _query_params.append(('withMembers', with_members)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_remove_group_user( + self, + org_id: StrictStr, + id: StrictStr, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Remove group user + + Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_remove_group_user_serialize( + org_id=org_id, + id=id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_remove_group_user_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Remove group user + + Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_remove_group_user_serialize( + org_id=org_id, + id=id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_remove_group_user_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove group user + + Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_remove_group_user_serialize( + org_id=org_id, + id=id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_remove_group_user_serialize( + self, + org_id, + id, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + if user_id is not None: + _path_params['userId'] = user_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}/users/{userId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_group( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the group belongs to.")], + id: StrictStr, + body: V1beta1GroupRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateGroupResponse: + """Update group + + + :param org_id: The organization ID to which the group belongs to. (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1GroupRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_group_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the group belongs to.")], + id: StrictStr, + body: V1beta1GroupRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateGroupResponse]: + """Update group + + + :param org_id: The organization ID to which the group belongs to. (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1GroupRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_group_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the group belongs to.")], + id: StrictStr, + body: V1beta1GroupRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update group + + + :param org_id: The organization ID to which the group belongs to. (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1GroupRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_group_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateGroupResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_group_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/organizations/{orgId}/groups/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/meta_schema_api.py b/frontier_api/api/meta_schema_api.py new file mode 100644 index 0000000..cac63e4 --- /dev/null +++ b/frontier_api/api/meta_schema_api.py @@ -0,0 +1,1478 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import StrictStr + +from typing import Any, Dict, Union + +from frontier_api.models.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse +from frontier_api.models.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse +from frontier_api.models.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody +from frontier_api.models.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class MetaSchemaApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_meta_schema( + self, + body: V1beta1MetaSchemaRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateMetaSchemaResponse: + """Create metaschema + + Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + + :param body: (required) + :type body: V1beta1MetaSchemaRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_meta_schema_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_meta_schema_with_http_info( + self, + body: V1beta1MetaSchemaRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateMetaSchemaResponse]: + """Create metaschema + + Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + + :param body: (required) + :type body: V1beta1MetaSchemaRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_meta_schema_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_meta_schema_without_preload_content( + self, + body: V1beta1MetaSchemaRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create metaschema + + Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + + :param body: (required) + :type body: V1beta1MetaSchemaRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_meta_schema_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_meta_schema_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/meta/schemas', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_meta_schema( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete metaschema + + Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata). + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_meta_schema_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_meta_schema_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete metaschema + + Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata). + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_meta_schema_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_meta_schema_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete metaschema + + Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata). + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_meta_schema_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_meta_schema_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/meta/schemas/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_meta_schema( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetMetaSchemaResponse: + """Get metaschema + + Get a metadata schema by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_meta_schema_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_meta_schema_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetMetaSchemaResponse]: + """Get metaschema + + Get a metadata schema by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_meta_schema_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_meta_schema_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get metaschema + + Get a metadata schema by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_meta_schema_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_meta_schema_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/meta/schemas/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_meta_schemas( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListMetaSchemasResponse: + """List metaschemas + + Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_meta_schemas_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListMetaSchemasResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_meta_schemas_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListMetaSchemasResponse]: + """List metaschemas + + Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_meta_schemas_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListMetaSchemasResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_meta_schemas_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List metaschemas + + Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_meta_schemas_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListMetaSchemasResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_meta_schemas_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/meta/schemas', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_meta_schema( + self, + id: StrictStr, + body: V1beta1MetaSchemaRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateMetaSchemaResponse: + """Update metaschema + + Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1MetaSchemaRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_meta_schema_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_meta_schema_with_http_info( + self, + id: StrictStr, + body: V1beta1MetaSchemaRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateMetaSchemaResponse]: + """Update metaschema + + Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1MetaSchemaRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_meta_schema_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_meta_schema_without_preload_content( + self, + id: StrictStr, + body: V1beta1MetaSchemaRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update metaschema + + Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.
*Example:* `{name:\"user\",schema:{\"type\":\"object\",\"properties\":{\"label\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"description\":{\"type\":\"string\"}}}}` + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1MetaSchemaRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_meta_schema_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateMetaSchemaResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_meta_schema_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/meta/schemas/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/namespace_api.py b/frontier_api/api/namespace_api.py new file mode 100644 index 0000000..9853422 --- /dev/null +++ b/frontier_api/api/namespace_api.py @@ -0,0 +1,592 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import StrictStr + +from frontier_api.models.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse +from frontier_api.models.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class NamespaceApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_get_namespace( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetNamespaceResponse: + """Get namespace + + Returns a namespace by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_namespace_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetNamespaceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_namespace_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetNamespaceResponse]: + """Get namespace + + Returns a namespace by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_namespace_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetNamespaceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_namespace_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get namespace + + Returns a namespace by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_namespace_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetNamespaceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_namespace_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/namespaces/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_namespaces( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListNamespacesResponse: + """Get all namespaces + + Returns the list of all namespaces in a Frontier instance + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_namespaces_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListNamespacesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_namespaces_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListNamespacesResponse]: + """Get all namespaces + + Returns the list of all namespaces in a Frontier instance + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_namespaces_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListNamespacesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_namespaces_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get all namespaces + + Returns the list of all namespaces in a Frontier instance + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_namespaces_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListNamespacesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_namespaces_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/namespaces', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/organization_api.py b/frontier_api/api/organization_api.py new file mode 100644 index 0000000..3765f3d --- /dev/null +++ b/frontier_api/api/organization_api.py @@ -0,0 +1,7497 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictBool, StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.frontier_service_add_organization_users_request import FrontierServiceAddOrganizationUsersRequest +from frontier_api.models.frontier_service_create_organization_domain_request import FrontierServiceCreateOrganizationDomainRequest +from frontier_api.models.frontier_service_create_organization_invitation_request import FrontierServiceCreateOrganizationInvitationRequest +from frontier_api.models.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse +from frontier_api.models.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse +from frontier_api.models.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse +from frontier_api.models.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse +from frontier_api.models.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse +from frontier_api.models.v1beta1_get_organization_response import V1beta1GetOrganizationResponse +from frontier_api.models.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse +from frontier_api.models.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse +from frontier_api.models.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse +from frontier_api.models.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse +from frontier_api.models.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse +from frontier_api.models.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse +from frontier_api.models.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse +from frontier_api.models.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody +from frontier_api.models.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse +from frontier_api.models.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class OrganizationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_list_all_organizations( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListAllOrganizationsResponse: + """List all organizations + + Lists all the organizations in a Frontier instance. It can be filtered by user and state. + + :param user_id: The user id to filter by. + :type user_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_all_organizations_serialize( + user_id=user_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAllOrganizationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_all_organizations_with_http_info( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListAllOrganizationsResponse]: + """List all organizations + + Lists all the organizations in a Frontier instance. It can be filtered by user and state. + + :param user_id: The user id to filter by. + :type user_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_all_organizations_serialize( + user_id=user_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAllOrganizationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_all_organizations_without_preload_content( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all organizations + + Lists all the organizations in a Frontier instance. It can be filtered by user and state. + + :param user_id: The user id to filter by. + :type user_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_all_organizations_serialize( + user_id=user_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAllOrganizationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_all_organizations_serialize( + self, + user_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/admin/organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_accept_organization_invitation( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Accept pending invitation + + Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_accept_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_accept_organization_invitation_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Accept pending invitation + + Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_accept_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_accept_organization_invitation_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Accept pending invitation + + Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_accept_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_accept_organization_invitation_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/invitations/{id}/accept', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_add_organization_users( + self, + id: StrictStr, + body: FrontierServiceAddOrganizationUsersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Add organization user + + Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceAddOrganizationUsersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_add_organization_users_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_add_organization_users_with_http_info( + self, + id: StrictStr, + body: FrontierServiceAddOrganizationUsersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Add organization user + + Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceAddOrganizationUsersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_add_organization_users_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_add_organization_users_without_preload_content( + self, + id: StrictStr, + body: FrontierServiceAddOrganizationUsersRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add organization user + + Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceAddOrganizationUsersRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_add_organization_users_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_add_organization_users_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{id}/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_organization( + self, + body: V1beta1OrganizationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateOrganizationResponse: + """Create organization + + + :param body: (required) + :type body: V1beta1OrganizationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_organization_with_http_info( + self, + body: V1beta1OrganizationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateOrganizationResponse]: + """Create organization + + + :param body: (required) + :type body: V1beta1OrganizationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_organization_without_preload_content( + self, + body: V1beta1OrganizationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create organization + + + :param body: (required) + :type body: V1beta1OrganizationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_organization_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_organization_domain( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be added")], + body: FrontierServiceCreateOrganizationDomainRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateOrganizationDomainResponse: + """Create org domain + + Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users. + + :param org_id: unique id of the organization for which whitelisted domains are to be added (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationDomainRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_domain_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_organization_domain_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be added")], + body: FrontierServiceCreateOrganizationDomainRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateOrganizationDomainResponse]: + """Create org domain + + Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users. + + :param org_id: unique id of the organization for which whitelisted domains are to be added (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationDomainRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_domain_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_organization_domain_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be added")], + body: FrontierServiceCreateOrganizationDomainRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create org domain + + Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users. + + :param org_id: unique id of the organization for which whitelisted domains are to be added (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationDomainRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_domain_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_organization_domain_serialize( + self, + org_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/domains', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_organization_invitation( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization to which user is invited")], + body: FrontierServiceCreateOrganizationInvitationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateOrganizationInvitationResponse: + """Invite user + + Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days + + :param org_id: unique id of the organization to which user is invited (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationInvitationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_invitation_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationInvitationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_organization_invitation_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization to which user is invited")], + body: FrontierServiceCreateOrganizationInvitationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateOrganizationInvitationResponse]: + """Invite user + + Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days + + :param org_id: unique id of the organization to which user is invited (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationInvitationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_invitation_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationInvitationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_organization_invitation_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization to which user is invited")], + body: FrontierServiceCreateOrganizationInvitationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Invite user + + Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days + + :param org_id: unique id of the organization to which user is invited (required) + :type org_id: str + :param body: (required) + :type body: FrontierServiceCreateOrganizationInvitationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_invitation_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationInvitationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_organization_invitation_serialize( + self, + org_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/invitations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_organization( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete organization + + Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_organization_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete organization + + Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_organization_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete organization + + Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_organization_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_organization_domain( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be deleted")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be deleted")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete org domain + + Remove a domain from the list of an organization's trusted domains list + + :param org_id: unique id of the organization for which whitelisted domains are to be deleted (required) + :type org_id: str + :param id: unique id of the domain to be deleted (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_domain_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_organization_domain_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be deleted")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be deleted")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete org domain + + Remove a domain from the list of an organization's trusted domains list + + :param org_id: unique id of the organization for which whitelisted domains are to be deleted (required) + :type org_id: str + :param id: unique id of the domain to be deleted (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_domain_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_organization_domain_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be deleted")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be deleted")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete org domain + + Remove a domain from the list of an organization's trusted domains list + + :param org_id: unique id of the organization for which whitelisted domains are to be deleted (required) + :type org_id: str + :param id: unique id of the domain to be deleted (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_domain_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_organization_domain_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{orgId}/domains/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_organization_invitation( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete pending invitation + + Delete a pending invitation queued for an organization + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_organization_invitation_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete pending invitation + + Delete a pending invitation queued for an organization + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_organization_invitation_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete pending invitation + + Delete a pending invitation queued for an organization + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_organization_invitation_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{orgId}/invitations/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_disable_organization( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Disable organization + + Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_disable_organization_with_http_info( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Disable organization + + Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_disable_organization_without_preload_content( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Disable organization + + Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_disable_organization_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{id}/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_enable_organization( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Enable organization + + Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_enable_organization_with_http_info( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Enable organization + + Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_enable_organization_without_preload_content( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enable organization + + Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_enable_organization_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{id}/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_organization( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetOrganizationResponse: + """Get organization + + Get organization by ID or name + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_organization_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetOrganizationResponse]: + """Get organization + + Get organization by ID or name + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_organization_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get organization + + Get organization by ID or name + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_organization_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_organization_domain( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domain is to be retrieved")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be retrieved")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetOrganizationDomainResponse: + """Get org domain + + Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID + + :param org_id: unique id of the organization for which whitelisted domain is to be retrieved (required) + :type org_id: str + :param id: unique id of the domain to be retrieved (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_domain_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_organization_domain_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domain is to be retrieved")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be retrieved")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetOrganizationDomainResponse]: + """Get org domain + + Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID + + :param org_id: unique id of the organization for which whitelisted domain is to be retrieved (required) + :type org_id: str + :param id: unique id of the domain to be retrieved (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_domain_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_organization_domain_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domain is to be retrieved")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be retrieved")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get org domain + + Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID + + :param org_id: unique id of the organization for which whitelisted domain is to be retrieved (required) + :type org_id: str + :param id: unique id of the domain to be retrieved (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_domain_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_organization_domain_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/domains/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_organization_invitation( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetOrganizationInvitationResponse: + """Get pending invitation + + Returns a pending invitation queued for an organization + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationInvitationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_organization_invitation_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetOrganizationInvitationResponse]: + """Get pending invitation + + Returns a pending invitation queued for an organization + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationInvitationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_organization_invitation_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get pending invitation + + Returns a pending invitation queued for an organization + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_invitation_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationInvitationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_organization_invitation_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/invitations/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_join_organization( + self, + org_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Join organization + + Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains. + + :param org_id: (required) + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_join_organization_serialize( + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_join_organization_with_http_info( + self, + org_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Join organization + + Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains. + + :param org_id: (required) + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_join_organization_serialize( + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_join_organization_without_preload_content( + self, + org_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Join organization + + Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains. + + :param org_id: (required) + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_join_organization_serialize( + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_join_organization_serialize( + self, + org_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/join', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_admins( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationAdminsResponse: + """List organization admins + + Returns a list admins of an organization + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_admins_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationAdminsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_admins_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationAdminsResponse]: + """List organization admins + + Returns a list admins of an organization + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_admins_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationAdminsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_admins_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organization admins + + Returns a list admins of an organization + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_admins_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationAdminsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_admins_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{id}/admins', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_domains( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be listed")], + state: Annotated[Optional[StrictStr], Field(description="filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationDomainsResponse: + """List org domains + + Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation. + + :param org_id: unique id of the organization for which whitelisted domains are to be listed (required) + :type org_id: str + :param state: filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_domains_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationDomainsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_domains_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be listed")], + state: Annotated[Optional[StrictStr], Field(description="filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationDomainsResponse]: + """List org domains + + Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation. + + :param org_id: unique id of the organization for which whitelisted domains are to be listed (required) + :type org_id: str + :param state: filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_domains_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationDomainsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_domains_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be listed")], + state: Annotated[Optional[StrictStr], Field(description="filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List org domains + + Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation. + + :param org_id: unique id of the organization for which whitelisted domains are to be listed (required) + :type org_id: str + :param state: filter to list domains by their state (pending/verified). If not provided, all domains for an org will be listed + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_domains_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationDomainsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_domains_serialize( + self, + org_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/domains', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_invitations( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization to which user is invited")], + user_id: Annotated[Optional[StrictStr], Field(description="user_id filter is the email id of user who are invited inside the organization.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationInvitationsResponse: + """List pending invitations + + Returns all pending invitations queued for an organization + + :param org_id: unique id of the organization to which user is invited (required) + :type org_id: str + :param user_id: user_id filter is the email id of user who are invited inside the organization. + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_invitations_serialize( + org_id=org_id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_invitations_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization to which user is invited")], + user_id: Annotated[Optional[StrictStr], Field(description="user_id filter is the email id of user who are invited inside the organization.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationInvitationsResponse]: + """List pending invitations + + Returns all pending invitations queued for an organization + + :param org_id: unique id of the organization to which user is invited (required) + :type org_id: str + :param user_id: user_id filter is the email id of user who are invited inside the organization. + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_invitations_serialize( + org_id=org_id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_invitations_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization to which user is invited")], + user_id: Annotated[Optional[StrictStr], Field(description="user_id filter is the email id of user who are invited inside the organization.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List pending invitations + + Returns all pending invitations queued for an organization + + :param org_id: unique id of the organization to which user is invited (required) + :type org_id: str + :param user_id: user_id filter is the email id of user who are invited inside the organization. + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_invitations_serialize( + org_id=org_id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_invitations_serialize( + self, + org_id, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/invitations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_projects( + self, + id: StrictStr, + state: Annotated[Optional[StrictStr], Field(description="Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled`")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationProjectsResponse: + """Get organization projects + + Get all projects that belong to an organization + + :param id: (required) + :type id: str + :param state: Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled` + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_projects_serialize( + id=id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationProjectsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_projects_with_http_info( + self, + id: StrictStr, + state: Annotated[Optional[StrictStr], Field(description="Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled`")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationProjectsResponse]: + """Get organization projects + + Get all projects that belong to an organization + + :param id: (required) + :type id: str + :param state: Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled` + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_projects_serialize( + id=id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationProjectsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_projects_without_preload_content( + self, + id: StrictStr, + state: Annotated[Optional[StrictStr], Field(description="Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled`")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get organization projects + + Get all projects that belong to an organization + + :param id: (required) + :type id: str + :param state: Filter projects by state. If not specified, all projects are returned.
*Possible values:* `enabled` or `disabled` + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_projects_serialize( + id=id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationProjectsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_projects_serialize( + self, + id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{id}/projects', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_service_users( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationServiceUsersResponse: + """List organization service users + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_service_users_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_service_users_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationServiceUsersResponse]: + """List organization service users + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_service_users_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_service_users_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organization service users + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_service_users_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_service_users_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{id}/serviceusers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_users( + self, + id: StrictStr, + permission_filter: Optional[StrictStr] = None, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationUsersResponse: + """List organization users + + + :param id: (required) + :type id: str + :param permission_filter: + :type permission_filter: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_users_serialize( + id=id, + permission_filter=permission_filter, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_users_with_http_info( + self, + id: StrictStr, + permission_filter: Optional[StrictStr] = None, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationUsersResponse]: + """List organization users + + + :param id: (required) + :type id: str + :param permission_filter: + :type permission_filter: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_users_serialize( + id=id, + permission_filter=permission_filter, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_users_without_preload_content( + self, + id: StrictStr, + permission_filter: Optional[StrictStr] = None, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organization users + + + :param id: (required) + :type id: str + :param permission_filter: + :type permission_filter: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_users_serialize( + id=id, + permission_filter=permission_filter, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_users_serialize( + self, + id, + permission_filter, + with_roles, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if permission_filter is not None: + + _query_params.append(('permissionFilter', permission_filter)) + + if with_roles is not None: + + _query_params.append(('withRoles', with_roles)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{id}/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organizations( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be `enabled` or `disabled`.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationsResponse: + """List organizations + + Returns a list of organizations. It can be filtered by userID or organization state. + + :param user_id: The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed. + :type user_id: str + :param state: The state to filter by. It can be `enabled` or `disabled`. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_serialize( + user_id=user_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organizations_with_http_info( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be `enabled` or `disabled`.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationsResponse]: + """List organizations + + Returns a list of organizations. It can be filtered by userID or organization state. + + :param user_id: The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed. + :type user_id: str + :param state: The state to filter by. It can be `enabled` or `disabled`. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_serialize( + user_id=user_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organizations_without_preload_content( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be `enabled` or `disabled`.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organizations + + Returns a list of organizations. It can be filtered by userID or organization state. + + :param user_id: The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed. + :type user_id: str + :param state: The state to filter by. It can be `enabled` or `disabled`. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_serialize( + user_id=user_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organizations_serialize( + self, + user_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_remove_organization_user( + self, + id: StrictStr, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Remove organization user + + Remove a user from an organization + + :param id: (required) + :type id: str + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_remove_organization_user_serialize( + id=id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_remove_organization_user_with_http_info( + self, + id: StrictStr, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Remove organization user + + Remove a user from an organization + + :param id: (required) + :type id: str + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_remove_organization_user_serialize( + id=id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_remove_organization_user_without_preload_content( + self, + id: StrictStr, + user_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Remove organization user + + Remove a user from an organization + + :param id: (required) + :type id: str + :param user_id: (required) + :type user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_remove_organization_user_serialize( + id=id, + user_id=user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_remove_organization_user_serialize( + self, + id, + user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + if user_id is not None: + _path_params['userId'] = user_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{id}/users/{userId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_organization( + self, + id: StrictStr, + body: V1beta1OrganizationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateOrganizationResponse: + """Update organization + + Update organization by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1OrganizationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_organization_with_http_info( + self, + id: StrictStr, + body: V1beta1OrganizationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateOrganizationResponse]: + """Update organization + + Update organization by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1OrganizationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_organization_without_preload_content( + self, + id: StrictStr, + body: V1beta1OrganizationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update organization + + Update organization by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1OrganizationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_organization_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateOrganizationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_organization_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/organizations/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_verify_organization_domain( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be verified")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be verified")], + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1VerifyOrganizationDomainResponse: + """Verify org domain + + Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification. + + :param org_id: unique id of the organization for which whitelisted domains are to be verified (required) + :type org_id: str + :param id: unique id of the domain to be verified (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_verify_organization_domain_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1VerifyOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_verify_organization_domain_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be verified")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be verified")], + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1VerifyOrganizationDomainResponse]: + """Verify org domain + + Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification. + + :param org_id: unique id of the organization for which whitelisted domains are to be verified (required) + :type org_id: str + :param id: unique id of the domain to be verified (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_verify_organization_domain_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1VerifyOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_verify_organization_domain_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="unique id of the organization for which whitelisted domains are to be verified")], + id: Annotated[StrictStr, Field(description="unique id of the domain to be verified")], + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Verify org domain + + Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification. + + :param org_id: unique id of the organization for which whitelisted domains are to be verified (required) + :type org_id: str + :param id: unique id of the domain to be verified (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_verify_organization_domain_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1VerifyOrganizationDomainResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_verify_organization_domain_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/domains/{id}/verify', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/permission_api.py b/frontier_api/api/permission_api.py new file mode 100644 index 0000000..b35bb30 --- /dev/null +++ b/frontier_api/api/permission_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import StrictStr + +from typing import Any, Dict, Union + +from frontier_api.models.v1beta1_create_permission_request import V1beta1CreatePermissionRequest +from frontier_api.models.v1beta1_create_permission_response import V1beta1CreatePermissionResponse +from frontier_api.models.v1beta1_get_permission_response import V1beta1GetPermissionResponse +from frontier_api.models.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody +from frontier_api.models.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class PermissionApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_create_permission( + self, + body: V1beta1CreatePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreatePermissionResponse: + """Create platform permission + + Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance. + + :param body: (required) + :type body: V1beta1CreatePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_create_permission_with_http_info( + self, + body: V1beta1CreatePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreatePermissionResponse]: + """Create platform permission + + Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance. + + :param body: (required) + :type body: V1beta1CreatePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_create_permission_without_preload_content( + self, + body: V1beta1CreatePermissionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create platform permission + + Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance. + + :param body: (required) + :type body: V1beta1CreatePermissionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_permission_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_create_permission_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/permissions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_service_delete_permission( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete platform permission + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_delete_permission_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_delete_permission_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete platform permission + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_delete_permission_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_delete_permission_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete platform permission + + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_delete_permission_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_delete_permission_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/permissions/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_service_update_permission( + self, + id: StrictStr, + body: V1beta1PermissionRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdatePermissionResponse: + """Update platform permission + + Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1PermissionRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_update_permission_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_update_permission_with_http_info( + self, + id: StrictStr, + body: V1beta1PermissionRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdatePermissionResponse]: + """Update platform permission + + Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1PermissionRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_update_permission_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_update_permission_without_preload_content( + self, + id: StrictStr, + body: V1beta1PermissionRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update platform permission + + Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1PermissionRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_update_permission_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_update_permission_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/permissions/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_permission( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetPermissionResponse: + """Get permission + + Returns a permission by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_permission_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_permission_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetPermissionResponse]: + """Get permission + + Returns a permission by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_permission_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_permission_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get permission + + Returns a permission by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_permission_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPermissionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_permission_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/permissions/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_permissions( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListPermissionsResponse: + """Get all permissions + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_permissions_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPermissionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_permissions_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListPermissionsResponse]: + """Get all permissions + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_permissions_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPermissionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_permissions_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get all permissions + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_permissions_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPermissionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_permissions_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/permissions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/plan_api.py b/frontier_api/api/plan_api.py new file mode 100644 index 0000000..9704981 --- /dev/null +++ b/frontier_api/api/plan_api.py @@ -0,0 +1,1199 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from frontier_api.models.frontier_service_update_plan_request import FrontierServiceUpdatePlanRequest +from frontier_api.models.v1beta1_create_plan_request import V1beta1CreatePlanRequest +from frontier_api.models.v1beta1_create_plan_response import V1beta1CreatePlanResponse +from frontier_api.models.v1beta1_get_plan_response import V1beta1GetPlanResponse +from frontier_api.models.v1beta1_list_plans_response import V1beta1ListPlansResponse +from frontier_api.models.v1beta1_update_plan_response import V1beta1UpdatePlanResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class PlanApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_plan( + self, + body: V1beta1CreatePlanRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreatePlanResponse: + """Create plan + + Create a new plan for platform. + + :param body: (required) + :type body: V1beta1CreatePlanRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_plan_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_plan_with_http_info( + self, + body: V1beta1CreatePlanRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreatePlanResponse]: + """Create plan + + Create a new plan for platform. + + :param body: (required) + :type body: V1beta1CreatePlanRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_plan_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_plan_without_preload_content( + self, + body: V1beta1CreatePlanRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create plan + + Create a new plan for platform. + + :param body: (required) + :type body: V1beta1CreatePlanRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_plan_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_plan_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/billing/plans', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_plan( + self, + id: Annotated[StrictStr, Field(description="ID of the plan to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetPlanResponse: + """Get plan + + Get a plan by ID. + + :param id: ID of the plan to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_plan_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_plan_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of the plan to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetPlanResponse]: + """Get plan + + Get a plan by ID. + + :param id: ID of the plan to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_plan_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_plan_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of the plan to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get plan + + Get a plan by ID. + + :param id: ID of the plan to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_plan_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_plan_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/billing/plans/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_plans( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListPlansResponse: + """List plans + + List all plans. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_plans_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPlansResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_plans_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListPlansResponse]: + """List plans + + List all plans. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_plans_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPlansResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_plans_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List plans + + List all plans. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_plans_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPlansResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_plans_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/billing/plans', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_plan( + self, + id: Annotated[StrictStr, Field(description="ID of the plan to update")], + body: FrontierServiceUpdatePlanRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdatePlanResponse: + """Update plan + + Update a plan by ID. + + :param id: ID of the plan to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdatePlanRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_plan_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_plan_with_http_info( + self, + id: Annotated[StrictStr, Field(description="ID of the plan to update")], + body: FrontierServiceUpdatePlanRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdatePlanResponse]: + """Update plan + + Update a plan by ID. + + :param id: ID of the plan to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdatePlanRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_plan_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_plan_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="ID of the plan to update")], + body: FrontierServiceUpdatePlanRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update plan + + Update a plan by ID. + + :param id: ID of the plan to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdatePlanRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_plan_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePlanResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_plan_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/billing/plans/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/platform_api.py b/frontier_api/api/platform_api.py new file mode 100644 index 0000000..fba163b --- /dev/null +++ b/frontier_api/api/platform_api.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from typing import Any, Dict, Union + +from frontier_api.models.v1beta1_add_platform_user_request import V1beta1AddPlatformUserRequest + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class PlatformApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_add_platform_user( + self, + body: V1beta1AddPlatformUserRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Add platform user + + Adds a user to a platform. + + :param body: (required) + :type body: V1beta1AddPlatformUserRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_add_platform_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_add_platform_user_with_http_info( + self, + body: V1beta1AddPlatformUserRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Add platform user + + Adds a user to a platform. + + :param body: (required) + :type body: V1beta1AddPlatformUserRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_add_platform_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_add_platform_user_without_preload_content( + self, + body: V1beta1AddPlatformUserRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add platform user + + Adds a user to a platform. + + :param body: (required) + :type body: V1beta1AddPlatformUserRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_add_platform_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_add_platform_user_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/admin/platform/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/policy_api.py b/frontier_api/api/policy_api.py new file mode 100644 index 0000000..2ea2b7a --- /dev/null +++ b/frontier_api/api/policy_api.py @@ -0,0 +1,1565 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.v1beta1_create_policy_response import V1beta1CreatePolicyResponse +from frontier_api.models.v1beta1_get_policy_response import V1beta1GetPolicyResponse +from frontier_api.models.v1beta1_list_policies_response import V1beta1ListPoliciesResponse +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody +from frontier_api.models.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class PolicyApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_policy( + self, + body: V1beta1PolicyRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreatePolicyResponse: + """Create policy + + Creates a policy + + :param body: (required) + :type body: V1beta1PolicyRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_policy_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_policy_with_http_info( + self, + body: V1beta1PolicyRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreatePolicyResponse]: + """Create policy + + Creates a policy + + :param body: (required) + :type body: V1beta1PolicyRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_policy_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_policy_without_preload_content( + self, + body: V1beta1PolicyRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create policy + + Creates a policy + + :param body: (required) + :type body: V1beta1PolicyRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_policy_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_policy_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/policies', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_policy( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete Policy + + Delete a policy all of its relations permanently. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_policy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_policy_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete Policy + + Delete a policy all of its relations permanently. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_policy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_policy_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Policy + + Delete a policy all of its relations permanently. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_policy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_policy_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/policies/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_policy( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetPolicyResponse: + """Get policy + + Returns a policy by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_policy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_policy_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetPolicyResponse]: + """Get policy + + Returns a policy by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_policy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_policy_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get policy + + Returns a policy by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_policy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetPolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_policy_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/policies/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_policies( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + project_id: Annotated[Optional[StrictStr], Field(description="The project id to filter by.")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + role_id: Annotated[Optional[StrictStr], Field(description="The role id to filter by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListPoliciesResponse: + """List all policies + + Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group. + + :param org_id: The organization id to filter by. + :type org_id: str + :param project_id: The project id to filter by. + :type project_id: str + :param user_id: The user id to filter by. + :type user_id: str + :param role_id: The role id to filter by. + :type role_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_policies_serialize( + org_id=org_id, + project_id=project_id, + user_id=user_id, + role_id=role_id, + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPoliciesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_policies_with_http_info( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + project_id: Annotated[Optional[StrictStr], Field(description="The project id to filter by.")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + role_id: Annotated[Optional[StrictStr], Field(description="The role id to filter by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListPoliciesResponse]: + """List all policies + + Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group. + + :param org_id: The organization id to filter by. + :type org_id: str + :param project_id: The project id to filter by. + :type project_id: str + :param user_id: The user id to filter by. + :type user_id: str + :param role_id: The role id to filter by. + :type role_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_policies_serialize( + org_id=org_id, + project_id=project_id, + user_id=user_id, + role_id=role_id, + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPoliciesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_policies_without_preload_content( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + project_id: Annotated[Optional[StrictStr], Field(description="The project id to filter by.")] = None, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + role_id: Annotated[Optional[StrictStr], Field(description="The role id to filter by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all policies + + Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group. + + :param org_id: The organization id to filter by. + :type org_id: str + :param project_id: The project id to filter by. + :type project_id: str + :param user_id: The user id to filter by. + :type user_id: str + :param role_id: The role id to filter by. + :type role_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_policies_serialize( + org_id=org_id, + project_id=project_id, + user_id=user_id, + role_id=role_id, + group_id=group_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPoliciesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_policies_serialize( + self, + org_id, + project_id, + user_id, + role_id, + group_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if project_id is not None: + + _query_params.append(('projectId', project_id)) + + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if role_id is not None: + + _query_params.append(('roleId', role_id)) + + if group_id is not None: + + _query_params.append(('groupId', group_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/policies', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_policy( + self, + id: StrictStr, + body: V1beta1PolicyRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdatePolicyResponse: + """Update policy + + Updates a policy by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1PolicyRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_policy_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_policy_with_http_info( + self, + id: StrictStr, + body: V1beta1PolicyRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdatePolicyResponse]: + """Update policy + + Updates a policy by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1PolicyRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_policy_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_policy_without_preload_content( + self, + id: StrictStr, + body: V1beta1PolicyRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update policy + + Updates a policy by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1PolicyRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_policy_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdatePolicyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_policy_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/policies/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/preference_api.py b/frontier_api/api/preference_api.py new file mode 100644 index 0000000..0b5cf37 --- /dev/null +++ b/frontier_api/api/preference_api.py @@ -0,0 +1,3794 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import StrictStr + +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest +from frontier_api.models.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse +from frontier_api.models.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse +from frontier_api.models.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse +from frontier_api.models.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest +from frontier_api.models.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse +from frontier_api.models.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse +from frontier_api.models.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse +from frontier_api.models.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse +from frontier_api.models.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse +from frontier_api.models.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse +from frontier_api.models.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse +from frontier_api.models.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse +from frontier_api.models.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse +from frontier_api.models.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class PreferenceApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_create_preferences( + self, + body: V1beta1CreatePreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreatePreferencesResponse: + """Create platform preferences + + Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores. + + :param body: (required) + :type body: V1beta1CreatePreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_preferences_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_create_preferences_with_http_info( + self, + body: V1beta1CreatePreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreatePreferencesResponse]: + """Create platform preferences + + Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores. + + :param body: (required) + :type body: V1beta1CreatePreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_preferences_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_create_preferences_without_preload_content( + self, + body: V1beta1CreatePreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create platform preferences + + Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores. + + :param body: (required) + :type body: V1beta1CreatePreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_preferences_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreatePreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_create_preferences_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_service_list_preferences( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListPreferencesResponse: + """List platform preferences + + Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_preferences_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListPreferencesResponse]: + """List platform preferences + + Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_preferences_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List platform preferences + + Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_preferences_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_current_user_preferences( + self, + body: V1beta1CreateCurrentUserPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateCurrentUserPreferencesResponse: + """Create current user preferences + + Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + + :param body: (required) + :type body: V1beta1CreateCurrentUserPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_current_user_preferences_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateCurrentUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_current_user_preferences_with_http_info( + self, + body: V1beta1CreateCurrentUserPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateCurrentUserPreferencesResponse]: + """Create current user preferences + + Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + + :param body: (required) + :type body: V1beta1CreateCurrentUserPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_current_user_preferences_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateCurrentUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_current_user_preferences_without_preload_content( + self, + body: V1beta1CreateCurrentUserPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create current user preferences + + Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + + :param body: (required) + :type body: V1beta1CreateCurrentUserPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_current_user_preferences_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateCurrentUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_current_user_preferences_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/users/self/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_group_preferences( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateGroupPreferencesResponse: + """Create group preferences + + Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_group_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateGroupPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_group_preferences_with_http_info( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateGroupPreferencesResponse]: + """Create group preferences + + Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_group_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateGroupPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_group_preferences_without_preload_content( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create group preferences + + Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_group_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateGroupPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_group_preferences_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/groups/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_organization_preferences( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateOrganizationPreferencesResponse: + """Create organization preferences + + Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_organization_preferences_with_http_info( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateOrganizationPreferencesResponse]: + """Create organization preferences + + Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_organization_preferences_without_preload_content( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create organization preferences + + Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_organization_preferences_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_project_preferences( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateProjectPreferencesResponse: + """Create project preferences + + Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_project_preferences_with_http_info( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateProjectPreferencesResponse]: + """Create project preferences + + Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_project_preferences_without_preload_content( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create project preferences + + Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_project_preferences_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/projects/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_user_preferences( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateUserPreferencesResponse: + """Create user preferences + + Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_user_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_user_preferences_with_http_info( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateUserPreferencesResponse]: + """Create user preferences + + Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_user_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_user_preferences_without_preload_content( + self, + id: StrictStr, + body: FrontierServiceCreateGroupPreferencesRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create user preferences + + Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores. + + :param id: (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateGroupPreferencesRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_user_preferences_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_user_preferences_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/users/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_describe_preferences( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1DescribePreferencesResponse: + """Describe preferences + + Returns a list of all preferences supported by Frontier. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_describe_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1DescribePreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_describe_preferences_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1DescribePreferencesResponse]: + """Describe preferences + + Returns a list of all preferences supported by Frontier. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_describe_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1DescribePreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_describe_preferences_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Describe preferences + + Returns a list of all preferences supported by Frontier. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_describe_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1DescribePreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_describe_preferences_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/preferences/traits', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_current_user_preferences( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListCurrentUserPreferencesResponse: + """List current user preferences + + List a user preferences by ID. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_current_user_preferences_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListCurrentUserPreferencesResponse]: + """List current user preferences + + List a user preferences by ID. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_current_user_preferences_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List current user preferences + + List a user preferences by ID. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_preferences_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_current_user_preferences_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/self/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_group_preferences( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListGroupPreferencesResponse: + """List group preferences + + List a group preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_group_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_group_preferences_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListGroupPreferencesResponse]: + """List group preferences + + List a group preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_group_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_group_preferences_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List group preferences + + List a group preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_group_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListGroupPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_group_preferences_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/groups/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_preferences( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationPreferencesResponse: + """List organization preferences + + List an organization preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_preferences_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationPreferencesResponse]: + """List organization preferences + + List an organization preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_preferences_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organization preferences + + List an organization preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_preferences_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_project_preferences( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectPreferencesResponse: + """List project preferences + + List a project preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_project_preferences_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectPreferencesResponse]: + """List project preferences + + List a project preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_project_preferences_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List project preferences + + List a project preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_project_preferences_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_user_preferences( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListUserPreferencesResponse: + """List user preferences + + List a user preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_user_preferences_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListUserPreferencesResponse]: + """List user preferences + + List a user preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_user_preferences_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List user preferences + + List a user preferences by ID. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_preferences_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserPreferencesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_user_preferences_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/{id}/preferences', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/project_api.py b/frontier_api/api/project_api.py new file mode 100644 index 0000000..ff87c1e --- /dev/null +++ b/frontier_api/api/project_api.py @@ -0,0 +1,3313 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictBool, StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.v1beta1_create_project_response import V1beta1CreateProjectResponse +from frontier_api.models.v1beta1_get_project_response import V1beta1GetProjectResponse +from frontier_api.models.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse +from frontier_api.models.v1beta1_list_project_groups_response import V1beta1ListProjectGroupsResponse +from frontier_api.models.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse +from frontier_api.models.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse +from frontier_api.models.v1beta1_list_projects_response import V1beta1ListProjectsResponse +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody +from frontier_api.models.v1beta1_update_project_response import V1beta1UpdateProjectResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class ProjectApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_list_projects( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectsResponse: + """List all projects + + Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state. + + :param org_id: The organization id to filter by. + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_projects_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_projects_with_http_info( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectsResponse]: + """List all projects + + Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state. + + :param org_id: The organization id to filter by. + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_projects_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_projects_without_preload_content( + self, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all projects + + Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state. + + :param org_id: The organization id to filter by. + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_projects_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_projects_serialize( + self, + org_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/admin/projects', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_project( + self, + body: V1beta1ProjectRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateProjectResponse: + """Create project + + + :param body: (required) + :type body: V1beta1ProjectRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_project_with_http_info( + self, + body: V1beta1ProjectRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateProjectResponse]: + """Create project + + + :param body: (required) + :type body: V1beta1ProjectRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_project_without_preload_content( + self, + body: V1beta1ProjectRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create project + + + :param body: (required) + :type body: V1beta1ProjectRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_project_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/projects', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_project( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete Project + + Delete a project all of its relations permanently. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_project_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_project_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete Project + + Delete a project all of its relations permanently. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_project_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_project_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete Project + + Delete a project all of its relations permanently. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_project_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_project_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/projects/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_disable_project( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Disable project + + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_disable_project_with_http_info( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Disable project + + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_disable_project_without_preload_content( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Disable project + + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_disable_project_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/projects/{id}/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_enable_project( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Enable project + + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_enable_project_with_http_info( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Enable project + + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_enable_project_without_preload_content( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enable project + + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_enable_project_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/projects/{id}/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_project( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetProjectResponse: + """Get project + + Returns a project by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_project_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_project_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetProjectResponse]: + """Get project + + Returns a project by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_project_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_project_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get project + + Returns a project by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_project_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_project_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_project_admins( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectAdminsResponse: + """List project admins + + Returns a collection of admins of a project + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_admins_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectAdminsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_project_admins_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectAdminsResponse]: + """List project admins + + Returns a collection of admins of a project + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_admins_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectAdminsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_project_admins_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List project admins + + Returns a collection of admins of a project + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_admins_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectAdminsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_project_admins_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{id}/admins', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_project_groups( + self, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectGroupsResponse: + """List project groups + + Returns a collection of groups of a project. + + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_groups_serialize( + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_project_groups_with_http_info( + self, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectGroupsResponse]: + """List project groups + + Returns a collection of groups of a project. + + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_groups_serialize( + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_project_groups_without_preload_content( + self, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List project groups + + Returns a collection of groups of a project. + + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_groups_serialize( + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_project_groups_serialize( + self, + id, + with_roles, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if with_roles is not None: + + _query_params.append(('withRoles', with_roles)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{id}/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_project_service_users( + self, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectServiceUsersResponse: + """List project serviceusers + + Returns a collection of users of a project. + + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_service_users_serialize( + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_project_service_users_with_http_info( + self, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectServiceUsersResponse]: + """List project serviceusers + + Returns a collection of users of a project. + + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_service_users_serialize( + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_project_service_users_without_preload_content( + self, + id: StrictStr, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List project serviceusers + + Returns a collection of users of a project. + + :param id: (required) + :type id: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_service_users_serialize( + id=id, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_project_service_users_serialize( + self, + id, + with_roles, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if with_roles is not None: + + _query_params.append(('withRoles', with_roles)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{id}/serviceusers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_project_users( + self, + id: StrictStr, + permission_filter: Optional[StrictStr] = None, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectUsersResponse: + """List project users + + Returns a collection of users of a project. Filter by user permissions is supported. + + :param id: (required) + :type id: str + :param permission_filter: + :type permission_filter: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_users_serialize( + id=id, + permission_filter=permission_filter, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_project_users_with_http_info( + self, + id: StrictStr, + permission_filter: Optional[StrictStr] = None, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectUsersResponse]: + """List project users + + Returns a collection of users of a project. Filter by user permissions is supported. + + :param id: (required) + :type id: str + :param permission_filter: + :type permission_filter: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_users_serialize( + id=id, + permission_filter=permission_filter, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_project_users_without_preload_content( + self, + id: StrictStr, + permission_filter: Optional[StrictStr] = None, + with_roles: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List project users + + Returns a collection of users of a project. Filter by user permissions is supported. + + :param id: (required) + :type id: str + :param permission_filter: + :type permission_filter: str + :param with_roles: + :type with_roles: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_users_serialize( + id=id, + permission_filter=permission_filter, + with_roles=with_roles, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_project_users_serialize( + self, + id, + permission_filter, + with_roles, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if permission_filter is not None: + + _query_params.append(('permissionFilter', permission_filter)) + + if with_roles is not None: + + _query_params.append(('withRoles', with_roles)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{id}/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_project( + self, + id: StrictStr, + body: V1beta1ProjectRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateProjectResponse: + """Update project + + Updates a project by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1ProjectRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_project_with_http_info( + self, + id: StrictStr, + body: V1beta1ProjectRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateProjectResponse]: + """Update project + + Updates a project by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1ProjectRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_project_without_preload_content( + self, + id: StrictStr, + body: V1beta1ProjectRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update project + + Updates a project by ID + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1ProjectRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_project_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateProjectResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_project_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/projects/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/relation_api.py b/frontier_api/api/relation_api.py new file mode 100644 index 0000000..bd9988d --- /dev/null +++ b/frontier_api/api/relation_api.py @@ -0,0 +1,1195 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Union + +from frontier_api.models.v1beta1_create_relation_response import V1beta1CreateRelationResponse +from frontier_api.models.v1beta1_get_relation_response import V1beta1GetRelationResponse +from frontier_api.models.v1beta1_list_relations_response import V1beta1ListRelationsResponse +from frontier_api.models.v1beta1_relation_request_body import V1beta1RelationRequestBody + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class RelationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_list_relations( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListRelationsResponse: + """List all relations + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_relations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListRelationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_relations_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListRelationsResponse]: + """List all relations + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_relations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListRelationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_relations_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all relations + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_relations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListRelationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_relations_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/admin/relations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_relation( + self, + body: V1beta1RelationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateRelationResponse: + """Create relation + + + :param body: (required) + :type body: V1beta1RelationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_relation_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateRelationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_relation_with_http_info( + self, + body: V1beta1RelationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateRelationResponse]: + """Create relation + + + :param body: (required) + :type body: V1beta1RelationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_relation_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateRelationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_relation_without_preload_content( + self, + body: V1beta1RelationRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create relation + + + :param body: (required) + :type body: V1beta1RelationRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_relation_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateRelationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_relation_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/relations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_relation( + self, + relation: StrictStr, + object: Annotated[StrictStr, Field(description="objectnamespace:uuid")], + subject: Annotated[StrictStr, Field(description="subjectnamespace:uuid")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete relation + + Remove a subject having a relation from an object + + :param relation: (required) + :type relation: str + :param object: objectnamespace:uuid (required) + :type object: str + :param subject: subjectnamespace:uuid (required) + :type subject: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_relation_serialize( + relation=relation, + object=object, + subject=subject, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_relation_with_http_info( + self, + relation: StrictStr, + object: Annotated[StrictStr, Field(description="objectnamespace:uuid")], + subject: Annotated[StrictStr, Field(description="subjectnamespace:uuid")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete relation + + Remove a subject having a relation from an object + + :param relation: (required) + :type relation: str + :param object: objectnamespace:uuid (required) + :type object: str + :param subject: subjectnamespace:uuid (required) + :type subject: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_relation_serialize( + relation=relation, + object=object, + subject=subject, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_relation_without_preload_content( + self, + relation: StrictStr, + object: Annotated[StrictStr, Field(description="objectnamespace:uuid")], + subject: Annotated[StrictStr, Field(description="subjectnamespace:uuid")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete relation + + Remove a subject having a relation from an object + + :param relation: (required) + :type relation: str + :param object: objectnamespace:uuid (required) + :type object: str + :param subject: subjectnamespace:uuid (required) + :type subject: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_relation_serialize( + relation=relation, + object=object, + subject=subject, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_relation_serialize( + self, + relation, + object, + subject, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if relation is not None: + _path_params['relation'] = relation + if object is not None: + _path_params['object'] = object + if subject is not None: + _path_params['subject'] = subject + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/relations/{relation}/object/{object}/subject/{subject}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_relation( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetRelationResponse: + """Get relation + + Returns a relation by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_relation_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetRelationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_relation_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetRelationResponse]: + """Get relation + + Returns a relation by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_relation_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetRelationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_relation_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get relation + + Returns a relation by ID + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_relation_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetRelationResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_relation_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/relations/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/resource_api.py b/frontier_api/api/resource_api.py new file mode 100644 index 0000000..664be50 --- /dev/null +++ b/frontier_api/api/resource_api.py @@ -0,0 +1,1920 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse +from frontier_api.models.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse +from frontier_api.models.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse +from frontier_api.models.v1beta1_list_resources_response import V1beta1ListResourcesResponse +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody +from frontier_api.models.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class ResourceApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_list_resources( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + project_id: Annotated[Optional[StrictStr], Field(description="The project id to filter by.")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + namespace: Annotated[Optional[StrictStr], Field(description="The namespace to filter by.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListResourcesResponse: + """List all resources + + Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace. + + :param user_id: The user id to filter by. + :type user_id: str + :param project_id: The project id to filter by. + :type project_id: str + :param organization_id: The organization id to filter by. + :type organization_id: str + :param namespace: The namespace to filter by. + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_resources_serialize( + user_id=user_id, + project_id=project_id, + organization_id=organization_id, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListResourcesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_resources_with_http_info( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + project_id: Annotated[Optional[StrictStr], Field(description="The project id to filter by.")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + namespace: Annotated[Optional[StrictStr], Field(description="The namespace to filter by.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListResourcesResponse]: + """List all resources + + Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace. + + :param user_id: The user id to filter by. + :type user_id: str + :param project_id: The project id to filter by. + :type project_id: str + :param organization_id: The organization id to filter by. + :type organization_id: str + :param namespace: The namespace to filter by. + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_resources_serialize( + user_id=user_id, + project_id=project_id, + organization_id=organization_id, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListResourcesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_resources_without_preload_content( + self, + user_id: Annotated[Optional[StrictStr], Field(description="The user id to filter by.")] = None, + project_id: Annotated[Optional[StrictStr], Field(description="The project id to filter by.")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + namespace: Annotated[Optional[StrictStr], Field(description="The namespace to filter by.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all resources + + Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace. + + :param user_id: The user id to filter by. + :type user_id: str + :param project_id: The project id to filter by. + :type project_id: str + :param organization_id: The organization id to filter by. + :type organization_id: str + :param namespace: The namespace to filter by. + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_resources_serialize( + user_id=user_id, + project_id=project_id, + organization_id=organization_id, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListResourcesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_resources_serialize( + self, + user_id, + project_id, + organization_id, + namespace, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if project_id is not None: + + _query_params.append(('projectId', project_id)) + + if organization_id is not None: + + _query_params.append(('organizationId', organization_id)) + + if namespace is not None: + + _query_params.append(('namespace', namespace)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/admin/resources', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_project_resource( + self, + project_id: Annotated[StrictStr, Field(description="project uuid or name")], + body: V1beta1ResourceRequestBody, + id: Annotated[Optional[StrictStr], Field(description="Autogenerated if skipped.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateProjectResourceResponse: + """Create resource + + Creates a resource in a project + + :param project_id: project uuid or name (required) + :type project_id: str + :param body: (required) + :type body: V1beta1ResourceRequestBody + :param id: Autogenerated if skipped. + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_resource_serialize( + project_id=project_id, + body=body, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_project_resource_with_http_info( + self, + project_id: Annotated[StrictStr, Field(description="project uuid or name")], + body: V1beta1ResourceRequestBody, + id: Annotated[Optional[StrictStr], Field(description="Autogenerated if skipped.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateProjectResourceResponse]: + """Create resource + + Creates a resource in a project + + :param project_id: project uuid or name (required) + :type project_id: str + :param body: (required) + :type body: V1beta1ResourceRequestBody + :param id: Autogenerated if skipped. + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_resource_serialize( + project_id=project_id, + body=body, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_project_resource_without_preload_content( + self, + project_id: Annotated[StrictStr, Field(description="project uuid or name")], + body: V1beta1ResourceRequestBody, + id: Annotated[Optional[StrictStr], Field(description="Autogenerated if skipped.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create resource + + Creates a resource in a project + + :param project_id: project uuid or name (required) + :type project_id: str + :param body: (required) + :type body: V1beta1ResourceRequestBody + :param id: Autogenerated if skipped. + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_project_resource_serialize( + project_id=project_id, + body=body, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_project_resource_serialize( + self, + project_id, + body, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params['projectId'] = project_id + # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/projects/{projectId}/resources', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_project_resource( + self, + project_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete resource + + Deletes a resource from a project permanently + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_project_resource_serialize( + project_id=project_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_project_resource_with_http_info( + self, + project_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete resource + + Deletes a resource from a project permanently + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_project_resource_serialize( + project_id=project_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_project_resource_without_preload_content( + self, + project_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete resource + + Deletes a resource from a project permanently + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_project_resource_serialize( + project_id=project_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_project_resource_serialize( + self, + project_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params['projectId'] = project_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/projects/{projectId}/resources/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_project_resource( + self, + project_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetProjectResourceResponse: + """Get resource + + Returns a project resource by ID + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_project_resource_serialize( + project_id=project_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_project_resource_with_http_info( + self, + project_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetProjectResourceResponse]: + """Get resource + + Returns a project resource by ID + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_project_resource_serialize( + project_id=project_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_project_resource_without_preload_content( + self, + project_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get resource + + Returns a project resource by ID + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_project_resource_serialize( + project_id=project_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_project_resource_serialize( + self, + project_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params['projectId'] = project_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{projectId}/resources/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_project_resources( + self, + project_id: StrictStr, + namespace: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectResourcesResponse: + """Get all resources + + + :param project_id: (required) + :type project_id: str + :param namespace: + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_resources_serialize( + project_id=project_id, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectResourcesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_project_resources_with_http_info( + self, + project_id: StrictStr, + namespace: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectResourcesResponse]: + """Get all resources + + + :param project_id: (required) + :type project_id: str + :param namespace: + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_resources_serialize( + project_id=project_id, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectResourcesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_project_resources_without_preload_content( + self, + project_id: StrictStr, + namespace: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get all resources + + + :param project_id: (required) + :type project_id: str + :param namespace: + :type namespace: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_project_resources_serialize( + project_id=project_id, + namespace=namespace, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectResourcesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_project_resources_serialize( + self, + project_id, + namespace, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params['projectId'] = project_id + # process the query parameters + if namespace is not None: + + _query_params.append(('namespace', namespace)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/projects/{projectId}/resources', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_project_resource( + self, + project_id: StrictStr, + id: StrictStr, + body: V1beta1ResourceRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateProjectResourceResponse: + """Update resource + + Updates a resource in a project + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1ResourceRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_project_resource_serialize( + project_id=project_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_project_resource_with_http_info( + self, + project_id: StrictStr, + id: StrictStr, + body: V1beta1ResourceRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateProjectResourceResponse]: + """Update resource + + Updates a resource in a project + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1ResourceRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_project_resource_serialize( + project_id=project_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_project_resource_without_preload_content( + self, + project_id: StrictStr, + id: StrictStr, + body: V1beta1ResourceRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update resource + + Updates a resource in a project + + :param project_id: (required) + :type project_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1ResourceRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_project_resource_serialize( + project_id=project_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateProjectResourceResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_project_resource_serialize( + self, + project_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params['projectId'] = project_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/projects/{projectId}/resources/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/role_api.py b/frontier_api/api/role_api.py new file mode 100644 index 0000000..d2cd89b --- /dev/null +++ b/frontier_api/api/role_api.py @@ -0,0 +1,2774 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, List, Optional, Union + +from frontier_api.models.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse +from frontier_api.models.v1beta1_create_role_response import V1beta1CreateRoleResponse +from frontier_api.models.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse +from frontier_api.models.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse +from frontier_api.models.v1beta1_list_roles_response import V1beta1ListRolesResponse +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.models.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse +from frontier_api.models.v1beta1_update_role_response import V1beta1UpdateRoleResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class RoleApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_create_role( + self, + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateRoleResponse: + """Create platform role + + Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance. + + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_role_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_create_role_with_http_info( + self, + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateRoleResponse]: + """Create platform role + + Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance. + + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_role_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_create_role_without_preload_content( + self, + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create platform role + + Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance. + + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_create_role_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_create_role_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_service_delete_role( + self, + id: Annotated[StrictStr, Field(description="The role id to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete platform role + + Delete a platform wide role and all of its relations. + + :param id: The role id to delete. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_delete_role_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_delete_role_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The role id to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete platform role + + Delete a platform wide role and all of its relations. + + :param id: The role id to delete. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_delete_role_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_delete_role_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The role id to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete platform role + + Delete a platform wide role and all of its relations. + + :param id: The role id to delete. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_delete_role_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_delete_role_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/roles/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_service_update_role( + self, + id: Annotated[StrictStr, Field(description="The role id to update.")], + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateRoleResponse: + """Update role + + Update a role title, description and permissions. + + :param id: The role id to update. (required) + :type id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_update_role_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_update_role_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The role id to update.")], + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateRoleResponse]: + """Update role + + Update a role title, description and permissions. + + :param id: The role id to update. (required) + :type id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_update_role_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_update_role_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The role id to update.")], + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update role + + Update a role title, description and permissions. + + :param id: The role id to update. (required) + :type id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_update_role_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_update_role_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/roles/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_organization_role( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the role belongs to.")], + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateOrganizationRoleResponse: + """Create organization role + + Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + + :param org_id: The organization ID to which the role belongs to. (required) + :type org_id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_role_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_organization_role_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the role belongs to.")], + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateOrganizationRoleResponse]: + """Create organization role + + Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + + :param org_id: The organization ID to which the role belongs to. (required) + :type org_id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_role_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_organization_role_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to which the role belongs to.")], + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create organization role + + Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + + :param org_id: The organization ID to which the role belongs to. (required) + :type org_id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_organization_role_serialize( + org_id=org_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_organization_role_serialize( + self, + org_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_organization_role( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete organization role + + Delete a custom role and all of its relations under an organization permanently. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_role_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_organization_role_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete organization role + + Delete a custom role and all of its relations under an organization permanently. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_role_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_organization_role_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete organization role + + Delete a custom role and all of its relations under an organization permanently. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_organization_role_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_organization_role_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/organizations/{orgId}/roles/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_organization_role( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetOrganizationRoleResponse: + """Get organization role + + Returns a custom role under an organization along with its associated permissions + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_role_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_organization_role_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetOrganizationRoleResponse]: + """Get organization role + + Returns a custom role under an organization along with its associated permissions + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_role_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_organization_role_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get organization role + + Returns a custom role under an organization along with its associated permissions + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_organization_role_serialize( + org_id=org_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_organization_role_serialize( + self, + org_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/roles/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organization_roles( + self, + org_id: StrictStr, + state: Optional[StrictStr] = None, + scopes: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationRolesResponse: + """List organization roles + + Returns a list of custom roles created under an organization with their associated permissions + + :param org_id: (required) + :type org_id: str + :param state: + :type state: str + :param scopes: + :type scopes: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_roles_serialize( + org_id=org_id, + state=state, + scopes=scopes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationRolesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organization_roles_with_http_info( + self, + org_id: StrictStr, + state: Optional[StrictStr] = None, + scopes: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationRolesResponse]: + """List organization roles + + Returns a list of custom roles created under an organization with their associated permissions + + :param org_id: (required) + :type org_id: str + :param state: + :type state: str + :param scopes: + :type scopes: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_roles_serialize( + org_id=org_id, + state=state, + scopes=scopes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationRolesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organization_roles_without_preload_content( + self, + org_id: StrictStr, + state: Optional[StrictStr] = None, + scopes: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organization roles + + Returns a list of custom roles created under an organization with their associated permissions + + :param org_id: (required) + :type org_id: str + :param state: + :type state: str + :param scopes: + :type scopes: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organization_roles_serialize( + org_id=org_id, + state=state, + scopes=scopes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationRolesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organization_roles_serialize( + self, + org_id, + state, + scopes, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + 'scopes': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + # process the query parameters + if state is not None: + + _query_params.append(('state', state)) + + if scopes is not None: + + _query_params.append(('scopes', scopes)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_roles( + self, + state: Optional[StrictStr] = None, + scopes: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListRolesResponse: + """List platform roles + + Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions + + :param state: + :type state: str + :param scopes: + :type scopes: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_roles_serialize( + state=state, + scopes=scopes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListRolesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_roles_with_http_info( + self, + state: Optional[StrictStr] = None, + scopes: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListRolesResponse]: + """List platform roles + + Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions + + :param state: + :type state: str + :param scopes: + :type scopes: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_roles_serialize( + state=state, + scopes=scopes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListRolesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_roles_without_preload_content( + self, + state: Optional[StrictStr] = None, + scopes: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List platform roles + + Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions + + :param state: + :type state: str + :param scopes: + :type scopes: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_roles_serialize( + state=state, + scopes=scopes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListRolesResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_roles_serialize( + self, + state, + scopes, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + 'scopes': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if state is not None: + + _query_params.append(('state', state)) + + if scopes is not None: + + _query_params.append(('scopes', scopes)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/roles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_organization_role( + self, + org_id: StrictStr, + id: StrictStr, + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateOrganizationRoleResponse: + """Update organization role + + Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_organization_role_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_organization_role_with_http_info( + self, + org_id: StrictStr, + id: StrictStr, + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateOrganizationRoleResponse]: + """Update organization role + + Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_organization_role_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_organization_role_without_preload_content( + self, + org_id: StrictStr, + id: StrictStr, + body: V1beta1RoleRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update organization role + + Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization. + + :param org_id: (required) + :type org_id: str + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1RoleRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_organization_role_serialize( + org_id=org_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateOrganizationRoleResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_organization_role_serialize( + self, + org_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/organizations/{orgId}/roles/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/service_user_api.py b/frontier_api/api/service_user_api.py new file mode 100644 index 0000000..0453366 --- /dev/null +++ b/frontier_api/api/service_user_api.py @@ -0,0 +1,3289 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Optional, Union + +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest +from frontier_api.models.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse +from frontier_api.models.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest +from frontier_api.models.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse +from frontier_api.models.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse +from frontier_api.models.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse +from frontier_api.models.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse +from frontier_api.models.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse +from frontier_api.models.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse +from frontier_api.models.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class ServiceUserApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_service_user( + self, + body: V1beta1CreateServiceUserRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateServiceUserResponse: + """Create service user + + Create a service user. + + :param body: (required) + :type body: V1beta1CreateServiceUserRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_service_user_with_http_info( + self, + body: V1beta1CreateServiceUserRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateServiceUserResponse]: + """Create service user + + Create a service user. + + :param body: (required) + :type body: V1beta1CreateServiceUserRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_service_user_without_preload_content( + self, + body: V1beta1CreateServiceUserRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create service user + + Create a service user. + + :param body: (required) + :type body: V1beta1CreateServiceUserRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_service_user_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/serviceusers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_service_user_key( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to create a key for.")], + body: FrontierServiceCreateServiceUserKeyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateServiceUserKeyResponse: + """Create service user key + + Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client. + + :param id: The unique ID of the service user to create a key for. (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateServiceUserKeyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_key_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserKeyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_service_user_key_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to create a key for.")], + body: FrontierServiceCreateServiceUserKeyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateServiceUserKeyResponse]: + """Create service user key + + Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client. + + :param id: The unique ID of the service user to create a key for. (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateServiceUserKeyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_key_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserKeyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_service_user_key_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to create a key for.")], + body: FrontierServiceCreateServiceUserKeyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create service user key + + Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client. + + :param id: The unique ID of the service user to create a key for. (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateServiceUserKeyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_key_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserKeyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_service_user_key_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/serviceusers/{id}/keys', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_service_user_secret( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to create a key for.")], + body: FrontierServiceCreateServiceUserKeyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateServiceUserSecretResponse: + """Create service user secret + + Generate a service user secret and return it. The secret value will not be persisted and should be securely stored by client. + + :param id: The unique ID of the service user to create a key for. (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateServiceUserKeyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_secret_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserSecretResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_service_user_secret_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to create a key for.")], + body: FrontierServiceCreateServiceUserKeyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateServiceUserSecretResponse]: + """Create service user secret + + Generate a service user secret and return it. The secret value will not be persisted and should be securely stored by client. + + :param id: The unique ID of the service user to create a key for. (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateServiceUserKeyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_secret_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserSecretResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_service_user_secret_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to create a key for.")], + body: FrontierServiceCreateServiceUserKeyRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create service user secret + + Generate a service user secret and return it. The secret value will not be persisted and should be securely stored by client. + + :param id: The unique ID of the service user to create a key for. (required) + :type id: str + :param body: (required) + :type body: FrontierServiceCreateServiceUserKeyRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_service_user_secret_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateServiceUserSecretResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_service_user_secret_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/serviceusers/{id}/secrets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_service_user( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete.")], + org_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete service user + + Delete a service user permanently and all of its relations (keys, organizations, roles, etc) + + :param id: The unique ID of the service user to delete. (required) + :type id: str + :param org_id: + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_serialize( + id=id, + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_service_user_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete.")], + org_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete service user + + Delete a service user permanently and all of its relations (keys, organizations, roles, etc) + + :param id: The unique ID of the service user to delete. (required) + :type id: str + :param org_id: + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_serialize( + id=id, + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_service_user_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete.")], + org_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete service user + + Delete a service user permanently and all of its relations (keys, organizations, roles, etc) + + :param id: The unique ID of the service user to delete. (required) + :type id: str + :param org_id: + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_serialize( + id=id, + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_service_user_serialize( + self, + id, + org_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/serviceusers/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_service_user_key( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete a key for.")], + key_id: Annotated[StrictStr, Field(description="The unique ID of the key to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete service user key + + Delete a service user key permanently. + + :param id: The unique ID of the service user to delete a key for. (required) + :type id: str + :param key_id: The unique ID of the key to delete. (required) + :type key_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_key_serialize( + id=id, + key_id=key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_service_user_key_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete a key for.")], + key_id: Annotated[StrictStr, Field(description="The unique ID of the key to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete service user key + + Delete a service user key permanently. + + :param id: The unique ID of the service user to delete a key for. (required) + :type id: str + :param key_id: The unique ID of the key to delete. (required) + :type key_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_key_serialize( + id=id, + key_id=key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_service_user_key_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete a key for.")], + key_id: Annotated[StrictStr, Field(description="The unique ID of the key to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete service user key + + Delete a service user key permanently. + + :param id: The unique ID of the service user to delete a key for. (required) + :type id: str + :param key_id: The unique ID of the key to delete. (required) + :type key_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_key_serialize( + id=id, + key_id=key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_service_user_key_serialize( + self, + id, + key_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + if key_id is not None: + _path_params['keyId'] = key_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/serviceusers/{id}/keys/{keyId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_service_user_secret( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete a secret for.")], + secret_id: Annotated[StrictStr, Field(description="The unique ID of the secret to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete service user secret + + Delete a service user secret credential. + + :param id: The unique ID of the service user to delete a secret for. (required) + :type id: str + :param secret_id: The unique ID of the secret to delete. (required) + :type secret_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_secret_serialize( + id=id, + secret_id=secret_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_service_user_secret_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete a secret for.")], + secret_id: Annotated[StrictStr, Field(description="The unique ID of the secret to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete service user secret + + Delete a service user secret credential. + + :param id: The unique ID of the service user to delete a secret for. (required) + :type id: str + :param secret_id: The unique ID of the secret to delete. (required) + :type secret_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_secret_serialize( + id=id, + secret_id=secret_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_service_user_secret_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to delete a secret for.")], + secret_id: Annotated[StrictStr, Field(description="The unique ID of the secret to delete.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete service user secret + + Delete a service user secret credential. + + :param id: The unique ID of the service user to delete a secret for. (required) + :type id: str + :param secret_id: The unique ID of the secret to delete. (required) + :type secret_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_service_user_secret_serialize( + id=id, + secret_id=secret_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_service_user_secret_serialize( + self, + id, + secret_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + if secret_id is not None: + _path_params['secretId'] = secret_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/serviceusers/{id}/secrets/{secretId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_service_user( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to get.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetServiceUserResponse: + """Get service user + + Get service user details by its id. + + :param id: The unique ID of the service user to get. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_service_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetServiceUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_service_user_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to get.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetServiceUserResponse]: + """Get service user + + Get service user details by its id. + + :param id: The unique ID of the service user to get. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_service_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetServiceUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_service_user_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to get.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get service user + + Get service user details by its id. + + :param id: The unique ID of the service user to get. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_service_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetServiceUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_service_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/serviceusers/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_service_user_key( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to get a key for.")], + key_id: Annotated[StrictStr, Field(description="The unique ID of the key to get.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetServiceUserKeyResponse: + """Get service user key + + Get a service user public RSA JWK set. + + :param id: The unique ID of the service user to get a key for. (required) + :type id: str + :param key_id: The unique ID of the key to get. (required) + :type key_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_service_user_key_serialize( + id=id, + key_id=key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetServiceUserKeyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_service_user_key_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to get a key for.")], + key_id: Annotated[StrictStr, Field(description="The unique ID of the key to get.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetServiceUserKeyResponse]: + """Get service user key + + Get a service user public RSA JWK set. + + :param id: The unique ID of the service user to get a key for. (required) + :type id: str + :param key_id: The unique ID of the key to get. (required) + :type key_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_service_user_key_serialize( + id=id, + key_id=key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetServiceUserKeyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_service_user_key_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to get a key for.")], + key_id: Annotated[StrictStr, Field(description="The unique ID of the key to get.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get service user key + + Get a service user public RSA JWK set. + + :param id: The unique ID of the service user to get a key for. (required) + :type id: str + :param key_id: The unique ID of the key to get. (required) + :type key_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_service_user_key_serialize( + id=id, + key_id=key_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetServiceUserKeyResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_service_user_key_serialize( + self, + id, + key_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + if key_id is not None: + _path_params['keyId'] = key_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/serviceusers/{id}/keys/{keyId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_service_user_keys( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to list keys for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListServiceUserKeysResponse: + """List service user keys + + List all the keys of a service user with its details except jwk. + + :param id: The unique ID of the service user to list keys for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_user_keys_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUserKeysResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_service_user_keys_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to list keys for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListServiceUserKeysResponse]: + """List service user keys + + List all the keys of a service user with its details except jwk. + + :param id: The unique ID of the service user to list keys for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_user_keys_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUserKeysResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_service_user_keys_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to list keys for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List service user keys + + List all the keys of a service user with its details except jwk. + + :param id: The unique ID of the service user to list keys for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_user_keys_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUserKeysResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_service_user_keys_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/serviceusers/{id}/keys', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_service_user_secrets( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to list secrets for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListServiceUserSecretsResponse: + """List service user secrets + + List all the secrets of a service user. + + :param id: The unique ID of the service user to list secrets for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_user_secrets_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUserSecretsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_service_user_secrets_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to list secrets for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListServiceUserSecretsResponse]: + """List service user secrets + + List all the secrets of a service user. + + :param id: The unique ID of the service user to list secrets for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_user_secrets_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUserSecretsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_service_user_secrets_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the service user to list secrets for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List service user secrets + + List all the secrets of a service user. + + :param id: The unique ID of the service user to list secrets for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_user_secrets_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUserSecretsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_service_user_secrets_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/serviceusers/{id}/secrets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_service_users( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to filter service users by.")], + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListServiceUsersResponse: + """List org service users + + Returns the service user of an organization in a Frontier instance. It can be filter by it's state + + :param org_id: The organization ID to filter service users by. (required) + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_users_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_service_users_with_http_info( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to filter service users by.")], + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListServiceUsersResponse]: + """List org service users + + Returns the service user of an organization in a Frontier instance. It can be filter by it's state + + :param org_id: The organization ID to filter service users by. (required) + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_users_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_service_users_without_preload_content( + self, + org_id: Annotated[StrictStr, Field(description="The organization ID to filter service users by.")], + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List org service users + + Returns the service user of an organization in a Frontier instance. It can be filter by it's state + + :param org_id: The organization ID to filter service users by. (required) + :type org_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_service_users_serialize( + org_id=org_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListServiceUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_service_users_serialize( + self, + org_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/serviceusers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/subscription_api.py b/frontier_api/api/subscription_api.py new file mode 100644 index 0000000..6a58127 --- /dev/null +++ b/frontier_api/api/subscription_api.py @@ -0,0 +1,1306 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Union + +from frontier_api.models.frontier_service_update_subscription_request import FrontierServiceUpdateSubscriptionRequest +from frontier_api.models.v1beta1_get_subscription_response import V1beta1GetSubscriptionResponse +from frontier_api.models.v1beta1_list_subscriptions_response import V1beta1ListSubscriptionsResponse +from frontier_api.models.v1beta1_update_subscription_response import V1beta1UpdateSubscriptionResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class SubscriptionApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_cancel_subscription( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to cancel")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Cancel subscription + + Cancel a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to cancel (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_cancel_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_cancel_subscription_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to cancel")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Cancel subscription + + Cancel a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to cancel (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_cancel_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_cancel_subscription_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to cancel")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Cancel subscription + + Cancel a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to cancel (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_cancel_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_cancel_subscription_serialize( + self, + org_id, + billing_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id}/cancel', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_subscription( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to get the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetSubscriptionResponse: + """Get subscription + + Get a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to get the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetSubscriptionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_subscription_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to get the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetSubscriptionResponse]: + """Get subscription + + Get a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to get the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetSubscriptionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_subscription_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to get the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to get")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get subscription + + Get a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to get the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to get (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetSubscriptionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_subscription_serialize( + self, + org_id, + billing_id, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_subscriptions( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to list subscriptions for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListSubscriptionsResponse: + """List subscriptions + + List subscriptions of a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to list subscriptions for (required) + :type billing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_subscriptions_serialize( + org_id=org_id, + billing_id=billing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListSubscriptionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_subscriptions_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to list subscriptions for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListSubscriptionsResponse]: + """List subscriptions + + List subscriptions of a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to list subscriptions for (required) + :type billing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_subscriptions_serialize( + org_id=org_id, + billing_id=billing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListSubscriptionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_subscriptions_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to list subscriptions for")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List subscriptions + + List subscriptions of a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to list subscriptions for (required) + :type billing_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_subscriptions_serialize( + org_id=org_id, + billing_id=billing_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListSubscriptionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_subscriptions_serialize( + self, + org_id, + billing_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_subscription( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to update")], + body: FrontierServiceUpdateSubscriptionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateSubscriptionResponse: + """Update subscription + + Update a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdateSubscriptionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateSubscriptionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_subscription_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to update")], + body: FrontierServiceUpdateSubscriptionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateSubscriptionResponse]: + """Update subscription + + Update a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdateSubscriptionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateSubscriptionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_subscription_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + id: Annotated[StrictStr, Field(description="ID of the subscription to update")], + body: FrontierServiceUpdateSubscriptionRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update subscription + + Update a subscription by ID. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param id: ID of the subscription to update (required) + :type id: str + :param body: (required) + :type body: FrontierServiceUpdateSubscriptionRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_subscription_serialize( + org_id=org_id, + billing_id=billing_id, + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateSubscriptionResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_subscription_serialize( + self, + org_id, + billing_id, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/subscriptions/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/transaction_api.py b/frontier_api/api/transaction_api.py new file mode 100644 index 0000000..b0ef220 --- /dev/null +++ b/frontier_api/api/transaction_api.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from datetime import datetime + +from pydantic import StrictStr + +from typing import Optional + +from frontier_api.models.v1beta1_list_billing_transactions_response import V1beta1ListBillingTransactionsResponse + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class TransactionApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_list_billing_transactions( + self, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + org_id: Optional[StrictStr] = None, + since: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListBillingTransactionsResponse: + """List billing transactions + + List all transactions of a billing account. + + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param org_id: + :type org_id: str + :param since: + :type since: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_billing_transactions_serialize( + billing_id=billing_id, + org_id=org_id, + since=since, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListBillingTransactionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_billing_transactions_with_http_info( + self, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + org_id: Optional[StrictStr] = None, + since: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListBillingTransactionsResponse]: + """List billing transactions + + List all transactions of a billing account. + + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param org_id: + :type org_id: str + :param since: + :type since: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_billing_transactions_serialize( + billing_id=billing_id, + org_id=org_id, + since=since, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListBillingTransactionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_billing_transactions_without_preload_content( + self, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + org_id: Optional[StrictStr] = None, + since: Optional[datetime] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List billing transactions + + List all transactions of a billing account. + + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param org_id: + :type org_id: str + :param since: + :type since: datetime + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_billing_transactions_serialize( + billing_id=billing_id, + org_id=org_id, + since=since, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListBillingTransactionsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_billing_transactions_serialize( + self, + billing_id, + org_id, + since, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if billing_id is not None: + _path_params['billingId'] = billing_id + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if since is not None: + if isinstance(since, datetime): + _query_params.append( + ( + 'since', + since.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('since', since)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/billing/{billingId}/transactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/usage_api.py b/frontier_api/api/usage_api.py new file mode 100644 index 0000000..982751a --- /dev/null +++ b/frontier_api/api/usage_api.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictStr + +from typing import Any, Dict, Union + +from frontier_api.models.frontier_service_create_billing_usage_request import FrontierServiceCreateBillingUsageRequest + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class UsageApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def frontier_service_create_billing_usage( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCreateBillingUsageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Create billing usage + + Report a new billing usage for a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCreateBillingUsageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_billing_usage_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_billing_usage_with_http_info( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCreateBillingUsageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Create billing usage + + Report a new billing usage for a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCreateBillingUsageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_billing_usage_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_billing_usage_without_preload_content( + self, + org_id: StrictStr, + billing_id: Annotated[StrictStr, Field(description="ID of the billing account to update the subscription for")], + body: FrontierServiceCreateBillingUsageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create billing usage + + Report a new billing usage for a billing account. + + :param org_id: (required) + :type org_id: str + :param billing_id: ID of the billing account to update the subscription for (required) + :type billing_id: str + :param body: (required) + :type body: FrontierServiceCreateBillingUsageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_billing_usage_serialize( + org_id=org_id, + billing_id=billing_id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_billing_usage_serialize( + self, + org_id, + billing_id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if org_id is not None: + _path_params['orgId'] = org_id + if billing_id is not None: + _path_params['billingId'] = billing_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/organizations/{orgId}/billing/{billingId}/usages', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api/user_api.py b/frontier_api/api/user_api.py new file mode 100644 index 0000000..4bed06e --- /dev/null +++ b/frontier_api/api/user_api.py @@ -0,0 +1,5405 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import io +import warnings + +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Dict, List, Optional, Tuple, Union, Any + +try: + from typing import Annotated +except ImportError: + from typing_extensions import Annotated + +from pydantic import Field +from typing_extensions import Annotated +from pydantic import StrictInt, StrictStr + +from typing import Any, Dict, List, Optional, Union + +from frontier_api.models.v1beta1_create_user_response import V1beta1CreateUserResponse +from frontier_api.models.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse +from frontier_api.models.v1beta1_get_user_response import V1beta1GetUserResponse +from frontier_api.models.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse +from frontier_api.models.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse +from frontier_api.models.v1beta1_list_current_user_invitations_response import V1beta1ListCurrentUserInvitationsResponse +from frontier_api.models.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse +from frontier_api.models.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse +from frontier_api.models.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse +from frontier_api.models.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse +from frontier_api.models.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse +from frontier_api.models.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse +from frontier_api.models.v1beta1_list_users_response import V1beta1ListUsersResponse +from frontier_api.models.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse +from frontier_api.models.v1beta1_update_user_response import V1beta1UpdateUserResponse +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody + +from frontier_api.api_client import ApiClient +from frontier_api.api_response import ApiResponse +from frontier_api.rest import RESTResponseType + + +class UserApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def admin_service_list_all_users( + self, + page_size: Annotated[Optional[StrictInt], Field(description="The maximum number of users to return per page. The default is 50.")] = None, + page_num: Annotated[Optional[StrictInt], Field(description="The page number to return. The default is 1.")] = None, + keyword: Annotated[Optional[StrictStr], Field(description="The keyword to search for. It can be a user's name, email,metadata or id.")] = None, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListAllUsersResponse: + """List all users + + Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. + + :param page_size: The maximum number of users to return per page. The default is 50. + :type page_size: int + :param page_num: The page number to return. The default is 1. + :type page_num: int + :param keyword: The keyword to search for. It can be a user's name, email,metadata or id. + :type keyword: str + :param org_id: The organization id to filter by. + :type org_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_all_users_serialize( + page_size=page_size, + page_num=page_num, + keyword=keyword, + org_id=org_id, + group_id=group_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAllUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_service_list_all_users_with_http_info( + self, + page_size: Annotated[Optional[StrictInt], Field(description="The maximum number of users to return per page. The default is 50.")] = None, + page_num: Annotated[Optional[StrictInt], Field(description="The page number to return. The default is 1.")] = None, + keyword: Annotated[Optional[StrictStr], Field(description="The keyword to search for. It can be a user's name, email,metadata or id.")] = None, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListAllUsersResponse]: + """List all users + + Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. + + :param page_size: The maximum number of users to return per page. The default is 50. + :type page_size: int + :param page_num: The page number to return. The default is 1. + :type page_num: int + :param keyword: The keyword to search for. It can be a user's name, email,metadata or id. + :type keyword: str + :param org_id: The organization id to filter by. + :type org_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_all_users_serialize( + page_size=page_size, + page_num=page_num, + keyword=keyword, + org_id=org_id, + group_id=group_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAllUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_service_list_all_users_without_preload_content( + self, + page_size: Annotated[Optional[StrictInt], Field(description="The maximum number of users to return per page. The default is 50.")] = None, + page_num: Annotated[Optional[StrictInt], Field(description="The page number to return. The default is 1.")] = None, + keyword: Annotated[Optional[StrictStr], Field(description="The keyword to search for. It can be a user's name, email,metadata or id.")] = None, + org_id: Annotated[Optional[StrictStr], Field(description="The organization id to filter by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List all users + + Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. + + :param page_size: The maximum number of users to return per page. The default is 50. + :type page_size: int + :param page_num: The page number to return. The default is 1. + :type page_num: int + :param keyword: The keyword to search for. It can be a user's name, email,metadata or id. + :type keyword: str + :param org_id: The organization id to filter by. + :type org_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_service_list_all_users_serialize( + page_size=page_size, + page_num=page_num, + keyword=keyword, + org_id=org_id, + group_id=group_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListAllUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_service_list_all_users_serialize( + self, + page_size, + page_num, + keyword, + org_id, + group_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page_num is not None: + + _query_params.append(('pageNum', page_num)) + + if keyword is not None: + + _query_params.append(('keyword', keyword)) + + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if group_id is not None: + + _query_params.append(('groupId', group_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/admin/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_create_user( + self, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1CreateUserResponse: + """Create user + + Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name.

*Example:*`{\"email\":\"john.doe@raystack.org\",\"title\":\"John Doe\",metadata:{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}}` + + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_create_user_with_http_info( + self, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1CreateUserResponse]: + """Create user + + Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name.

*Example:*`{\"email\":\"john.doe@raystack.org\",\"title\":\"John Doe\",metadata:{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}}` + + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_create_user_without_preload_content( + self, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create user + + Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name.

*Example:*`{\"email\":\"john.doe@raystack.org\",\"title\":\"John Doe\",metadata:{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}}` + + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_create_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1CreateUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_create_user_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_delete_user( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Delete user + + Delete an user permanently forever and all of its relations (organizations, groups, etc) + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_delete_user_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Delete user + + Delete an user permanently forever and all of its relations (organizations, groups, etc) + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_delete_user_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete user + + Delete an user permanently forever and all of its relations (organizations, groups, etc) + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_delete_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_delete_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1beta1/users/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_disable_user( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Disable user + + Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_disable_user_with_http_info( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Disable user + + Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_disable_user_without_preload_content( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Disable user + + Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_disable_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_disable_user_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/users/{id}/disable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_enable_user( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Enable user + + Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_enable_user_with_http_info( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Enable user + + Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_enable_user_without_preload_content( + self, + id: StrictStr, + body: Dict[str, Any], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Enable user + + Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance. + + :param id: (required) + :type id: str + :param body: (required) + :type body: object + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_enable_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_enable_user_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1beta1/users/{id}/enable', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_current_user( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetCurrentUserResponse: + """Get current user + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_current_user_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_current_user_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetCurrentUserResponse]: + """Get current user + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_current_user_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_current_user_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get current user + + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_current_user_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_current_user_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/self', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_get_user( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1GetUserResponse: + """Get user + + Get a user by id searched over all organizations in Frontier. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_get_user_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1GetUserResponse]: + """Get user + + Get a user by id searched over all organizations in Frontier. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_get_user_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user + + Get a user by id searched over all organizations in Frontier. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_get_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1GetUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_get_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_current_user_groups( + self, + org_id: Annotated[Optional[StrictStr], Field(description="org_id is optional filter over an organization")] = None, + with_permissions: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListCurrentUserGroupsResponse: + """List my groups + + + :param org_id: org_id is optional filter over an organization + :type org_id: str + :param with_permissions: + :type with_permissions: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_groups_serialize( + org_id=org_id, + with_permissions=with_permissions, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_current_user_groups_with_http_info( + self, + org_id: Annotated[Optional[StrictStr], Field(description="org_id is optional filter over an organization")] = None, + with_permissions: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListCurrentUserGroupsResponse]: + """List my groups + + + :param org_id: org_id is optional filter over an organization + :type org_id: str + :param with_permissions: + :type with_permissions: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_groups_serialize( + org_id=org_id, + with_permissions=with_permissions, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_current_user_groups_without_preload_content( + self, + org_id: Annotated[Optional[StrictStr], Field(description="org_id is optional filter over an organization")] = None, + with_permissions: Optional[List[StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List my groups + + + :param org_id: org_id is optional filter over an organization + :type org_id: str + :param with_permissions: + :type with_permissions: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_groups_serialize( + org_id=org_id, + with_permissions=with_permissions, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_current_user_groups_serialize( + self, + org_id, + with_permissions, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + 'withPermissions': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if with_permissions is not None: + + _query_params.append(('withPermissions', with_permissions)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/self/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_current_user_invitations( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListCurrentUserInvitationsResponse: + """List user invitations + + List all the invitations sent to current user. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_invitations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_current_user_invitations_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListCurrentUserInvitationsResponse]: + """List user invitations + + List all the invitations sent to current user. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_invitations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_current_user_invitations_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List user invitations + + List all the invitations sent to current user. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_current_user_invitations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListCurrentUserInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_current_user_invitations_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/self/invitations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organizations_by_current_user( + self, + state: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationsByCurrentUserResponse: + """Get my organizations + + This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + + :param state: + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_by_current_user_serialize( + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsByCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organizations_by_current_user_with_http_info( + self, + state: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationsByCurrentUserResponse]: + """Get my organizations + + This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + + :param state: + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_by_current_user_serialize( + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsByCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organizations_by_current_user_without_preload_content( + self, + state: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get my organizations + + This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + + :param state: + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_by_current_user_serialize( + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsByCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organizations_by_current_user_serialize( + self, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/self/organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_organizations_by_user( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListOrganizationsByUserResponse: + """Get user organizations + + This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_by_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsByUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_organizations_by_user_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListOrganizationsByUserResponse]: + """Get user organizations + + This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_by_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsByUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_organizations_by_user_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user organizations + + This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_organizations_by_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListOrganizationsByUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_organizations_by_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/{id}/organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_projects_by_current_user( + self, + org_id: Annotated[Optional[StrictStr], Field(description="org_id is optional and filter projects by org")] = None, + with_permissions: Annotated[Optional[List[StrictStr]], Field(description="list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectsByCurrentUserResponse: + """Get my projects + + Get all projects the current user belongs to + + :param org_id: org_id is optional and filter projects by org + :type org_id: str + :param with_permissions: list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array + :type with_permissions: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_projects_by_current_user_serialize( + org_id=org_id, + with_permissions=with_permissions, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsByCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_projects_by_current_user_with_http_info( + self, + org_id: Annotated[Optional[StrictStr], Field(description="org_id is optional and filter projects by org")] = None, + with_permissions: Annotated[Optional[List[StrictStr]], Field(description="list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectsByCurrentUserResponse]: + """Get my projects + + Get all projects the current user belongs to + + :param org_id: org_id is optional and filter projects by org + :type org_id: str + :param with_permissions: list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array + :type with_permissions: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_projects_by_current_user_serialize( + org_id=org_id, + with_permissions=with_permissions, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsByCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_projects_by_current_user_without_preload_content( + self, + org_id: Annotated[Optional[StrictStr], Field(description="org_id is optional and filter projects by org")] = None, + with_permissions: Annotated[Optional[List[StrictStr]], Field(description="list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get my projects + + Get all projects the current user belongs to + + :param org_id: org_id is optional and filter projects by org + :type org_id: str + :param with_permissions: list of permissions needs to be checked against each project query params are set as with_permissions=get&with_permissions=delete to be represented as array + :type with_permissions: List[str] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_projects_by_current_user_serialize( + org_id=org_id, + with_permissions=with_permissions, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsByCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_projects_by_current_user_serialize( + self, + org_id, + with_permissions, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + 'withPermissions': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if with_permissions is not None: + + _query_params.append(('withPermissions', with_permissions)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/self/projects', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_projects_by_user( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListProjectsByUserResponse: + """Get user projects + + Get all the projects a user belongs to. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_projects_by_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsByUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_projects_by_user_with_http_info( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListProjectsByUserResponse]: + """Get user projects + + Get all the projects a user belongs to. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_projects_by_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsByUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_projects_by_user_without_preload_content( + self, + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get user projects + + Get all the projects a user belongs to. + + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_projects_by_user_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListProjectsByUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_projects_by_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/{id}/projects', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_user_groups( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the user to get groups for.")], + org_id: Annotated[Optional[StrictStr], Field(description="The organization ID to filter groups by. If not provided, groups from all organizations are returned.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListUserGroupsResponse: + """List user groups + + Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter. + + :param id: The unique ID of the user to get groups for. (required) + :type id: str + :param org_id: The organization ID to filter groups by. If not provided, groups from all organizations are returned. + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_groups_serialize( + id=id, + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_user_groups_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the user to get groups for.")], + org_id: Annotated[Optional[StrictStr], Field(description="The organization ID to filter groups by. If not provided, groups from all organizations are returned.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListUserGroupsResponse]: + """List user groups + + Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter. + + :param id: The unique ID of the user to get groups for. (required) + :type id: str + :param org_id: The organization ID to filter groups by. If not provided, groups from all organizations are returned. + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_groups_serialize( + id=id, + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_user_groups_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique ID of the user to get groups for.")], + org_id: Annotated[Optional[StrictStr], Field(description="The organization ID to filter groups by. If not provided, groups from all organizations are returned.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List user groups + + Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter. + + :param id: The unique ID of the user to get groups for. (required) + :type id: str + :param org_id: The organization ID to filter groups by. If not provided, groups from all organizations are returned. + :type org_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_groups_serialize( + id=id, + org_id=org_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserGroupsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_user_groups_serialize( + self, + id, + org_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/{id}/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_user_invitations( + self, + id: Annotated[StrictStr, Field(description="The user email to list the invitations for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListUserInvitationsResponse: + """List user invitations + + List all the invitations sent to a user. + + :param id: The user email to list the invitations for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_invitations_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_user_invitations_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The user email to list the invitations for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListUserInvitationsResponse]: + """List user invitations + + List all the invitations sent to a user. + + :param id: The user email to list the invitations for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_invitations_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_user_invitations_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The user email to list the invitations for.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List user invitations + + List all the invitations sent to a user. + + :param id: The user email to list the invitations for. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_user_invitations_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUserInvitationsResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_user_invitations_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users/{id}/invitations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_list_users( + self, + page_size: Annotated[Optional[StrictInt], Field(description="The maximum number of users to return per page. The default is 50.")] = None, + page_num: Annotated[Optional[StrictInt], Field(description="The page number to return. The default is 1.")] = None, + keyword: Annotated[Optional[StrictStr], Field(description="The keyword to search for in name or email.")] = None, + org_id: Annotated[Optional[StrictStr], Field(description="The organization ID to filter users by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1ListUsersResponse: + """List public users + + Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination. + + :param page_size: The maximum number of users to return per page. The default is 50. + :type page_size: int + :param page_num: The page number to return. The default is 1. + :type page_num: int + :param keyword: The keyword to search for in name or email. + :type keyword: str + :param org_id: The organization ID to filter users by. + :type org_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_users_serialize( + page_size=page_size, + page_num=page_num, + keyword=keyword, + org_id=org_id, + group_id=group_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_list_users_with_http_info( + self, + page_size: Annotated[Optional[StrictInt], Field(description="The maximum number of users to return per page. The default is 50.")] = None, + page_num: Annotated[Optional[StrictInt], Field(description="The page number to return. The default is 1.")] = None, + keyword: Annotated[Optional[StrictStr], Field(description="The keyword to search for in name or email.")] = None, + org_id: Annotated[Optional[StrictStr], Field(description="The organization ID to filter users by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1ListUsersResponse]: + """List public users + + Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination. + + :param page_size: The maximum number of users to return per page. The default is 50. + :type page_size: int + :param page_num: The page number to return. The default is 1. + :type page_num: int + :param keyword: The keyword to search for in name or email. + :type keyword: str + :param org_id: The organization ID to filter users by. + :type org_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_users_serialize( + page_size=page_size, + page_num=page_num, + keyword=keyword, + org_id=org_id, + group_id=group_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_list_users_without_preload_content( + self, + page_size: Annotated[Optional[StrictInt], Field(description="The maximum number of users to return per page. The default is 50.")] = None, + page_num: Annotated[Optional[StrictInt], Field(description="The page number to return. The default is 1.")] = None, + keyword: Annotated[Optional[StrictStr], Field(description="The keyword to search for in name or email.")] = None, + org_id: Annotated[Optional[StrictStr], Field(description="The organization ID to filter users by.")] = None, + group_id: Annotated[Optional[StrictStr], Field(description="The group id to filter by.")] = None, + state: Annotated[Optional[StrictStr], Field(description="The state to filter by. It can be enabled or disabled.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List public users + + Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination. + + :param page_size: The maximum number of users to return per page. The default is 50. + :type page_size: int + :param page_num: The page number to return. The default is 1. + :type page_num: int + :param keyword: The keyword to search for in name or email. + :type keyword: str + :param org_id: The organization ID to filter users by. + :type org_id: str + :param group_id: The group id to filter by. + :type group_id: str + :param state: The state to filter by. It can be enabled or disabled. + :type state: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_list_users_serialize( + page_size=page_size, + page_num=page_num, + keyword=keyword, + org_id=org_id, + group_id=group_id, + state=state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1ListUsersResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_list_users_serialize( + self, + page_size, + page_num, + keyword, + org_id, + group_id, + state, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page_num is not None: + + _query_params.append(('pageNum', page_num)) + + if keyword is not None: + + _query_params.append(('keyword', keyword)) + + if org_id is not None: + + _query_params.append(('orgId', org_id)) + + if group_id is not None: + + _query_params.append(('groupId', group_id)) + + if state is not None: + + _query_params.append(('state', state)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1beta1/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_current_user( + self, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateCurrentUserResponse: + """Update current user + + + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_current_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_current_user_with_http_info( + self, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateCurrentUserResponse]: + """Update current user + + + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_current_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_current_user_without_preload_content( + self, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update current user + + + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_current_user_serialize( + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateCurrentUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_current_user_serialize( + self, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/users/self', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def frontier_service_update_user( + self, + id: StrictStr, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1beta1UpdateUserResponse: + """Update user + + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def frontier_service_update_user_with_http_info( + self, + id: StrictStr, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1beta1UpdateUserResponse]: + """Update user + + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def frontier_service_update_user_without_preload_content( + self, + id: StrictStr, + body: V1beta1UserRequestBody, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update user + + + :param id: (required) + :type id: str + :param body: (required) + :type body: V1beta1UserRequestBody + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._frontier_service_update_user_serialize( + id=id, + body=body, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1beta1UpdateUserResponse", + '400': "RpcStatus", + '401': "RpcStatus", + '403': "RpcStatus", + '404': "RpcStatus", + '500': "RpcStatus", + + + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _frontier_service_update_user_serialize( + self, + id, + body, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> Tuple: + + _host = None + + _collection_formats: Dict[str, str] = { + + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, str] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if body is not None: + _body_params = body + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'Basic' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1beta1/users/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/frontier_api/api_client.py b/frontier_api/api_client.py index 4c34758..a8c1250 100644 --- a/frontier_api/api_client.py +++ b/frontier_api/api_client.py @@ -1,1500 +1,742 @@ # coding: utf-8 + """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + -from dataclasses import dataclass -from decimal import Decimal -import enum -import email +import atexit +import datetime +from dateutil.parser import parse import json +import mimetypes import os -import io -import atexit -from multiprocessing.pool import ThreadPool import re import tempfile -import typing -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict -from urllib.parse import urlparse, quote -from urllib3.fields import RequestField as RequestFieldBase -import frozendict +from urllib.parse import quote +from typing import Tuple, Optional, List -from frontier_api import rest from frontier_api.configuration import Configuration -from frontier_api.exceptions import ApiTypeError, ApiValueError -from frontier_api.schemas import ( - NoneClass, - BoolClass, - Schema, - FileIO, - BinarySchema, - date, - datetime, - none_type, - Unset, - unset, +from frontier_api.api_response import ApiResponse +import frontier_api.models +from frontier_api import rest +from frontier_api.exceptions import ( + ApiValueError, + ApiException, + BadRequestException, + UnauthorizedException, + ForbiddenException, + NotFoundException, + ServiceException ) -class RequestField(RequestFieldBase): - def __eq__(self, other): - if not isinstance(other, RequestField): - return False - return self.__dict__ == other.__dict__ - - -class JSONEncoder(json.JSONEncoder): - compact_separators = (',', ':') - - def default(self, obj): - if isinstance(obj, str): - return str(obj) - elif isinstance(obj, float): - return float(obj) - elif isinstance(obj, int): - return int(obj) - elif isinstance(obj, Decimal): - if obj.as_tuple().exponent >= 0: - return int(obj) - return float(obj) - elif isinstance(obj, NoneClass): - return None - elif isinstance(obj, BoolClass): - return bool(obj) - elif isinstance(obj, (dict, frozendict.frozendict)): - return {key: self.default(val) for key, val in obj.items()} - elif isinstance(obj, (list, tuple)): - return [self.default(item) for item in obj] - raise ApiValueError('Unable to prepare type {} for serialization'.format(obj.__class__.__name__)) - - -class ParameterInType(enum.Enum): - QUERY = 'query' - HEADER = 'header' - PATH = 'path' - COOKIE = 'cookie' - - -class ParameterStyle(enum.Enum): - MATRIX = 'matrix' - LABEL = 'label' - FORM = 'form' - SIMPLE = 'simple' - SPACE_DELIMITED = 'spaceDelimited' - PIPE_DELIMITED = 'pipeDelimited' - DEEP_OBJECT = 'deepObject' - - -class PrefixSeparatorIterator: - # A class to store prefixes and separators for rfc6570 expansions - - def __init__(self, prefix: str, separator: str): - self.prefix = prefix - self.separator = separator - self.first = True - if separator in {'.', '|', '%20'}: - item_separator = separator - else: - item_separator = ',' - self.item_separator = item_separator - - def __iter__(self): - return self - - def __next__(self): - if self.first: - self.first = False - return self.prefix - return self.separator - +class ApiClient: + """Generic API client for OpenAPI client library builds. -class ParameterSerializerBase: - @classmethod - def _get_default_explode(cls, style: ParameterStyle) -> bool: - return False + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. - @staticmethod - def __ref6570_item_value(in_data: typing.Any, percent_encode: bool): - """ - Get representation if str/float/int/None/items in list/ values in dict - None is returned if an item is undefined, use cases are value= - - None - - [] - - {} - - [None, None None] - - {'a': None, 'b': None} - """ - if type(in_data) in {str, float, int}: - if percent_encode: - return quote(str(in_data)) - return str(in_data) - elif isinstance(in_data, none_type): - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - elif isinstance(in_data, list) and not in_data: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - elif isinstance(in_data, dict) and not in_data: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return None - raise ApiValueError('Unable to generate a ref6570 item representation of {}'.format(in_data)) + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ - @staticmethod - def _to_dict(name: str, value: str): - return {name: value} + PRIMITIVE_TYPES = (float, bool, bytes, str, int) + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + _pool = None - @classmethod - def __ref6570_str_float_int_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool - ) -> str: - item_value = cls.__ref6570_item_value(in_data, percent_encode) - if item_value is None or (item_value == '' and prefix_separator_iterator.separator == ';'): - return next(prefix_separator_iterator) + var_name_piece - value_pair_equals = '=' if named_parameter_expansion else '' - return next(prefix_separator_iterator) + var_name_piece + value_pair_equals + item_value + def __init__( + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None + ) -> None: + # use default configuration if none is provided + if configuration is None: + configuration = Configuration.get_default() + self.configuration = configuration - @classmethod - def __ref6570_list_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool - ) -> str: - item_values = [cls.__ref6570_item_value(v, percent_encode) for v in in_data] - item_values = [v for v in item_values if v is not None] - if not item_values: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - value_pair_equals = '=' if named_parameter_expansion else '' - if not explode: - return ( - next(prefix_separator_iterator) + - var_name_piece + - value_pair_equals + - prefix_separator_iterator.item_separator.join(item_values) - ) - # exploded - return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [var_name_piece + value_pair_equals + val for val in item_values] - ) + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.client_side_validation = configuration.client_side_validation - @classmethod - def __ref6570_dict_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator, - var_name_piece: str, - named_parameter_expansion: bool - ) -> str: - in_data_transformed = {key: cls.__ref6570_item_value(val, percent_encode) for key, val in in_data.items()} - in_data_transformed = {key: val for key, val in in_data_transformed.items() if val is not None} - if not in_data_transformed: - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - value_pair_equals = '=' if named_parameter_expansion else '' - if not explode: - return ( - next(prefix_separator_iterator) + - var_name_piece + value_pair_equals + - prefix_separator_iterator.item_separator.join( - prefix_separator_iterator.item_separator.join( - item_pair - ) for item_pair in in_data_transformed.items() - ) - ) - # exploded - return next(prefix_separator_iterator) + next(prefix_separator_iterator).join( - [key + '=' + val for key, val in in_data_transformed.items()] - ) + def __enter__(self): + return self - @classmethod - def _ref6570_expansion( - cls, - variable_name: str, - in_data: typing.Any, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: PrefixSeparatorIterator - ) -> str: - """ - Separator is for separate variables like dict with explode true, not for array item separation - """ - named_parameter_expansion = prefix_separator_iterator.separator in {'&', ';'} - var_name_piece = variable_name if named_parameter_expansion else '' - if type(in_data) in {str, float, int}: - return cls.__ref6570_str_float_int_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion - ) - elif isinstance(in_data, none_type): - # ignored by the expansion process https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.1 - return "" - elif isinstance(in_data, list): - return cls.__ref6570_list_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion - ) - elif isinstance(in_data, dict): - return cls.__ref6570_dict_expansion( - variable_name, - in_data, - explode, - percent_encode, - prefix_separator_iterator, - var_name_piece, - named_parameter_expansion - ) - # bool, bytes, etc - raise ApiValueError('Unable to generate a ref6570 representation of {}'.format(in_data)) + def __exit__(self, exc_type, exc_value, traceback): + pass + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] -class StyleFormSerializer(ParameterSerializerBase): - @classmethod - def _get_default_explode(cls, style: ParameterStyle) -> bool: - if style is ParameterStyle.FORM: - return True - return super()._get_default_explode(style) + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value - def _serialize_form( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - name: str, - explode: bool, - percent_encode: bool, - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None - ) -> str: - if prefix_separator_iterator is None: - prefix_separator_iterator = PrefixSeparatorIterator('', '&') - return self._ref6570_expansion( - variable_name=name, - in_data=in_data, - explode=explode, - percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator - ) + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value -class StyleSimpleSerializer(ParameterSerializerBase): + _default = None - def _serialize_simple( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - name: str, - explode: bool, - percent_encode: bool - ) -> str: - prefix_separator_iterator = PrefixSeparatorIterator('', ',') - return self._ref6570_expansion( - variable_name=name, - in_data=in_data, - explode=explode, - percent_encode=percent_encode, - prefix_separator_iterator=prefix_separator_iterator - ) + @classmethod + def get_default(cls): + """Return new instance of ApiClient. + This method returns newly created, based on default constructor, + object of ApiClient class or returns a copy of default + ApiClient. -class JSONDetector: - """ - Works for: - application/json - application/json; charset=UTF-8 - application/json-patch+json - application/geo+json - """ - __json_content_type_pattern = re.compile("application/[^+]*[+]?(json);?.*") + :return: The ApiClient object. + """ + if cls._default is None: + cls._default = ApiClient() + return cls._default @classmethod - def _content_type_is_json(cls, content_type: str) -> bool: - if cls.__json_content_type_pattern.match(content_type): - return True - return False - - -@dataclass -class ParameterBase(JSONDetector): - name: str - in_type: ParameterInType - required: bool - style: typing.Optional[ParameterStyle] - explode: typing.Optional[bool] - allow_reserved: typing.Optional[bool] - schema: typing.Optional[typing.Type[Schema]] - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] - - __style_to_in_type = { - ParameterStyle.MATRIX: {ParameterInType.PATH}, - ParameterStyle.LABEL: {ParameterInType.PATH}, - ParameterStyle.FORM: {ParameterInType.QUERY, ParameterInType.COOKIE}, - ParameterStyle.SIMPLE: {ParameterInType.PATH, ParameterInType.HEADER}, - ParameterStyle.SPACE_DELIMITED: {ParameterInType.QUERY}, - ParameterStyle.PIPE_DELIMITED: {ParameterInType.QUERY}, - ParameterStyle.DEEP_OBJECT: {ParameterInType.QUERY}, - } - __in_type_to_default_style = { - ParameterInType.QUERY: ParameterStyle.FORM, - ParameterInType.PATH: ParameterStyle.SIMPLE, - ParameterInType.HEADER: ParameterStyle.SIMPLE, - ParameterInType.COOKIE: ParameterStyle.FORM, - } - __disallowed_header_names = {'Accept', 'Content-Type', 'Authorization'} - _json_encoder = JSONEncoder() + def set_default(cls, default): + """Set default instance of ApiClient. - @classmethod - def __verify_style_to_in_type(cls, style: typing.Optional[ParameterStyle], in_type: ParameterInType): - if style is None: - return - in_type_set = cls.__style_to_in_type[style] - if in_type not in in_type_set: - raise ValueError( - 'Invalid style and in_type combination. For style={} only in_type={} are allowed'.format( - style, in_type_set - ) - ) - - def __init__( - self, - name: str, - in_type: ParameterInType, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - if schema is None and content is None: - raise ValueError('Value missing; Pass in either schema or content') - if schema and content: - raise ValueError('Too many values provided. Both schema and content were provided. Only one may be input') - if name in self.__disallowed_header_names and in_type is ParameterInType.HEADER: - raise ValueError('Invalid name, name may not be one of {}'.format(self.__disallowed_header_names)) - self.__verify_style_to_in_type(style, in_type) - if content is None and style is None: - style = self.__in_type_to_default_style[in_type] - if content is not None and in_type in self.__in_type_to_default_style and len(content) != 1: - raise ValueError('Invalid content length, content length must equal 1') - self.in_type = in_type - self.name = name - self.required = required - self.style = style - self.explode = explode - self.allow_reserved = allow_reserved - self.schema = schema - self.content = content - - def _serialize_json( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - eliminate_whitespace: bool = False - ) -> str: - if eliminate_whitespace: - return json.dumps(in_data, separators=self._json_encoder.compact_separators) - return json.dumps(in_data) + It stores default ApiClient. + :param default: object of ApiClient. + """ + cls._default = default -class PathParameter(ParameterBase, StyleSimpleSerializer): - - def __init__( + def param_serialize( self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - super().__init__( - name, - in_type=ParameterInType.PATH, - required=required, - style=style, - explode=explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) + method, + resource_path, + path_params=None, + query_params=None, + header_params=None, + body=None, + post_params=None, + files=None, auth_settings=None, + collection_formats=None, + _host=None, + _request_auth=None + ) -> Tuple: + + """Builds the HTTP request params needed by the request. + :param method: Method to call. + :param resource_path: Path to method endpoint. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :return: tuple of form (path, http_method, query_params, header_params, + body, post_params, files) + """ - def __serialize_label( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] - ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator('.', '.') - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) + config = self.configuration - def __serialize_matrix( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list] - ) -> typing.Dict[str, str]: - prefix_separator_iterator = PrefixSeparatorIterator(';', ';') - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict( + self.parameters_to_tuples(header_params,collection_formats) + ) - def __serialize_simple( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - ) -> typing.Dict[str, str]: - value = self._serialize_simple( - in_data=in_data, - name=self.name, - explode=self.explode, - percent_encode=True - ) - return self._to_dict(self.name, value) + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict] - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - simple -> path - path: - returns path_params: dict - label -> path - returns path_params - matrix -> path - returns path_params - """ - if self.style: - if self.style is ParameterStyle.SIMPLE: - return self.__serialize_simple(cast_in_data) - elif self.style is ParameterStyle.LABEL: - return self.__serialize_label(cast_in_data) - elif self.style is ParameterStyle.MATRIX: - return self.__serialize_matrix(cast_in_data) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class QueryParameter(ParameterBase, StyleFormSerializer): + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) + post_params.extend(self.files_parameters(files)) - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: typing.Optional[bool] = None, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - used_style = ParameterStyle.FORM if style is None else style - used_explode = self._get_default_explode(used_style) if explode is None else explode - - super().__init__( - name, - in_type=ParameterInType.QUERY, - required=required, - style=used_style, - explode=used_explode, - allow_reserved=allow_reserved, - schema=schema, - content=content + # auth setting + self.update_params_for_auth( + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auth=_request_auth ) - def __serialize_space_delimited( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) + # body + if body: + body = self.sanitize_for_serialization(body) - def __serialize_pipe_delimited( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._ref6570_expansion( - variable_name=self.name, - in_data=in_data, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) + url += "?" + url_query - def __serialize_form( - self, - in_data: typing.Union[None, int, float, str, bool, dict, list], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] - ) -> typing.Dict[str, str]: - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - value = self._serialize_form( - in_data, - name=self.name, - explode=self.explode, - percent_encode=True, - prefix_separator_iterator=prefix_separator_iterator - ) - return self._to_dict(self.name, value) + return method, url, header_params, body, post_params - def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterator]: - if self.style is ParameterStyle.FORM: - return PrefixSeparatorIterator('?', '&') - elif self.style is ParameterStyle.SPACE_DELIMITED: - return PrefixSeparatorIterator('', '%20') - elif self.style is ParameterStyle.PIPE_DELIMITED: - return PrefixSeparatorIterator('', '|') - def serialize( + def call_api( self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict], - prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - form -> query - query: - - GET/HEAD/DELETE: could use fields - - PUT/POST: must use urlencode to send parameters - returns fields: tuple - spaceDelimited -> query - returns fields - pipeDelimited -> query - returns fields - deepObject -> query, https://github.com/OAI/OpenAPI-Specification/issues/1706 - returns fields - """ - if self.style: - # TODO update query ones to omit setting values when [] {} or None is input - if self.style is ParameterStyle.FORM: - return self.__serialize_form(cast_in_data, prefix_separator_iterator) - elif self.style is ParameterStyle.SPACE_DELIMITED: - return self.__serialize_space_delimited(cast_in_data, prefix_separator_iterator) - elif self.style is ParameterStyle.PIPE_DELIMITED: - return self.__serialize_pipe_delimited(cast_in_data, prefix_separator_iterator) - # self.content will be length one - if prefix_separator_iterator is None: - prefix_separator_iterator = self.get_prefix_separator_iterator() - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data, eliminate_whitespace=True) - return self._to_dict( - self.name, - next(prefix_separator_iterator) + self.name + '=' + quote(value) - ) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) + method, + url, + header_params=None, + body=None, + post_params=None, + _request_timeout=None + ) -> rest.RESTResponse: + """Makes the HTTP request (synchronous) + :param method: Method to call. + :param url: Path to method endpoint. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param _request_timeout: timeout setting for this request. + :return: RESTResponse + """ + try: + # perform request and return response + response_data = self.rest_client.request( + method, url, + headers=header_params, + body=body, post_params=post_params, + _request_timeout=_request_timeout + ) -class CookieParameter(ParameterBase, StyleFormSerializer): + except ApiException as e: + if e.body: + e.body = e.body.decode('utf-8') + raise e - def __init__( - self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: typing.Optional[bool] = None, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - used_style = ParameterStyle.FORM if style is None and content is None and schema else style - used_explode = self._get_default_explode(used_style) if explode is None else explode - - super().__init__( - name, - in_type=ParameterInType.COOKIE, - required=required, - style=used_style, - explode=used_explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) + return response_data - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict] - ) -> typing.Dict[str, str]: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - form -> cookie - returns fields: tuple - """ - if self.style: - """ - TODO add escaping of comma, space, equals - or turn encoding on - """ - value = self._serialize_form( - cast_in_data, - explode=self.explode, - name=self.name, - percent_encode=False, - prefix_separator_iterator=PrefixSeparatorIterator('', '&') - ) - return self._to_dict(self.name, value) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self._to_dict(self.name, value) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class HeaderParameter(ParameterBase, StyleSimpleSerializer): - def __init__( + def response_deserialize( self, - name: str, - required: bool = False, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: typing.Optional[bool] = None, - schema: typing.Optional[typing.Type[Schema]] = None, - content: typing.Optional[typing.Dict[str, typing.Type[Schema]]] = None - ): - super().__init__( - name, - in_type=ParameterInType.HEADER, - required=required, - style=style, - explode=explode, - allow_reserved=allow_reserved, - schema=schema, - content=content - ) + response_data=None, + response_types_map=None + ) -> ApiResponse: + """Deserializes response into an object. + :param response_data: RESTResponse object to be deserialized. + :param response_types_map: dict of response types. + :return: ApiResponse + """ - @staticmethod - def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict: - data = tuple(t for t in in_data if t) - headers = HTTPHeaderDict() - if not data: - return headers - headers.extend(data) - return headers - def serialize( - self, - in_data: typing.Union[ - Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict] - ) -> HTTPHeaderDict: - if self.schema: - cast_in_data = self.schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - """ - simple -> header - headers: PoolManager needs a mapping, tuple is close - returns headers: dict - """ - if self.style: - value = self._serialize_simple(cast_in_data, self.name, self.explode, False) - return self.__to_headers(((self.name, value),)) - # self.content will be length one - for content_type, schema in self.content.items(): - cast_in_data = schema(in_data) - cast_in_data = self._json_encoder.default(cast_in_data) - if self._content_type_is_json(content_type): - value = self._serialize_json(cast_in_data) - return self.__to_headers(((self.name, value),)) - raise NotImplementedError('Serialization of {} has not yet been implemented'.format(content_type)) - - -class Encoding: - def __init__( - self, - content_type: str, - headers: typing.Optional[typing.Dict[str, HeaderParameter]] = None, - style: typing.Optional[ParameterStyle] = None, - explode: bool = False, - allow_reserved: bool = False, - ): - self.content_type = content_type - self.headers = headers - self.style = style - self.explode = explode - self.allow_reserved = allow_reserved - - -@dataclass -class MediaType: - """ - Used to store request and response body schema information - encoding: - A map between a property name and its encoding information. - The key, being the property name, MUST exist in the schema as a property. - The encoding object SHALL only apply to requestBody objects when the media type is - multipart or application/x-www-form-urlencoded. - """ - schema: typing.Optional[typing.Type[Schema]] = None - encoding: typing.Optional[typing.Dict[str, Encoding]] = None + response_type = response_types_map.get(str(response_data.status), None) + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + # if not found, look for '1XX', '2XX', etc. + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) + if not 200 <= response_data.status <= 299: + if response_data.status == 400: + raise BadRequestException(http_resp=response_data) -@dataclass -class ApiResponse: - response: urllib3.HTTPResponse - body: typing.Union[Unset, Schema] = unset - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset + if response_data.status == 401: + raise UnauthorizedException(http_resp=response_data) - def __init__( - self, - response: urllib3.HTTPResponse, - body: typing.Union[Unset, Schema] = unset, - headers: typing.Union[Unset, typing.Dict[str, Schema]] = unset - ): - """ - pycharm needs this to prevent 'Unexpected argument' warnings - """ - self.response = response - self.body = body - self.headers = headers + if response_data.status == 403: + raise ForbiddenException(http_resp=response_data) + if response_data.status == 404: + raise NotFoundException(http_resp=response_data) -@dataclass -class ApiResponseWithoutDeserialization(ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[Unset, typing.Type[Schema]] = unset - headers: typing.Union[Unset, typing.List[HeaderParameter]] = unset + if 500 <= response_data.status <= 599: + raise ServiceException(http_resp=response_data) + raise ApiException(http_resp=response_data) + # deserialize response data -class OpenApiResponse(JSONDetector): - __filename_content_disposition_pattern = re.compile('filename="(.+?)"') + if response_type == "bytearray": + return_data = response_data.data + elif response_type is None: + return_data = None + elif response_type == "file": + return_data = self.__deserialize_file(response_data) + else: + match = None + content_type = response_data.getheader('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) + encoding = match.group(1) if match else "utf-8" + response_text = response_data.data.decode(encoding) + return_data = self.deserialize(response_text, response_type) + + return ApiResponse( + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data + ) - def __init__( - self, - response_cls: typing.Type[ApiResponse] = ApiResponse, - content: typing.Optional[typing.Dict[str, MediaType]] = None, - headers: typing.Optional[typing.List[HeaderParameter]] = None, - ): - self.headers = headers - if content is not None and len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') - self.content = content - self.response_cls = response_cls - - @staticmethod - def __deserialize_json(response: urllib3.HTTPResponse) -> typing.Any: - # python must be >= 3.9 so we can pass in bytes into json.loads - return json.loads(response.data) - - @staticmethod - def __file_name_from_response_url(response_url: typing.Optional[str]) -> typing.Optional[str]: - if response_url is None: - return None - url_path = urlparse(response_url).path - if url_path: - path_basename = os.path.basename(url_path) - if path_basename: - _filename, ext = os.path.splitext(path_basename) - if ext: - return path_basename - return None + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. - @classmethod - def __file_name_from_content_disposition(cls, content_disposition: typing.Optional[str]) -> typing.Optional[str]: - if content_disposition is None: - return None - match = cls.__filename_content_disposition_pattern.search(content_disposition) - if not match: - return None - return match.group(1) + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. - def __deserialize_application_octet_stream( - self, response: urllib3.HTTPResponse - ) -> typing.Union[bytes, io.BufferedReader]: - """ - urllib3 use cases: - 1. when preload_content=True (stream=False) then supports_chunked_reads is False and bytes are returned - 2. when preload_content=False (stream=True) then supports_chunked_reads is True and - a file will be written and returned + :param obj: The data to serialize. + :return: The serialized form of data. """ - if response.supports_chunked_reads(): - file_name = ( - self.__file_name_from_content_disposition(response.headers.get('content-disposition')) - or self.__file_name_from_response_url(response.geturl()) + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] + elif isinstance(obj, tuple): + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj ) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() - if file_name is None: - _fd, path = tempfile.mkstemp() - else: - path = os.path.join(tempfile.gettempdir(), file_name) - - with open(path, 'wb') as new_file: - chunk_size = 1024 - while True: - data = response.read(chunk_size) - if not data: - break - new_file.write(data) - # release_conn is needed for streaming connections only - response.release_conn() - new_file = open(path, 'rb') - return new_file + elif isinstance(obj, dict): + obj_dict = obj else: - return response.data + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = obj.to_dict() - @staticmethod - def __deserialize_multipart_form_data( - response: urllib3.HTTPResponse - ) -> typing.Dict[str, typing.Any]: - msg = email.message_from_bytes(response.data) return { - part.get_param("name", header="Content-Disposition"): part.get_payload( - decode=True - ).decode(part.get_content_charset()) - if part.get_content_charset() - else part.get_payload() - for part in msg.get_payload() + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: - content_type = response.getheader('content-type') - deserialized_body = unset - streamed = response.supports_chunked_reads() - - deserialized_headers = unset - if self.headers is not None: - # TODO add header deserialiation here - pass - - if self.content is not None: - if content_type not in self.content: - raise ApiValueError( - f"Invalid content_type returned. Content_type='{content_type}' was returned " - f"when only {str(set(self.content))} are defined for status_code={str(response.status)}" - ) - body_schema = self.content[content_type].schema - if body_schema is None: - # some specs do not define response content media type schemas - return self.response_cls( - response=response, - headers=deserialized_headers, - body=unset - ) + def deserialize(self, response_text, response_type): + """Deserializes response into an object. - if self._content_type_is_json(content_type): - body_data = self.__deserialize_json(response) - elif content_type == 'application/octet-stream': - body_data = self.__deserialize_application_octet_stream(response) - elif content_type.startswith('multipart/form-data'): - body_data = self.__deserialize_multipart_form_data(response) - content_type = 'multipart/form-data' - else: - raise NotImplementedError('Deserialization of {} has not yet been implemented'.format(content_type)) - deserialized_body = body_schema.from_openapi_data_oapg( - body_data, _configuration=configuration) - elif streamed: - response.release_conn() - - return self.response_cls( - response=response, - headers=deserialized_headers, - body=deserialized_body - ) + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + :return: deserialized object. + """ -class ApiClient: - """Generic API client for OpenAPI client library builds. + # fetch data from response object + try: + data = json.loads(response_text) + except ValueError: + data = response_text - OpenAPI generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the OpenAPI - templates. + return self.__deserialize(data, response_type) - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - :param pool_threads: The number of threads to use for async requests - to the API. More threads means more concurrent API requests. - """ + :param data: dict, list or str. + :param klass: class literal, or string of class name. - _pool = None + :return: object. + """ + if data is None: + return None - def __init__( - self, - configuration: typing.Optional[Configuration] = None, - header_name: typing.Optional[str] = None, - header_value: typing.Optional[str] = None, - cookie: typing.Optional[str] = None, - pool_threads: int = 1 - ): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - self.pool_threads = pool_threads + if isinstance(klass, str): + if klass.startswith('List['): + sub_kls = re.match(r'List\[(.*)]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = HTTPHeaderDict() - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + if klass.startswith('Dict['): + sub_kls = re.match(r'Dict\[([^,]*), (.*)]', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} - def __enter__(self): - return self + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(frontier_api.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + else: + return self.__deserialize_model(data, klass) - def __exit__(self, exc_type, exc_value, traceback): - self.close() + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. - def close(self): - if self._pool: - self._pool.close() - self._pool.join() - self._pool = None - if hasattr(atexit, 'unregister'): - atexit.unregister(self.close) + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params - @property - def pool(self): - """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. + def parameters_to_url_query(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: URL query string (e.g. a=Hello%20World&b=123) """ - if self._pool is None: - atexit.register(self.close) - self._pool = ThreadPool(self.pool_threads) - return self._pool + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: + if isinstance(v, bool): + v = str(v).lower() + if isinstance(v, (int, float)): + v = str(v) + if isinstance(v, dict): + v = json.dumps(v) + + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(quote(str(value)) for value in v)) + ) + else: + new_params.append((k, quote(str(v)))) - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] + return "&".join(["=".join(item) for item in new_params]) - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value + def files_parameters(self, files=None): + """Builds form parameters. - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if files: + for k, v in files.items(): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) + + return params + + def select_header_accept(self, accepts: List[str]) -> Optional[str]: + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return None - def __call_api( - self, - resource_path: str, - method: str, - headers: typing.Optional[HTTPHeaderDict] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - auth_settings: typing.Optional[typing.List[str]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - host: typing.Optional[str] = None, - ) -> urllib3.HTTPResponse: + for accept in accepts: + if re.search('json', accept, re.IGNORECASE): + return accept - # header parameters - used_headers = HTTPHeaderDict(self.default_headers) - if self.cookie: - headers['Cookie'] = self.cookie + return accepts[0] - # auth setting - self.update_params_for_auth(used_headers, - auth_settings, resource_path, method, body) + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. - # must happen after cookie setting and auth setting in case user is overriding those - if headers: - used_headers.update(headers) + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None - # request url - if host is None: - url = self.configuration.host + resource_path - else: - # use server/host defined in path or operation instead - url = host + resource_path + for content_type in content_types: + if re.search('json', content_type, re.IGNORECASE): + return content_type - # perform request and return response - response = self.request( - method, - url, - headers=used_headers, - fields=fields, - body=body, - stream=stream, - timeout=timeout, - ) - return response + return content_types[0] - def call_api( + def update_params_for_auth( self, - resource_path: str, - method: str, - headers: typing.Optional[HTTPHeaderDict] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - auth_settings: typing.Optional[typing.List[str]] = None, - async_req: typing.Optional[bool] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - host: typing.Optional[str] = None, - ) -> urllib3.HTTPResponse: - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async_req request, set the async_req parameter. + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auth=None + ) -> None: + """Updates header and query params based on authentication setting. - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param headers: Header parameters to be - placed in the request header. - :param body: Request body. - :param fields: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings: Auth Settings names for the request. - :param async_req: execute request asynchronously - :type async_req: bool, optional TODO remove, unused - :param stream: if True, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Also when True, if the openapi spec describes a file download, - the data will be written to a local filesystme file and the BinarySchema - instance will also inherit from FileSchema and FileIO - Default is False. - :type stream: bool, optional - :param timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :param host: api endpoint host - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param request_auth: if set, the provided settings will + override the token in the configuration. """ + if not auth_settings: + return - if not async_req: - return self.__call_api( - resource_path, - method, + if request_auth: + self._apply_auth_params( headers, - body, - fields, - auth_settings, - stream, - timeout, - host, - ) - - return self.pool.apply_async( - self.__call_api, - ( + queries, resource_path, method, - headers, body, - json, - fields, - auth_settings, - stream, - timeout, - host, + request_auth ) - ) - - def request( + else: + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, + queries, + resource_path, + method, + body, + auth_setting + ) + + def _apply_auth_params( self, - method: str, - url: str, - headers: typing.Optional[HTTPHeaderDict] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, str], ...]] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> urllib3.HTTPResponse: - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - stream=stream, - timeout=timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - stream=stream, - timeout=timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - headers=headers, - fields=fields, - stream=stream, - timeout=timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - headers=headers, - stream=stream, - timeout=timeout, - body=body) + headers, + queries, + resource_path, + method, + body, + auth_setting + ) -> None: + """Updates the request parameters based on a single auth_setting + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :resource_path: A string representation of the HTTP request resource path. + :method: A string representation of the HTTP request method. + :body: A object representing the body of the HTTP request. + The object type is the return value of sanitize_for_serialization(). + :param auth_setting: auth settings for the endpoint + """ + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." + 'Authentication token must be in `query` or `header`' ) - def update_params_for_auth(self, headers, auth_settings, - resource_path, method, body): - """Updates header and query params based on authentication setting. + def __deserialize_file(self, response): + """Deserializes body to file - :param headers: Header parameters dict to be updated. - :param auth_settings: Authentication setting identifiers list. - :param resource_path: A string representation of the HTTP request resource path. - :param method: A string representation of the HTTP request method. - :param body: A object representing the body of the HTTP request. - The object type is the return value of _encoder.default(). + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + handle file downloading + save response body into a tmp file and return the instance + + :param response: RESTResponse. + :return: file path. """ - if not auth_settings: - return + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if not auth_setting: - continue - if auth_setting['in'] == 'cookie': - headers.add('Cookie', auth_setting['value']) - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers.add(auth_setting['key'], auth_setting['value']) - elif auth_setting['in'] == 'query': - """ TODO implement auth in query - need to pass in prefix_separator_iterator - and need to output resource_path with query params added - """ - raise ApiValueError("Auth in query not yet implemented") - else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ).group(1) + path = os.path.join(os.path.dirname(path), filename) + with open(path, "wb") as f: + f.write(response.data) -class Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech + return path - Do not edit the class manually. - """ + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. - def __init__(self, api_client: typing.Optional[ApiClient] = None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client + :param data: str. + :param klass: class literal. - @staticmethod - def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]): + :return: int, long, float, str, bool. """ - Ensures that: - - required keys are present - - additional properties are not input - - value stored under required keys do not have the value unset - Note: detailed value checking is done in schema classes + try: + return klass(data) + except UnicodeEncodeError: + return str(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. """ - missing_required_keys = [] - required_keys_with_unset_values = [] - for required_key in cls.__required_keys__: - if required_key not in data: - missing_required_keys.append(required_key) - continue - value = data[required_key] - if value is unset: - required_keys_with_unset_values.append(required_key) - if missing_required_keys: - raise ApiTypeError( - '{} missing {} required arguments: {}'.format( - cls.__name__, len(missing_required_keys), missing_required_keys - ) - ) - if required_keys_with_unset_values: - raise ApiValueError( - '{} contains invalid unset values for {} required keys: {}'.format( - cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values - ) - ) + return value - disallowed_additional_keys = [] - for key in data: - if key in cls.__required_keys__ or key in cls.__optional_keys__: - continue - disallowed_additional_keys.append(key) - if disallowed_additional_keys: - raise ApiTypeError( - '{} got {} unexpected keyword arguments: {}'.format( - cls.__name__, len(disallowed_additional_keys), disallowed_additional_keys - ) - ) + def __deserialize_date(self, string): + """Deserializes string to date. - def _get_host_oapg( - self, - operation_id: str, - servers: typing.Tuple[typing.Dict[str, str], ...] = tuple(), - host_index: typing.Optional[int] = None - ) -> typing.Optional[str]: - configuration = self.api_client.configuration + :param string: str. + :return: date. + """ try: - if host_index is None: - index = configuration.server_operation_index.get( - operation_id, configuration.server_index - ) - else: - index = host_index - server_variables = configuration.server_operation_variables.get( - operation_id, configuration.server_variables - ) - host = configuration.get_host_from_settings( - index, variables=server_variables, servers=servers + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) ) - except IndexError: - if servers: - raise ApiValueError( - "Invalid host index. Must be 0 <= index < %s" % - len(servers) - ) - host = None - return host - -class SerializedRequestBody(typing_extensions.TypedDict, total=False): - body: typing.Union[str, bytes] - fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...] + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + The string should be in iso8601 datetime format. -class RequestBody(StyleFormSerializer, JSONDetector): - """ - A request body parameter - content: content_type to MediaType Schema info - """ - __json_encoder = JSONEncoder() - - def __init__( - self, - content: typing.Dict[str, MediaType], - required: bool = False, - ): - self.required = required - if len(content) == 0: - raise ValueError('Invalid value for content, the content dict must have >= 1 entry') - self.content = content - - def __serialize_json( - self, - in_data: typing.Any - ) -> typing.Dict[str, bytes]: - in_data = self.__json_encoder.default(in_data) - json_str = json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode( - "utf-8" - ) - return dict(body=json_str) - - @staticmethod - def __serialize_text_plain(in_data: typing.Any) -> typing.Dict[str, str]: - if isinstance(in_data, frozendict.frozendict): - raise ValueError('Unable to serialize type frozendict.frozendict to text/plain') - elif isinstance(in_data, tuple): - raise ValueError('Unable to serialize type tuple to text/plain') - elif isinstance(in_data, NoneClass): - raise ValueError('Unable to serialize type NoneClass to text/plain') - elif isinstance(in_data, BoolClass): - raise ValueError('Unable to serialize type BoolClass to text/plain') - return dict(body=str(in_data)) - - def __multipart_json_item(self, key: str, value: Schema) -> RequestField: - json_value = self.__json_encoder.default(value) - request_field = RequestField(name=key, data=json.dumps(json_value)) - request_field.make_multipart(content_type='application/json') - return request_field - - def __multipart_form_item(self, key: str, value: Schema) -> RequestField: - if isinstance(value, str): - request_field = RequestField(name=key, data=str(value)) - request_field.make_multipart(content_type='text/plain') - elif isinstance(value, bytes): - request_field = RequestField(name=key, data=value) - request_field.make_multipart(content_type='application/octet-stream') - elif isinstance(value, FileIO): - # TODO use content.encoding to limit allowed content types if they are present - request_field = RequestField.from_tuples(key, (os.path.basename(value.name), value.read())) - value.close() - else: - request_field = self.__multipart_json_item(key=key, value=value) - return request_field - - def __serialize_multipart_form_data( - self, in_data: Schema - ) -> typing.Dict[str, typing.Tuple[RequestField, ...]]: - if not isinstance(in_data, frozendict.frozendict): - raise ValueError(f'Unable to serialize {in_data} to multipart/form-data because it is not a dict of data') + :param string: str. + :return: datetime. """ - In a multipart/form-data request body, each schema property, or each element of a schema array property, - takes a section in the payload with an internal header as defined by RFC7578. The serialization strategy - for each property of a multipart/form-data request body can be specified in an associated Encoding Object. + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) - When passing in multipart types, boundaries MAY be used to separate sections of the content being - transferred – thus, the following default Content-Types are defined for multipart: + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. - If the (object) property is a primitive, or an array of primitive values, the default Content-Type is text/plain - If the property is complex, or an array of complex values, the default Content-Type is application/json - Question: how is the array of primitives encoded? - If the property is a type: string with a contentEncoding, the default Content-Type is application/octet-stream - """ - fields = [] - for key, value in in_data.items(): - if isinstance(value, tuple): - if value: - # values use explode = True, so the code makes a RequestField for each item with name=key - for item in value: - request_field = self.__multipart_form_item(key=key, value=item) - fields.append(request_field) - else: - # send an empty array as json because exploding will not send it - request_field = self.__multipart_json_item(key=key, value=value) - fields.append(request_field) - else: - request_field = self.__multipart_form_item(key=key, value=value) - fields.append(request_field) - - return dict(fields=tuple(fields)) - - def __serialize_application_octet_stream(self, in_data: BinarySchema) -> typing.Dict[str, bytes]: - if isinstance(in_data, bytes): - return dict(body=in_data) - # FileIO type - result = dict(body=in_data.read()) - in_data.close() - return result - - def __serialize_application_x_www_form_data( - self, in_data: typing.Any - ) -> SerializedRequestBody: + :param data: dict, list. + :param klass: class literal. + :return: model object. """ - POST submission of form data in body - """ - if not isinstance(in_data, frozendict.frozendict): - raise ValueError( - f'Unable to serialize {in_data} to application/x-www-form-urlencoded because it is not a dict of data') - cast_in_data = self.__json_encoder.default(in_data) - value = self._serialize_form(cast_in_data, name='', explode=True, percent_encode=True) - return dict(body=value) - - def serialize( - self, in_data: typing.Any, content_type: str - ) -> SerializedRequestBody: - """ - If a str is returned then the result will be assigned to data when making the request - If a tuple is returned then the result will be used as fields input in encode_multipart_formdata - Return a tuple of - The key of the return dict is - - body for application/json - - encode_multipart and fields for multipart/form-data - """ - media_type = self.content[content_type] - if isinstance(in_data, media_type.schema): - cast_in_data = in_data - elif isinstance(in_data, (dict, frozendict.frozendict)) and in_data: - cast_in_data = media_type.schema(**in_data) - else: - cast_in_data = media_type.schema(in_data) - # TODO check for and use encoding if it exists - # and content_type is multipart or application/x-www-form-urlencoded - if self._content_type_is_json(content_type): - return self.__serialize_json(cast_in_data) - elif content_type == 'text/plain': - return self.__serialize_text_plain(cast_in_data) - elif content_type == 'multipart/form-data': - return self.__serialize_multipart_form_data(cast_in_data) - elif content_type == 'application/x-www-form-urlencoded': - return self.__serialize_application_x_www_form_data(cast_in_data) - elif content_type == 'application/octet-stream': - return self.__serialize_application_octet_stream(cast_in_data) - raise NotImplementedError('Serialization has not yet been implemented for {}'.format(content_type)) \ No newline at end of file + return klass.from_dict(data) diff --git a/frontier_api/api_response.py b/frontier_api/api_response.py new file mode 100644 index 0000000..2ac1ada --- /dev/null +++ b/frontier_api/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Any, Dict, Optional, Generic, TypeVar +from pydantic import Field, StrictInt, StrictStr, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Dict[StrictStr, StrictStr]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/frontier_api/apis/__init__.py b/frontier_api/apis/__init__.py deleted file mode 100644 index 7840f77..0000000 --- a/frontier_api/apis/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints then import them from -# tags, paths, or path_to_api, or tag_to_api \ No newline at end of file diff --git a/frontier_api/apis/path_to_api.py b/frontier_api/apis/path_to_api.py deleted file mode 100644 index 5360c42..0000000 --- a/frontier_api/apis/path_to_api.py +++ /dev/null @@ -1,278 +0,0 @@ -import typing_extensions - -from frontier_api.paths import PathValues -from frontier_api.apis.paths.well_known_jwks_json import WellKnownJwksJson -from frontier_api.apis.paths.v1beta1_admin_groups import V1beta1AdminGroups -from frontier_api.apis.paths.v1beta1_admin_organizations import V1beta1AdminOrganizations -from frontier_api.apis.paths.v1beta1_admin_projects import V1beta1AdminProjects -from frontier_api.apis.paths.v1beta1_admin_relations import V1beta1AdminRelations -from frontier_api.apis.paths.v1beta1_admin_resources import V1beta1AdminResources -from frontier_api.apis.paths.v1beta1_admin_users import V1beta1AdminUsers -from frontier_api.apis.paths.v1beta1_auth import V1beta1Auth -from frontier_api.apis.paths.v1beta1_auth_callback import V1beta1AuthCallback -from frontier_api.apis.paths.v1beta1_auth_jwks import V1beta1AuthJwks -from frontier_api.apis.paths.v1beta1_auth_logout import V1beta1AuthLogout -from frontier_api.apis.paths.v1beta1_auth_register_strategy_name import V1beta1AuthRegisterStrategyName -from frontier_api.apis.paths.v1beta1_auth_token import V1beta1AuthToken -from frontier_api.apis.paths.v1beta1_batchcheck import V1beta1Batchcheck -from frontier_api.apis.paths.v1beta1_check import V1beta1Check -from frontier_api.apis.paths.v1beta1_groups_id_preferences import V1beta1GroupsIdPreferences -from frontier_api.apis.paths.v1beta1_meta_schemas import V1beta1MetaSchemas -from frontier_api.apis.paths.v1beta1_meta_schemas_id import V1beta1MetaSchemasId -from frontier_api.apis.paths.v1beta1_namespaces import V1beta1Namespaces -from frontier_api.apis.paths.v1beta1_namespaces_id import V1beta1NamespacesId -from frontier_api.apis.paths.v1beta1_organization_org_id_auditlogs import V1beta1OrganizationOrgIdAuditlogs -from frontier_api.apis.paths.v1beta1_organization_org_id_auditlogs_id import V1beta1OrganizationOrgIdAuditlogsId -from frontier_api.apis.paths.v1beta1_organizations import V1beta1Organizations -from frontier_api.apis.paths.v1beta1_organizations_id import V1beta1OrganizationsId -from frontier_api.apis.paths.v1beta1_organizations_id_admins import V1beta1OrganizationsIdAdmins -from frontier_api.apis.paths.v1beta1_organizations_id_disable import V1beta1OrganizationsIdDisable -from frontier_api.apis.paths.v1beta1_organizations_id_enable import V1beta1OrganizationsIdEnable -from frontier_api.apis.paths.v1beta1_organizations_id_preferences import V1beta1OrganizationsIdPreferences -from frontier_api.apis.paths.v1beta1_organizations_id_projects import V1beta1OrganizationsIdProjects -from frontier_api.apis.paths.v1beta1_organizations_id_serviceusers import V1beta1OrganizationsIdServiceusers -from frontier_api.apis.paths.v1beta1_organizations_id_users import V1beta1OrganizationsIdUsers -from frontier_api.apis.paths.v1beta1_organizations_id_users_user_id import V1beta1OrganizationsIdUsersUserId -from frontier_api.apis.paths.v1beta1_organizations_org_id_domains import V1beta1OrganizationsOrgIdDomains -from frontier_api.apis.paths.v1beta1_organizations_org_id_domains_id import V1beta1OrganizationsOrgIdDomainsId -from frontier_api.apis.paths.v1beta1_organizations_org_id_domains_id_verify import V1beta1OrganizationsOrgIdDomainsIdVerify -from frontier_api.apis.paths.v1beta1_organizations_org_id_groups import V1beta1OrganizationsOrgIdGroups -from frontier_api.apis.paths.v1beta1_organizations_org_id_groups_id import V1beta1OrganizationsOrgIdGroupsId -from frontier_api.apis.paths.v1beta1_organizations_org_id_groups_id_disable import V1beta1OrganizationsOrgIdGroupsIdDisable -from frontier_api.apis.paths.v1beta1_organizations_org_id_groups_id_enable import V1beta1OrganizationsOrgIdGroupsIdEnable -from frontier_api.apis.paths.v1beta1_organizations_org_id_groups_id_users import V1beta1OrganizationsOrgIdGroupsIdUsers -from frontier_api.apis.paths.v1beta1_organizations_org_id_groups_id_users_user_id import V1beta1OrganizationsOrgIdGroupsIdUsersUserId -from frontier_api.apis.paths.v1beta1_organizations_org_id_invitations import V1beta1OrganizationsOrgIdInvitations -from frontier_api.apis.paths.v1beta1_organizations_org_id_invitations_id import V1beta1OrganizationsOrgIdInvitationsId -from frontier_api.apis.paths.v1beta1_organizations_org_id_invitations_id_accept import V1beta1OrganizationsOrgIdInvitationsIdAccept -from frontier_api.apis.paths.v1beta1_organizations_org_id_join import V1beta1OrganizationsOrgIdJoin -from frontier_api.apis.paths.v1beta1_organizations_org_id_roles import V1beta1OrganizationsOrgIdRoles -from frontier_api.apis.paths.v1beta1_organizations_org_id_roles_id import V1beta1OrganizationsOrgIdRolesId -from frontier_api.apis.paths.v1beta1_permissions import V1beta1Permissions -from frontier_api.apis.paths.v1beta1_permissions_id import V1beta1PermissionsId -from frontier_api.apis.paths.v1beta1_policies import V1beta1Policies -from frontier_api.apis.paths.v1beta1_policies_id import V1beta1PoliciesId -from frontier_api.apis.paths.v1beta1_preferences import V1beta1Preferences -from frontier_api.apis.paths.v1beta1_preferences_traits import V1beta1PreferencesTraits -from frontier_api.apis.paths.v1beta1_projects import V1beta1Projects -from frontier_api.apis.paths.v1beta1_projects_id import V1beta1ProjectsId -from frontier_api.apis.paths.v1beta1_projects_id_admins import V1beta1ProjectsIdAdmins -from frontier_api.apis.paths.v1beta1_projects_id_disable import V1beta1ProjectsIdDisable -from frontier_api.apis.paths.v1beta1_projects_id_enable import V1beta1ProjectsIdEnable -from frontier_api.apis.paths.v1beta1_projects_id_preferences import V1beta1ProjectsIdPreferences -from frontier_api.apis.paths.v1beta1_projects_id_serviceusers import V1beta1ProjectsIdServiceusers -from frontier_api.apis.paths.v1beta1_projects_id_users import V1beta1ProjectsIdUsers -from frontier_api.apis.paths.v1beta1_projects_project_id_resources import V1beta1ProjectsProjectIdResources -from frontier_api.apis.paths.v1beta1_projects_project_id_resources_id import V1beta1ProjectsProjectIdResourcesId -from frontier_api.apis.paths.v1beta1_relations import V1beta1Relations -from frontier_api.apis.paths.v1beta1_relations_id import V1beta1RelationsId -from frontier_api.apis.paths.v1beta1_relations_relation_object_object_subject_subject import V1beta1RelationsRelationObjectObjectSubjectSubject -from frontier_api.apis.paths.v1beta1_roles import V1beta1Roles -from frontier_api.apis.paths.v1beta1_roles_id import V1beta1RolesId -from frontier_api.apis.paths.v1beta1_serviceusers import V1beta1Serviceusers -from frontier_api.apis.paths.v1beta1_serviceusers_id import V1beta1ServiceusersId -from frontier_api.apis.paths.v1beta1_serviceusers_id_keys import V1beta1ServiceusersIdKeys -from frontier_api.apis.paths.v1beta1_serviceusers_id_keys_key_id import V1beta1ServiceusersIdKeysKeyId -from frontier_api.apis.paths.v1beta1_serviceusers_id_secrets import V1beta1ServiceusersIdSecrets -from frontier_api.apis.paths.v1beta1_serviceusers_id_secrets_secret_id import V1beta1ServiceusersIdSecretsSecretId -from frontier_api.apis.paths.v1beta1_users import V1beta1Users -from frontier_api.apis.paths.v1beta1_users_id import V1beta1UsersId -from frontier_api.apis.paths.v1beta1_users_id_disable import V1beta1UsersIdDisable -from frontier_api.apis.paths.v1beta1_users_id_enable import V1beta1UsersIdEnable -from frontier_api.apis.paths.v1beta1_users_id_groups import V1beta1UsersIdGroups -from frontier_api.apis.paths.v1beta1_users_id_invitations import V1beta1UsersIdInvitations -from frontier_api.apis.paths.v1beta1_users_id_organizations import V1beta1UsersIdOrganizations -from frontier_api.apis.paths.v1beta1_users_id_preferences import V1beta1UsersIdPreferences -from frontier_api.apis.paths.v1beta1_users_id_projects import V1beta1UsersIdProjects -from frontier_api.apis.paths.v1beta1_users_self import V1beta1UsersSelf -from frontier_api.apis.paths.v1beta1_users_self_groups import V1beta1UsersSelfGroups -from frontier_api.apis.paths.v1beta1_users_self_organizations import V1beta1UsersSelfOrganizations -from frontier_api.apis.paths.v1beta1_users_self_preferences import V1beta1UsersSelfPreferences -from frontier_api.apis.paths.v1beta1_users_self_projects import V1beta1UsersSelfProjects - -PathToApi = typing_extensions.TypedDict( - 'PathToApi', - { - PathValues._WELLKNOWN_JWKS_JSON: WellKnownJwksJson, - PathValues.V1BETA1_ADMIN_GROUPS: V1beta1AdminGroups, - PathValues.V1BETA1_ADMIN_ORGANIZATIONS: V1beta1AdminOrganizations, - PathValues.V1BETA1_ADMIN_PROJECTS: V1beta1AdminProjects, - PathValues.V1BETA1_ADMIN_RELATIONS: V1beta1AdminRelations, - PathValues.V1BETA1_ADMIN_RESOURCES: V1beta1AdminResources, - PathValues.V1BETA1_ADMIN_USERS: V1beta1AdminUsers, - PathValues.V1BETA1_AUTH: V1beta1Auth, - PathValues.V1BETA1_AUTH_CALLBACK: V1beta1AuthCallback, - PathValues.V1BETA1_AUTH_JWKS: V1beta1AuthJwks, - PathValues.V1BETA1_AUTH_LOGOUT: V1beta1AuthLogout, - PathValues.V1BETA1_AUTH_REGISTER_STRATEGY_NAME: V1beta1AuthRegisterStrategyName, - PathValues.V1BETA1_AUTH_TOKEN: V1beta1AuthToken, - PathValues.V1BETA1_BATCHCHECK: V1beta1Batchcheck, - PathValues.V1BETA1_CHECK: V1beta1Check, - PathValues.V1BETA1_GROUPS_ID_PREFERENCES: V1beta1GroupsIdPreferences, - PathValues.V1BETA1_META_SCHEMAS: V1beta1MetaSchemas, - PathValues.V1BETA1_META_SCHEMAS_ID: V1beta1MetaSchemasId, - PathValues.V1BETA1_NAMESPACES: V1beta1Namespaces, - PathValues.V1BETA1_NAMESPACES_ID: V1beta1NamespacesId, - PathValues.V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS: V1beta1OrganizationOrgIdAuditlogs, - PathValues.V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS_ID: V1beta1OrganizationOrgIdAuditlogsId, - PathValues.V1BETA1_ORGANIZATIONS: V1beta1Organizations, - PathValues.V1BETA1_ORGANIZATIONS_ID: V1beta1OrganizationsId, - PathValues.V1BETA1_ORGANIZATIONS_ID_ADMINS: V1beta1OrganizationsIdAdmins, - PathValues.V1BETA1_ORGANIZATIONS_ID_DISABLE: V1beta1OrganizationsIdDisable, - PathValues.V1BETA1_ORGANIZATIONS_ID_ENABLE: V1beta1OrganizationsIdEnable, - PathValues.V1BETA1_ORGANIZATIONS_ID_PREFERENCES: V1beta1OrganizationsIdPreferences, - PathValues.V1BETA1_ORGANIZATIONS_ID_PROJECTS: V1beta1OrganizationsIdProjects, - PathValues.V1BETA1_ORGANIZATIONS_ID_SERVICEUSERS: V1beta1OrganizationsIdServiceusers, - PathValues.V1BETA1_ORGANIZATIONS_ID_USERS: V1beta1OrganizationsIdUsers, - PathValues.V1BETA1_ORGANIZATIONS_ID_USERS_USER_ID: V1beta1OrganizationsIdUsersUserId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS: V1beta1OrganizationsOrgIdDomains, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID: V1beta1OrganizationsOrgIdDomainsId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID_VERIFY: V1beta1OrganizationsOrgIdDomainsIdVerify, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS: V1beta1OrganizationsOrgIdGroups, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID: V1beta1OrganizationsOrgIdGroupsId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_DISABLE: V1beta1OrganizationsOrgIdGroupsIdDisable, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_ENABLE: V1beta1OrganizationsOrgIdGroupsIdEnable, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS: V1beta1OrganizationsOrgIdGroupsIdUsers, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS_USER_ID: V1beta1OrganizationsOrgIdGroupsIdUsersUserId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS: V1beta1OrganizationsOrgIdInvitations, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID: V1beta1OrganizationsOrgIdInvitationsId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID_ACCEPT: V1beta1OrganizationsOrgIdInvitationsIdAccept, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_JOIN: V1beta1OrganizationsOrgIdJoin, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_ROLES: V1beta1OrganizationsOrgIdRoles, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_ROLES_ID: V1beta1OrganizationsOrgIdRolesId, - PathValues.V1BETA1_PERMISSIONS: V1beta1Permissions, - PathValues.V1BETA1_PERMISSIONS_ID: V1beta1PermissionsId, - PathValues.V1BETA1_POLICIES: V1beta1Policies, - PathValues.V1BETA1_POLICIES_ID: V1beta1PoliciesId, - PathValues.V1BETA1_PREFERENCES: V1beta1Preferences, - PathValues.V1BETA1_PREFERENCES_TRAITS: V1beta1PreferencesTraits, - PathValues.V1BETA1_PROJECTS: V1beta1Projects, - PathValues.V1BETA1_PROJECTS_ID: V1beta1ProjectsId, - PathValues.V1BETA1_PROJECTS_ID_ADMINS: V1beta1ProjectsIdAdmins, - PathValues.V1BETA1_PROJECTS_ID_DISABLE: V1beta1ProjectsIdDisable, - PathValues.V1BETA1_PROJECTS_ID_ENABLE: V1beta1ProjectsIdEnable, - PathValues.V1BETA1_PROJECTS_ID_PREFERENCES: V1beta1ProjectsIdPreferences, - PathValues.V1BETA1_PROJECTS_ID_SERVICEUSERS: V1beta1ProjectsIdServiceusers, - PathValues.V1BETA1_PROJECTS_ID_USERS: V1beta1ProjectsIdUsers, - PathValues.V1BETA1_PROJECTS_PROJECT_ID_RESOURCES: V1beta1ProjectsProjectIdResources, - PathValues.V1BETA1_PROJECTS_PROJECT_ID_RESOURCES_ID: V1beta1ProjectsProjectIdResourcesId, - PathValues.V1BETA1_RELATIONS: V1beta1Relations, - PathValues.V1BETA1_RELATIONS_ID: V1beta1RelationsId, - PathValues.V1BETA1_RELATIONS_RELATION_OBJECT_OBJECT_SUBJECT_SUBJECT: V1beta1RelationsRelationObjectObjectSubjectSubject, - PathValues.V1BETA1_ROLES: V1beta1Roles, - PathValues.V1BETA1_ROLES_ID: V1beta1RolesId, - PathValues.V1BETA1_SERVICEUSERS: V1beta1Serviceusers, - PathValues.V1BETA1_SERVICEUSERS_ID: V1beta1ServiceusersId, - PathValues.V1BETA1_SERVICEUSERS_ID_KEYS: V1beta1ServiceusersIdKeys, - PathValues.V1BETA1_SERVICEUSERS_ID_KEYS_KEY_ID: V1beta1ServiceusersIdKeysKeyId, - PathValues.V1BETA1_SERVICEUSERS_ID_SECRETS: V1beta1ServiceusersIdSecrets, - PathValues.V1BETA1_SERVICEUSERS_ID_SECRETS_SECRET_ID: V1beta1ServiceusersIdSecretsSecretId, - PathValues.V1BETA1_USERS: V1beta1Users, - PathValues.V1BETA1_USERS_ID: V1beta1UsersId, - PathValues.V1BETA1_USERS_ID_DISABLE: V1beta1UsersIdDisable, - PathValues.V1BETA1_USERS_ID_ENABLE: V1beta1UsersIdEnable, - PathValues.V1BETA1_USERS_ID_GROUPS: V1beta1UsersIdGroups, - PathValues.V1BETA1_USERS_ID_INVITATIONS: V1beta1UsersIdInvitations, - PathValues.V1BETA1_USERS_ID_ORGANIZATIONS: V1beta1UsersIdOrganizations, - PathValues.V1BETA1_USERS_ID_PREFERENCES: V1beta1UsersIdPreferences, - PathValues.V1BETA1_USERS_ID_PROJECTS: V1beta1UsersIdProjects, - PathValues.V1BETA1_USERS_SELF: V1beta1UsersSelf, - PathValues.V1BETA1_USERS_SELF_GROUPS: V1beta1UsersSelfGroups, - PathValues.V1BETA1_USERS_SELF_ORGANIZATIONS: V1beta1UsersSelfOrganizations, - PathValues.V1BETA1_USERS_SELF_PREFERENCES: V1beta1UsersSelfPreferences, - PathValues.V1BETA1_USERS_SELF_PROJECTS: V1beta1UsersSelfProjects, - } -) - -path_to_api = PathToApi( - { - PathValues._WELLKNOWN_JWKS_JSON: WellKnownJwksJson, - PathValues.V1BETA1_ADMIN_GROUPS: V1beta1AdminGroups, - PathValues.V1BETA1_ADMIN_ORGANIZATIONS: V1beta1AdminOrganizations, - PathValues.V1BETA1_ADMIN_PROJECTS: V1beta1AdminProjects, - PathValues.V1BETA1_ADMIN_RELATIONS: V1beta1AdminRelations, - PathValues.V1BETA1_ADMIN_RESOURCES: V1beta1AdminResources, - PathValues.V1BETA1_ADMIN_USERS: V1beta1AdminUsers, - PathValues.V1BETA1_AUTH: V1beta1Auth, - PathValues.V1BETA1_AUTH_CALLBACK: V1beta1AuthCallback, - PathValues.V1BETA1_AUTH_JWKS: V1beta1AuthJwks, - PathValues.V1BETA1_AUTH_LOGOUT: V1beta1AuthLogout, - PathValues.V1BETA1_AUTH_REGISTER_STRATEGY_NAME: V1beta1AuthRegisterStrategyName, - PathValues.V1BETA1_AUTH_TOKEN: V1beta1AuthToken, - PathValues.V1BETA1_BATCHCHECK: V1beta1Batchcheck, - PathValues.V1BETA1_CHECK: V1beta1Check, - PathValues.V1BETA1_GROUPS_ID_PREFERENCES: V1beta1GroupsIdPreferences, - PathValues.V1BETA1_META_SCHEMAS: V1beta1MetaSchemas, - PathValues.V1BETA1_META_SCHEMAS_ID: V1beta1MetaSchemasId, - PathValues.V1BETA1_NAMESPACES: V1beta1Namespaces, - PathValues.V1BETA1_NAMESPACES_ID: V1beta1NamespacesId, - PathValues.V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS: V1beta1OrganizationOrgIdAuditlogs, - PathValues.V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS_ID: V1beta1OrganizationOrgIdAuditlogsId, - PathValues.V1BETA1_ORGANIZATIONS: V1beta1Organizations, - PathValues.V1BETA1_ORGANIZATIONS_ID: V1beta1OrganizationsId, - PathValues.V1BETA1_ORGANIZATIONS_ID_ADMINS: V1beta1OrganizationsIdAdmins, - PathValues.V1BETA1_ORGANIZATIONS_ID_DISABLE: V1beta1OrganizationsIdDisable, - PathValues.V1BETA1_ORGANIZATIONS_ID_ENABLE: V1beta1OrganizationsIdEnable, - PathValues.V1BETA1_ORGANIZATIONS_ID_PREFERENCES: V1beta1OrganizationsIdPreferences, - PathValues.V1BETA1_ORGANIZATIONS_ID_PROJECTS: V1beta1OrganizationsIdProjects, - PathValues.V1BETA1_ORGANIZATIONS_ID_SERVICEUSERS: V1beta1OrganizationsIdServiceusers, - PathValues.V1BETA1_ORGANIZATIONS_ID_USERS: V1beta1OrganizationsIdUsers, - PathValues.V1BETA1_ORGANIZATIONS_ID_USERS_USER_ID: V1beta1OrganizationsIdUsersUserId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS: V1beta1OrganizationsOrgIdDomains, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID: V1beta1OrganizationsOrgIdDomainsId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID_VERIFY: V1beta1OrganizationsOrgIdDomainsIdVerify, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS: V1beta1OrganizationsOrgIdGroups, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID: V1beta1OrganizationsOrgIdGroupsId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_DISABLE: V1beta1OrganizationsOrgIdGroupsIdDisable, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_ENABLE: V1beta1OrganizationsOrgIdGroupsIdEnable, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS: V1beta1OrganizationsOrgIdGroupsIdUsers, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS_USER_ID: V1beta1OrganizationsOrgIdGroupsIdUsersUserId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS: V1beta1OrganizationsOrgIdInvitations, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID: V1beta1OrganizationsOrgIdInvitationsId, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID_ACCEPT: V1beta1OrganizationsOrgIdInvitationsIdAccept, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_JOIN: V1beta1OrganizationsOrgIdJoin, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_ROLES: V1beta1OrganizationsOrgIdRoles, - PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_ROLES_ID: V1beta1OrganizationsOrgIdRolesId, - PathValues.V1BETA1_PERMISSIONS: V1beta1Permissions, - PathValues.V1BETA1_PERMISSIONS_ID: V1beta1PermissionsId, - PathValues.V1BETA1_POLICIES: V1beta1Policies, - PathValues.V1BETA1_POLICIES_ID: V1beta1PoliciesId, - PathValues.V1BETA1_PREFERENCES: V1beta1Preferences, - PathValues.V1BETA1_PREFERENCES_TRAITS: V1beta1PreferencesTraits, - PathValues.V1BETA1_PROJECTS: V1beta1Projects, - PathValues.V1BETA1_PROJECTS_ID: V1beta1ProjectsId, - PathValues.V1BETA1_PROJECTS_ID_ADMINS: V1beta1ProjectsIdAdmins, - PathValues.V1BETA1_PROJECTS_ID_DISABLE: V1beta1ProjectsIdDisable, - PathValues.V1BETA1_PROJECTS_ID_ENABLE: V1beta1ProjectsIdEnable, - PathValues.V1BETA1_PROJECTS_ID_PREFERENCES: V1beta1ProjectsIdPreferences, - PathValues.V1BETA1_PROJECTS_ID_SERVICEUSERS: V1beta1ProjectsIdServiceusers, - PathValues.V1BETA1_PROJECTS_ID_USERS: V1beta1ProjectsIdUsers, - PathValues.V1BETA1_PROJECTS_PROJECT_ID_RESOURCES: V1beta1ProjectsProjectIdResources, - PathValues.V1BETA1_PROJECTS_PROJECT_ID_RESOURCES_ID: V1beta1ProjectsProjectIdResourcesId, - PathValues.V1BETA1_RELATIONS: V1beta1Relations, - PathValues.V1BETA1_RELATIONS_ID: V1beta1RelationsId, - PathValues.V1BETA1_RELATIONS_RELATION_OBJECT_OBJECT_SUBJECT_SUBJECT: V1beta1RelationsRelationObjectObjectSubjectSubject, - PathValues.V1BETA1_ROLES: V1beta1Roles, - PathValues.V1BETA1_ROLES_ID: V1beta1RolesId, - PathValues.V1BETA1_SERVICEUSERS: V1beta1Serviceusers, - PathValues.V1BETA1_SERVICEUSERS_ID: V1beta1ServiceusersId, - PathValues.V1BETA1_SERVICEUSERS_ID_KEYS: V1beta1ServiceusersIdKeys, - PathValues.V1BETA1_SERVICEUSERS_ID_KEYS_KEY_ID: V1beta1ServiceusersIdKeysKeyId, - PathValues.V1BETA1_SERVICEUSERS_ID_SECRETS: V1beta1ServiceusersIdSecrets, - PathValues.V1BETA1_SERVICEUSERS_ID_SECRETS_SECRET_ID: V1beta1ServiceusersIdSecretsSecretId, - PathValues.V1BETA1_USERS: V1beta1Users, - PathValues.V1BETA1_USERS_ID: V1beta1UsersId, - PathValues.V1BETA1_USERS_ID_DISABLE: V1beta1UsersIdDisable, - PathValues.V1BETA1_USERS_ID_ENABLE: V1beta1UsersIdEnable, - PathValues.V1BETA1_USERS_ID_GROUPS: V1beta1UsersIdGroups, - PathValues.V1BETA1_USERS_ID_INVITATIONS: V1beta1UsersIdInvitations, - PathValues.V1BETA1_USERS_ID_ORGANIZATIONS: V1beta1UsersIdOrganizations, - PathValues.V1BETA1_USERS_ID_PREFERENCES: V1beta1UsersIdPreferences, - PathValues.V1BETA1_USERS_ID_PROJECTS: V1beta1UsersIdProjects, - PathValues.V1BETA1_USERS_SELF: V1beta1UsersSelf, - PathValues.V1BETA1_USERS_SELF_GROUPS: V1beta1UsersSelfGroups, - PathValues.V1BETA1_USERS_SELF_ORGANIZATIONS: V1beta1UsersSelfOrganizations, - PathValues.V1BETA1_USERS_SELF_PREFERENCES: V1beta1UsersSelfPreferences, - PathValues.V1BETA1_USERS_SELF_PROJECTS: V1beta1UsersSelfProjects, - } -) diff --git a/frontier_api/apis/paths/__init__.py b/frontier_api/apis/paths/__init__.py deleted file mode 100644 index 6be269a..0000000 --- a/frontier_api/apis/paths/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.apis.path_to_api import path_to_api diff --git a/frontier_api/apis/paths/v1beta1_admin_groups.py b/frontier_api/apis/paths/v1beta1_admin_groups.py deleted file mode 100644 index f29cc66..0000000 --- a/frontier_api/apis/paths/v1beta1_admin_groups.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_admin_groups.get import ApiForget - - -class V1beta1AdminGroups( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_admin_organizations.py b/frontier_api/apis/paths/v1beta1_admin_organizations.py deleted file mode 100644 index 1798d91..0000000 --- a/frontier_api/apis/paths/v1beta1_admin_organizations.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_admin_organizations.get import ApiForget - - -class V1beta1AdminOrganizations( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_admin_projects.py b/frontier_api/apis/paths/v1beta1_admin_projects.py deleted file mode 100644 index e7d840d..0000000 --- a/frontier_api/apis/paths/v1beta1_admin_projects.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_admin_projects.get import ApiForget - - -class V1beta1AdminProjects( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_admin_relations.py b/frontier_api/apis/paths/v1beta1_admin_relations.py deleted file mode 100644 index 745bb0f..0000000 --- a/frontier_api/apis/paths/v1beta1_admin_relations.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_admin_relations.get import ApiForget - - -class V1beta1AdminRelations( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_admin_resources.py b/frontier_api/apis/paths/v1beta1_admin_resources.py deleted file mode 100644 index c9f5a97..0000000 --- a/frontier_api/apis/paths/v1beta1_admin_resources.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_admin_resources.get import ApiForget - - -class V1beta1AdminResources( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_admin_users.py b/frontier_api/apis/paths/v1beta1_admin_users.py deleted file mode 100644 index affe0ee..0000000 --- a/frontier_api/apis/paths/v1beta1_admin_users.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_admin_users.get import ApiForget - - -class V1beta1AdminUsers( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_auth.py b/frontier_api/apis/paths/v1beta1_auth.py deleted file mode 100644 index 14c07bc..0000000 --- a/frontier_api/apis/paths/v1beta1_auth.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_auth.get import ApiForget - - -class V1beta1Auth( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_auth_callback.py b/frontier_api/apis/paths/v1beta1_auth_callback.py deleted file mode 100644 index 276b584..0000000 --- a/frontier_api/apis/paths/v1beta1_auth_callback.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_auth_callback.get import ApiForget -from frontier_api.paths.v1beta1_auth_callback.post import ApiForpost - - -class V1beta1AuthCallback( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_auth_jwks.py b/frontier_api/apis/paths/v1beta1_auth_jwks.py deleted file mode 100644 index 09c074b..0000000 --- a/frontier_api/apis/paths/v1beta1_auth_jwks.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_auth_jwks.get import ApiForget - - -class V1beta1AuthJwks( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_auth_logout.py b/frontier_api/apis/paths/v1beta1_auth_logout.py deleted file mode 100644 index 45b8af5..0000000 --- a/frontier_api/apis/paths/v1beta1_auth_logout.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_auth_logout.get import ApiForget -from frontier_api.paths.v1beta1_auth_logout.delete import ApiFordelete - - -class V1beta1AuthLogout( - ApiForget, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_auth_register_strategy_name.py b/frontier_api/apis/paths/v1beta1_auth_register_strategy_name.py deleted file mode 100644 index c7ce033..0000000 --- a/frontier_api/apis/paths/v1beta1_auth_register_strategy_name.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_auth_register_strategy_name.get import ApiForget -from frontier_api.paths.v1beta1_auth_register_strategy_name.post import ApiForpost - - -class V1beta1AuthRegisterStrategyName( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_auth_token.py b/frontier_api/apis/paths/v1beta1_auth_token.py deleted file mode 100644 index ac81c28..0000000 --- a/frontier_api/apis/paths/v1beta1_auth_token.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_auth_token.post import ApiForpost - - -class V1beta1AuthToken( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_batchcheck.py b/frontier_api/apis/paths/v1beta1_batchcheck.py deleted file mode 100644 index a6a8b69..0000000 --- a/frontier_api/apis/paths/v1beta1_batchcheck.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_batchcheck.post import ApiForpost - - -class V1beta1Batchcheck( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_check.py b/frontier_api/apis/paths/v1beta1_check.py deleted file mode 100644 index 5a082ef..0000000 --- a/frontier_api/apis/paths/v1beta1_check.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_check.post import ApiForpost - - -class V1beta1Check( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_groups_id_preferences.py b/frontier_api/apis/paths/v1beta1_groups_id_preferences.py deleted file mode 100644 index b4efb49..0000000 --- a/frontier_api/apis/paths/v1beta1_groups_id_preferences.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_groups_id_preferences.get import ApiForget -from frontier_api.paths.v1beta1_groups_id_preferences.post import ApiForpost - - -class V1beta1GroupsIdPreferences( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_meta_schemas.py b/frontier_api/apis/paths/v1beta1_meta_schemas.py deleted file mode 100644 index 8b3b383..0000000 --- a/frontier_api/apis/paths/v1beta1_meta_schemas.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_meta_schemas.get import ApiForget -from frontier_api.paths.v1beta1_meta_schemas.post import ApiForpost - - -class V1beta1MetaSchemas( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_meta_schemas_id.py b/frontier_api/apis/paths/v1beta1_meta_schemas_id.py deleted file mode 100644 index 78dccb4..0000000 --- a/frontier_api/apis/paths/v1beta1_meta_schemas_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_meta_schemas_id.get import ApiForget -from frontier_api.paths.v1beta1_meta_schemas_id.put import ApiForput -from frontier_api.paths.v1beta1_meta_schemas_id.delete import ApiFordelete - - -class V1beta1MetaSchemasId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_namespaces.py b/frontier_api/apis/paths/v1beta1_namespaces.py deleted file mode 100644 index fa627f5..0000000 --- a/frontier_api/apis/paths/v1beta1_namespaces.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_namespaces.get import ApiForget - - -class V1beta1Namespaces( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_namespaces_id.py b/frontier_api/apis/paths/v1beta1_namespaces_id.py deleted file mode 100644 index b5a9f4b..0000000 --- a/frontier_api/apis/paths/v1beta1_namespaces_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_namespaces_id.get import ApiForget - - -class V1beta1NamespacesId( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs.py b/frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs.py deleted file mode 100644 index 45381a5..0000000 --- a/frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organization_org_id_auditlogs.get import ApiForget -from frontier_api.paths.v1beta1_organization_org_id_auditlogs.post import ApiForpost - - -class V1beta1OrganizationOrgIdAuditlogs( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs_id.py b/frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs_id.py deleted file mode 100644 index ec39b01..0000000 --- a/frontier_api/apis/paths/v1beta1_organization_org_id_auditlogs_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organization_org_id_auditlogs_id.get import ApiForget - - -class V1beta1OrganizationOrgIdAuditlogsId( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations.py b/frontier_api/apis/paths/v1beta1_organizations.py deleted file mode 100644 index 88cd358..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations.get import ApiForget -from frontier_api.paths.v1beta1_organizations.post import ApiForpost - - -class V1beta1Organizations( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id.py b/frontier_api/apis/paths/v1beta1_organizations_id.py deleted file mode 100644 index 3a4e778..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id.get import ApiForget -from frontier_api.paths.v1beta1_organizations_id.put import ApiForput -from frontier_api.paths.v1beta1_organizations_id.delete import ApiFordelete - - -class V1beta1OrganizationsId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_admins.py b/frontier_api/apis/paths/v1beta1_organizations_id_admins.py deleted file mode 100644 index 645a707..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_admins.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_admins.get import ApiForget - - -class V1beta1OrganizationsIdAdmins( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_disable.py b/frontier_api/apis/paths/v1beta1_organizations_id_disable.py deleted file mode 100644 index 0c38ccb..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_disable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_disable.post import ApiForpost - - -class V1beta1OrganizationsIdDisable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_enable.py b/frontier_api/apis/paths/v1beta1_organizations_id_enable.py deleted file mode 100644 index 4dbdf69..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_enable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_enable.post import ApiForpost - - -class V1beta1OrganizationsIdEnable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_preferences.py b/frontier_api/apis/paths/v1beta1_organizations_id_preferences.py deleted file mode 100644 index c096946..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_preferences.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_preferences.get import ApiForget -from frontier_api.paths.v1beta1_organizations_id_preferences.post import ApiForpost - - -class V1beta1OrganizationsIdPreferences( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_projects.py b/frontier_api/apis/paths/v1beta1_organizations_id_projects.py deleted file mode 100644 index 2a03f73..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_projects.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_projects.get import ApiForget - - -class V1beta1OrganizationsIdProjects( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_serviceusers.py b/frontier_api/apis/paths/v1beta1_organizations_id_serviceusers.py deleted file mode 100644 index 394c3d8..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_serviceusers.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_serviceusers.get import ApiForget - - -class V1beta1OrganizationsIdServiceusers( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_users.py b/frontier_api/apis/paths/v1beta1_organizations_id_users.py deleted file mode 100644 index 2f863e6..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_users.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_users.get import ApiForget -from frontier_api.paths.v1beta1_organizations_id_users.post import ApiForpost - - -class V1beta1OrganizationsIdUsers( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_id_users_user_id.py b/frontier_api/apis/paths/v1beta1_organizations_id_users_user_id.py deleted file mode 100644 index 9f438a5..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_id_users_user_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_id_users_user_id.delete import ApiFordelete - - -class V1beta1OrganizationsIdUsersUserId( - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_domains.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_domains.py deleted file mode 100644 index e47d0a0..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_domains.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_domains.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_domains.post import ApiForpost - - -class V1beta1OrganizationsOrgIdDomains( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id.py deleted file mode 100644 index 4f6d9e4..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_domains_id.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_domains_id.delete import ApiFordelete - - -class V1beta1OrganizationsOrgIdDomainsId( - ApiForget, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id_verify.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id_verify.py deleted file mode 100644 index 420cd06..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_domains_id_verify.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_domains_id_verify.post import ApiForpost - - -class V1beta1OrganizationsOrgIdDomainsIdVerify( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_groups.py deleted file mode 100644 index fe3d497..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_groups.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_groups.post import ApiForpost - - -class V1beta1OrganizationsOrgIdGroups( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id.py deleted file mode 100644 index c9bb273..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_groups_id.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_groups_id.put import ApiForput -from frontier_api.paths.v1beta1_organizations_org_id_groups_id.delete import ApiFordelete - - -class V1beta1OrganizationsOrgIdGroupsId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_disable.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_disable.py deleted file mode 100644 index 824c945..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_disable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_disable.post import ApiForpost - - -class V1beta1OrganizationsOrgIdGroupsIdDisable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_enable.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_enable.py deleted file mode 100644 index 99b5d58..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_enable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_enable.post import ApiForpost - - -class V1beta1OrganizationsOrgIdGroupsIdEnable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users.py deleted file mode 100644 index b45e93c..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users.post import ApiForpost - - -class V1beta1OrganizationsOrgIdGroupsIdUsers( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users_user_id.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users_user_id.py deleted file mode 100644 index 88c2117..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_groups_id_users_user_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users_user_id.delete import ApiFordelete - - -class V1beta1OrganizationsOrgIdGroupsIdUsersUserId( - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations.py deleted file mode 100644 index c871f37..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_invitations.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_invitations.post import ApiForpost - - -class V1beta1OrganizationsOrgIdInvitations( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id.py deleted file mode 100644 index 4b0d697..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id.delete import ApiFordelete - - -class V1beta1OrganizationsOrgIdInvitationsId( - ApiForget, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id_accept.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id_accept.py deleted file mode 100644 index 727cec8..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_invitations_id_accept.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id_accept.post import ApiForpost - - -class V1beta1OrganizationsOrgIdInvitationsIdAccept( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_join.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_join.py deleted file mode 100644 index 264500d..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_join.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_join.post import ApiForpost - - -class V1beta1OrganizationsOrgIdJoin( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_roles.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_roles.py deleted file mode 100644 index 1e89bf4..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_roles.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_roles.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_roles.post import ApiForpost - - -class V1beta1OrganizationsOrgIdRoles( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_organizations_org_id_roles_id.py b/frontier_api/apis/paths/v1beta1_organizations_org_id_roles_id.py deleted file mode 100644 index bf09348..0000000 --- a/frontier_api/apis/paths/v1beta1_organizations_org_id_roles_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_organizations_org_id_roles_id.get import ApiForget -from frontier_api.paths.v1beta1_organizations_org_id_roles_id.put import ApiForput -from frontier_api.paths.v1beta1_organizations_org_id_roles_id.delete import ApiFordelete - - -class V1beta1OrganizationsOrgIdRolesId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_permissions.py b/frontier_api/apis/paths/v1beta1_permissions.py deleted file mode 100644 index d3bc0f2..0000000 --- a/frontier_api/apis/paths/v1beta1_permissions.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_permissions.get import ApiForget -from frontier_api.paths.v1beta1_permissions.post import ApiForpost - - -class V1beta1Permissions( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_permissions_id.py b/frontier_api/apis/paths/v1beta1_permissions_id.py deleted file mode 100644 index 813e139..0000000 --- a/frontier_api/apis/paths/v1beta1_permissions_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_permissions_id.get import ApiForget -from frontier_api.paths.v1beta1_permissions_id.put import ApiForput -from frontier_api.paths.v1beta1_permissions_id.delete import ApiFordelete - - -class V1beta1PermissionsId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_policies.py b/frontier_api/apis/paths/v1beta1_policies.py deleted file mode 100644 index 40a1e29..0000000 --- a/frontier_api/apis/paths/v1beta1_policies.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_policies.get import ApiForget -from frontier_api.paths.v1beta1_policies.post import ApiForpost - - -class V1beta1Policies( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_policies_id.py b/frontier_api/apis/paths/v1beta1_policies_id.py deleted file mode 100644 index 114c9b4..0000000 --- a/frontier_api/apis/paths/v1beta1_policies_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_policies_id.get import ApiForget -from frontier_api.paths.v1beta1_policies_id.put import ApiForput -from frontier_api.paths.v1beta1_policies_id.delete import ApiFordelete - - -class V1beta1PoliciesId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_preferences.py b/frontier_api/apis/paths/v1beta1_preferences.py deleted file mode 100644 index be8ea96..0000000 --- a/frontier_api/apis/paths/v1beta1_preferences.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_preferences.get import ApiForget -from frontier_api.paths.v1beta1_preferences.post import ApiForpost - - -class V1beta1Preferences( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_preferences_traits.py b/frontier_api/apis/paths/v1beta1_preferences_traits.py deleted file mode 100644 index 1a802b8..0000000 --- a/frontier_api/apis/paths/v1beta1_preferences_traits.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_preferences_traits.get import ApiForget - - -class V1beta1PreferencesTraits( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects.py b/frontier_api/apis/paths/v1beta1_projects.py deleted file mode 100644 index 6bc35ea..0000000 --- a/frontier_api/apis/paths/v1beta1_projects.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_projects.post import ApiForpost - - -class V1beta1Projects( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id.py b/frontier_api/apis/paths/v1beta1_projects_id.py deleted file mode 100644 index 54bf7cf..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id.get import ApiForget -from frontier_api.paths.v1beta1_projects_id.put import ApiForput -from frontier_api.paths.v1beta1_projects_id.delete import ApiFordelete - - -class V1beta1ProjectsId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id_admins.py b/frontier_api/apis/paths/v1beta1_projects_id_admins.py deleted file mode 100644 index 0598fcd..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id_admins.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id_admins.get import ApiForget - - -class V1beta1ProjectsIdAdmins( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id_disable.py b/frontier_api/apis/paths/v1beta1_projects_id_disable.py deleted file mode 100644 index ba6269a..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id_disable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id_disable.post import ApiForpost - - -class V1beta1ProjectsIdDisable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id_enable.py b/frontier_api/apis/paths/v1beta1_projects_id_enable.py deleted file mode 100644 index 7807cda..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id_enable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id_enable.post import ApiForpost - - -class V1beta1ProjectsIdEnable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id_preferences.py b/frontier_api/apis/paths/v1beta1_projects_id_preferences.py deleted file mode 100644 index 28efcb8..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id_preferences.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id_preferences.get import ApiForget -from frontier_api.paths.v1beta1_projects_id_preferences.post import ApiForpost - - -class V1beta1ProjectsIdPreferences( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id_serviceusers.py b/frontier_api/apis/paths/v1beta1_projects_id_serviceusers.py deleted file mode 100644 index f638916..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id_serviceusers.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id_serviceusers.get import ApiForget - - -class V1beta1ProjectsIdServiceusers( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_id_users.py b/frontier_api/apis/paths/v1beta1_projects_id_users.py deleted file mode 100644 index a97933e..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_id_users.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_projects_id_users.get import ApiForget - - -class V1beta1ProjectsIdUsers( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_project_id_resources.py b/frontier_api/apis/paths/v1beta1_projects_project_id_resources.py deleted file mode 100644 index 2c9a28f..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_project_id_resources.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_projects_project_id_resources.get import ApiForget -from frontier_api.paths.v1beta1_projects_project_id_resources.post import ApiForpost - - -class V1beta1ProjectsProjectIdResources( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_projects_project_id_resources_id.py b/frontier_api/apis/paths/v1beta1_projects_project_id_resources_id.py deleted file mode 100644 index 2826073..0000000 --- a/frontier_api/apis/paths/v1beta1_projects_project_id_resources_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_projects_project_id_resources_id.get import ApiForget -from frontier_api.paths.v1beta1_projects_project_id_resources_id.put import ApiForput -from frontier_api.paths.v1beta1_projects_project_id_resources_id.delete import ApiFordelete - - -class V1beta1ProjectsProjectIdResourcesId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_relations.py b/frontier_api/apis/paths/v1beta1_relations.py deleted file mode 100644 index 5b9e9cc..0000000 --- a/frontier_api/apis/paths/v1beta1_relations.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_relations.post import ApiForpost - - -class V1beta1Relations( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_relations_id.py b/frontier_api/apis/paths/v1beta1_relations_id.py deleted file mode 100644 index 02369b5..0000000 --- a/frontier_api/apis/paths/v1beta1_relations_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_relations_id.get import ApiForget - - -class V1beta1RelationsId( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_relations_relation_object_object_subject_subject.py b/frontier_api/apis/paths/v1beta1_relations_relation_object_object_subject_subject.py deleted file mode 100644 index 26f5919..0000000 --- a/frontier_api/apis/paths/v1beta1_relations_relation_object_object_subject_subject.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_relations_relation_object_object_subject_subject.delete import ApiFordelete - - -class V1beta1RelationsRelationObjectObjectSubjectSubject( - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_roles.py b/frontier_api/apis/paths/v1beta1_roles.py deleted file mode 100644 index f601c40..0000000 --- a/frontier_api/apis/paths/v1beta1_roles.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_roles.get import ApiForget -from frontier_api.paths.v1beta1_roles.post import ApiForpost - - -class V1beta1Roles( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_roles_id.py b/frontier_api/apis/paths/v1beta1_roles_id.py deleted file mode 100644 index 309f36e..0000000 --- a/frontier_api/apis/paths/v1beta1_roles_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_roles_id.put import ApiForput -from frontier_api.paths.v1beta1_roles_id.delete import ApiFordelete - - -class V1beta1RolesId( - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_serviceusers.py b/frontier_api/apis/paths/v1beta1_serviceusers.py deleted file mode 100644 index faf4c67..0000000 --- a/frontier_api/apis/paths/v1beta1_serviceusers.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_serviceusers.get import ApiForget -from frontier_api.paths.v1beta1_serviceusers.post import ApiForpost - - -class V1beta1Serviceusers( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_serviceusers_id.py b/frontier_api/apis/paths/v1beta1_serviceusers_id.py deleted file mode 100644 index 8e10b37..0000000 --- a/frontier_api/apis/paths/v1beta1_serviceusers_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_serviceusers_id.get import ApiForget -from frontier_api.paths.v1beta1_serviceusers_id.delete import ApiFordelete - - -class V1beta1ServiceusersId( - ApiForget, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_serviceusers_id_keys.py b/frontier_api/apis/paths/v1beta1_serviceusers_id_keys.py deleted file mode 100644 index 9da4bb9..0000000 --- a/frontier_api/apis/paths/v1beta1_serviceusers_id_keys.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_serviceusers_id_keys.get import ApiForget -from frontier_api.paths.v1beta1_serviceusers_id_keys.post import ApiForpost - - -class V1beta1ServiceusersIdKeys( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_serviceusers_id_keys_key_id.py b/frontier_api/apis/paths/v1beta1_serviceusers_id_keys_key_id.py deleted file mode 100644 index 1d44867..0000000 --- a/frontier_api/apis/paths/v1beta1_serviceusers_id_keys_key_id.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id.get import ApiForget -from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id.delete import ApiFordelete - - -class V1beta1ServiceusersIdKeysKeyId( - ApiForget, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_serviceusers_id_secrets.py b/frontier_api/apis/paths/v1beta1_serviceusers_id_secrets.py deleted file mode 100644 index a985bf2..0000000 --- a/frontier_api/apis/paths/v1beta1_serviceusers_id_secrets.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_serviceusers_id_secrets.get import ApiForget -from frontier_api.paths.v1beta1_serviceusers_id_secrets.post import ApiForpost - - -class V1beta1ServiceusersIdSecrets( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_serviceusers_id_secrets_secret_id.py b/frontier_api/apis/paths/v1beta1_serviceusers_id_secrets_secret_id.py deleted file mode 100644 index c488631..0000000 --- a/frontier_api/apis/paths/v1beta1_serviceusers_id_secrets_secret_id.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_serviceusers_id_secrets_secret_id.delete import ApiFordelete - - -class V1beta1ServiceusersIdSecretsSecretId( - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users.py b/frontier_api/apis/paths/v1beta1_users.py deleted file mode 100644 index cd85a59..0000000 --- a/frontier_api/apis/paths/v1beta1_users.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_users.get import ApiForget -from frontier_api.paths.v1beta1_users.post import ApiForpost - - -class V1beta1Users( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id.py b/frontier_api/apis/paths/v1beta1_users_id.py deleted file mode 100644 index d3be1a9..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id.py +++ /dev/null @@ -1,11 +0,0 @@ -from frontier_api.paths.v1beta1_users_id.get import ApiForget -from frontier_api.paths.v1beta1_users_id.put import ApiForput -from frontier_api.paths.v1beta1_users_id.delete import ApiFordelete - - -class V1beta1UsersId( - ApiForget, - ApiForput, - ApiFordelete, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_disable.py b/frontier_api/apis/paths/v1beta1_users_id_disable.py deleted file mode 100644 index 4552a9c..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_disable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_disable.post import ApiForpost - - -class V1beta1UsersIdDisable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_enable.py b/frontier_api/apis/paths/v1beta1_users_id_enable.py deleted file mode 100644 index 50cadcf..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_enable.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_enable.post import ApiForpost - - -class V1beta1UsersIdEnable( - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_groups.py b/frontier_api/apis/paths/v1beta1_users_id_groups.py deleted file mode 100644 index 0c875a2..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_groups.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_groups.get import ApiForget - - -class V1beta1UsersIdGroups( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_invitations.py b/frontier_api/apis/paths/v1beta1_users_id_invitations.py deleted file mode 100644 index c7fdb76..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_invitations.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_invitations.get import ApiForget - - -class V1beta1UsersIdInvitations( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_organizations.py b/frontier_api/apis/paths/v1beta1_users_id_organizations.py deleted file mode 100644 index d2d557d..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_organizations.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_organizations.get import ApiForget - - -class V1beta1UsersIdOrganizations( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_preferences.py b/frontier_api/apis/paths/v1beta1_users_id_preferences.py deleted file mode 100644 index 28ed9ce..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_preferences.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_preferences.get import ApiForget -from frontier_api.paths.v1beta1_users_id_preferences.post import ApiForpost - - -class V1beta1UsersIdPreferences( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_id_projects.py b/frontier_api/apis/paths/v1beta1_users_id_projects.py deleted file mode 100644 index 0d51973..0000000 --- a/frontier_api/apis/paths/v1beta1_users_id_projects.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_id_projects.get import ApiForget - - -class V1beta1UsersIdProjects( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_self.py b/frontier_api/apis/paths/v1beta1_users_self.py deleted file mode 100644 index c7439c7..0000000 --- a/frontier_api/apis/paths/v1beta1_users_self.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_users_self.get import ApiForget -from frontier_api.paths.v1beta1_users_self.put import ApiForput - - -class V1beta1UsersSelf( - ApiForget, - ApiForput, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_self_groups.py b/frontier_api/apis/paths/v1beta1_users_self_groups.py deleted file mode 100644 index e5e6402..0000000 --- a/frontier_api/apis/paths/v1beta1_users_self_groups.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_self_groups.get import ApiForget - - -class V1beta1UsersSelfGroups( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_self_organizations.py b/frontier_api/apis/paths/v1beta1_users_self_organizations.py deleted file mode 100644 index f440ef1..0000000 --- a/frontier_api/apis/paths/v1beta1_users_self_organizations.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_self_organizations.get import ApiForget - - -class V1beta1UsersSelfOrganizations( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_self_preferences.py b/frontier_api/apis/paths/v1beta1_users_self_preferences.py deleted file mode 100644 index b111773..0000000 --- a/frontier_api/apis/paths/v1beta1_users_self_preferences.py +++ /dev/null @@ -1,9 +0,0 @@ -from frontier_api.paths.v1beta1_users_self_preferences.get import ApiForget -from frontier_api.paths.v1beta1_users_self_preferences.post import ApiForpost - - -class V1beta1UsersSelfPreferences( - ApiForget, - ApiForpost, -): - pass diff --git a/frontier_api/apis/paths/v1beta1_users_self_projects.py b/frontier_api/apis/paths/v1beta1_users_self_projects.py deleted file mode 100644 index 8e15019..0000000 --- a/frontier_api/apis/paths/v1beta1_users_self_projects.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.v1beta1_users_self_projects.get import ApiForget - - -class V1beta1UsersSelfProjects( - ApiForget, -): - pass diff --git a/frontier_api/apis/paths/well_known_jwks_json.py b/frontier_api/apis/paths/well_known_jwks_json.py deleted file mode 100644 index 4ec7706..0000000 --- a/frontier_api/apis/paths/well_known_jwks_json.py +++ /dev/null @@ -1,7 +0,0 @@ -from frontier_api.paths.well_known_jwks_json.get import ApiForget - - -class WellKnownJwksJson( - ApiForget, -): - pass diff --git a/frontier_api/apis/tag_to_api.py b/frontier_api/apis/tag_to_api.py deleted file mode 100644 index f3934c6..0000000 --- a/frontier_api/apis/tag_to_api.py +++ /dev/null @@ -1,68 +0,0 @@ -import typing_extensions - -from frontier_api.apis.tags import TagValues -from frontier_api.apis.tags.admin_service_api import AdminServiceApi -from frontier_api.apis.tags.frontier_service_api import FrontierServiceApi -from frontier_api.apis.tags.user_api import UserApi -from frontier_api.apis.tags.group_api import GroupApi -from frontier_api.apis.tags.organization_api import OrganizationApi -from frontier_api.apis.tags.project_api import ProjectApi -from frontier_api.apis.tags.relation_api import RelationApi -from frontier_api.apis.tags.resource_api import ResourceApi -from frontier_api.apis.tags.policy_api import PolicyApi -from frontier_api.apis.tags.role_api import RoleApi -from frontier_api.apis.tags.permission_api import PermissionApi -from frontier_api.apis.tags.audit_log_api import AuditLogApi -from frontier_api.apis.tags.authn_api import AuthnApi -from frontier_api.apis.tags.authz_api import AuthzApi -from frontier_api.apis.tags.meta_schema_api import MetaSchemaApi -from frontier_api.apis.tags.namespace_api import NamespaceApi -from frontier_api.apis.tags.preference_api import PreferenceApi -from frontier_api.apis.tags.service_user_api import ServiceUserApi - -TagToApi = typing_extensions.TypedDict( - 'TagToApi', - { - TagValues.ADMIN_SERVICE: AdminServiceApi, - TagValues.FRONTIER_SERVICE: FrontierServiceApi, - TagValues.USER: UserApi, - TagValues.GROUP: GroupApi, - TagValues.ORGANIZATION: OrganizationApi, - TagValues.PROJECT: ProjectApi, - TagValues.RELATION: RelationApi, - TagValues.RESOURCE: ResourceApi, - TagValues.POLICY: PolicyApi, - TagValues.ROLE: RoleApi, - TagValues.PERMISSION: PermissionApi, - TagValues.AUDIT_LOG: AuditLogApi, - TagValues.AUTHN: AuthnApi, - TagValues.AUTHZ: AuthzApi, - TagValues.META_SCHEMA: MetaSchemaApi, - TagValues.NAMESPACE: NamespaceApi, - TagValues.PREFERENCE: PreferenceApi, - TagValues.SERVICE_USER: ServiceUserApi, - } -) - -tag_to_api = TagToApi( - { - TagValues.ADMIN_SERVICE: AdminServiceApi, - TagValues.FRONTIER_SERVICE: FrontierServiceApi, - TagValues.USER: UserApi, - TagValues.GROUP: GroupApi, - TagValues.ORGANIZATION: OrganizationApi, - TagValues.PROJECT: ProjectApi, - TagValues.RELATION: RelationApi, - TagValues.RESOURCE: ResourceApi, - TagValues.POLICY: PolicyApi, - TagValues.ROLE: RoleApi, - TagValues.PERMISSION: PermissionApi, - TagValues.AUDIT_LOG: AuditLogApi, - TagValues.AUTHN: AuthnApi, - TagValues.AUTHZ: AuthzApi, - TagValues.META_SCHEMA: MetaSchemaApi, - TagValues.NAMESPACE: NamespaceApi, - TagValues.PREFERENCE: PreferenceApi, - TagValues.SERVICE_USER: ServiceUserApi, - } -) diff --git a/frontier_api/apis/tags/__init__.py b/frontier_api/apis/tags/__init__.py deleted file mode 100644 index a1dfa3c..0000000 --- a/frontier_api/apis/tags/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.apis.tag_to_api import tag_to_api - -import enum - - -class TagValues(str, enum.Enum): - ADMIN_SERVICE = "AdminService" - FRONTIER_SERVICE = "FrontierService" - USER = "User" - GROUP = "Group" - ORGANIZATION = "Organization" - PROJECT = "Project" - RELATION = "Relation" - RESOURCE = "Resource" - POLICY = "Policy" - ROLE = "Role" - PERMISSION = "Permission" - AUDIT_LOG = "AuditLog" - AUTHN = "Authn" - AUTHZ = "Authz" - META_SCHEMA = "MetaSchema" - NAMESPACE = "Namespace" - PREFERENCE = "Preference" - SERVICE_USER = "ServiceUser" diff --git a/frontier_api/apis/tags/audit_log_api.py b/frontier_api/apis/tags/audit_log_api.py deleted file mode 100644 index 0ea44e2..0000000 --- a/frontier_api/apis/tags/audit_log_api.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_organization_org_id_auditlogs.post import FrontierServiceCreateOrganizationAuditLogs -from frontier_api.paths.v1beta1_organization_org_id_auditlogs_id.get import FrontierServiceGetOrganizationAuditLog -from frontier_api.paths.v1beta1_organization_org_id_auditlogs.get import FrontierServiceListOrganizationAuditLogs - - -class AuditLogApi( - FrontierServiceCreateOrganizationAuditLogs, - FrontierServiceGetOrganizationAuditLog, - FrontierServiceListOrganizationAuditLogs, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/authn_api.py b/frontier_api/apis/tags/authn_api.py deleted file mode 100644 index 74d0746..0000000 --- a/frontier_api/apis/tags/authn_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_auth_callback.get import FrontierServiceAuthCallback -from frontier_api.paths.v1beta1_auth_callback.post import FrontierServiceAuthCallback2 -from frontier_api.paths.v1beta1_auth_logout.get import FrontierServiceAuthLogout -from frontier_api.paths.v1beta1_auth_logout.delete import FrontierServiceAuthLogout2 -from frontier_api.paths.v1beta1_auth_token.post import FrontierServiceAuthToken -from frontier_api.paths.v1beta1_auth_register_strategy_name.get import FrontierServiceAuthenticate -from frontier_api.paths.v1beta1_auth_register_strategy_name.post import FrontierServiceAuthenticate2 -from frontier_api.paths.v1beta1_auth.get import FrontierServiceListAuthStrategies - - -class AuthnApi( - FrontierServiceAuthCallback, - FrontierServiceAuthCallback2, - FrontierServiceAuthLogout, - FrontierServiceAuthLogout2, - FrontierServiceAuthToken, - FrontierServiceAuthenticate, - FrontierServiceAuthenticate2, - FrontierServiceListAuthStrategies, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/authz_api.py b/frontier_api/apis/tags/authz_api.py deleted file mode 100644 index a5a5481..0000000 --- a/frontier_api/apis/tags/authz_api.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_batchcheck.post import FrontierServiceBatchCheckPermission -from frontier_api.paths.v1beta1_check.post import FrontierServiceCheckResourcePermission -from frontier_api.paths.v1beta1_auth_jwks.get import FrontierServiceGetJwks -from frontier_api.paths.well_known_jwks_json.get import FrontierServiceGetJwks2 - - -class AuthzApi( - FrontierServiceBatchCheckPermission, - FrontierServiceCheckResourcePermission, - FrontierServiceGetJwks, - FrontierServiceGetJwks2, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/group_api.py b/frontier_api/apis/tags/group_api.py deleted file mode 100644 index 93082e2..0000000 --- a/frontier_api/apis/tags/group_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_admin_groups.get import AdminServiceListGroups -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users.post import FrontierServiceAddGroupUsers -from frontier_api.paths.v1beta1_organizations_org_id_groups.post import FrontierServiceCreateGroup -from frontier_api.paths.v1beta1_organizations_org_id_groups_id.delete import FrontierServiceDeleteGroup -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_disable.post import FrontierServiceDisableGroup -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_enable.post import FrontierServiceEnableGroup -from frontier_api.paths.v1beta1_organizations_org_id_groups_id.get import FrontierServiceGetGroup -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users.get import FrontierServiceListGroupUsers -from frontier_api.paths.v1beta1_organizations_org_id_groups.get import FrontierServiceListOrganizationGroups -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users_user_id.delete import FrontierServiceRemoveGroupUser -from frontier_api.paths.v1beta1_organizations_org_id_groups_id.put import FrontierServiceUpdateGroup - - -class GroupApi( - AdminServiceListGroups, - FrontierServiceAddGroupUsers, - FrontierServiceCreateGroup, - FrontierServiceDeleteGroup, - FrontierServiceDisableGroup, - FrontierServiceEnableGroup, - FrontierServiceGetGroup, - FrontierServiceListGroupUsers, - FrontierServiceListOrganizationGroups, - FrontierServiceRemoveGroupUser, - FrontierServiceUpdateGroup, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/meta_schema_api.py b/frontier_api/apis/tags/meta_schema_api.py deleted file mode 100644 index e563eeb..0000000 --- a/frontier_api/apis/tags/meta_schema_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_meta_schemas.post import FrontierServiceCreateMetaSchema -from frontier_api.paths.v1beta1_meta_schemas_id.delete import FrontierServiceDeleteMetaSchema -from frontier_api.paths.v1beta1_meta_schemas_id.get import FrontierServiceGetMetaSchema -from frontier_api.paths.v1beta1_meta_schemas.get import FrontierServiceListMetaSchemas -from frontier_api.paths.v1beta1_meta_schemas_id.put import FrontierServiceUpdateMetaSchema - - -class MetaSchemaApi( - FrontierServiceCreateMetaSchema, - FrontierServiceDeleteMetaSchema, - FrontierServiceGetMetaSchema, - FrontierServiceListMetaSchemas, - FrontierServiceUpdateMetaSchema, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/namespace_api.py b/frontier_api/apis/tags/namespace_api.py deleted file mode 100644 index 6deda5d..0000000 --- a/frontier_api/apis/tags/namespace_api.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_namespaces_id.get import FrontierServiceGetNamespace -from frontier_api.paths.v1beta1_namespaces.get import FrontierServiceListNamespaces - - -class NamespaceApi( - FrontierServiceGetNamespace, - FrontierServiceListNamespaces, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/organization_api.py b/frontier_api/apis/tags/organization_api.py deleted file mode 100644 index c08c8aa..0000000 --- a/frontier_api/apis/tags/organization_api.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_admin_organizations.get import AdminServiceListAllOrganizations -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id_accept.post import FrontierServiceAcceptOrganizationInvitation -from frontier_api.paths.v1beta1_organizations_id_users.post import FrontierServiceAddOrganizationUsers -from frontier_api.paths.v1beta1_organizations.post import FrontierServiceCreateOrganization -from frontier_api.paths.v1beta1_organizations_org_id_domains.post import FrontierServiceCreateOrganizationDomain -from frontier_api.paths.v1beta1_organizations_org_id_invitations.post import FrontierServiceCreateOrganizationInvitation -from frontier_api.paths.v1beta1_organizations_id.delete import FrontierServiceDeleteOrganization -from frontier_api.paths.v1beta1_organizations_org_id_domains_id.delete import FrontierServiceDeleteOrganizationDomain -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id.delete import FrontierServiceDeleteOrganizationInvitation -from frontier_api.paths.v1beta1_organizations_id_disable.post import FrontierServiceDisableOrganization -from frontier_api.paths.v1beta1_organizations_id_enable.post import FrontierServiceEnableOrganization -from frontier_api.paths.v1beta1_organizations_id.get import FrontierServiceGetOrganization -from frontier_api.paths.v1beta1_organizations_org_id_domains_id.get import FrontierServiceGetOrganizationDomain -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id.get import FrontierServiceGetOrganizationInvitation -from frontier_api.paths.v1beta1_organizations_org_id_join.post import FrontierServiceJoinOrganization -from frontier_api.paths.v1beta1_organizations_id_admins.get import FrontierServiceListOrganizationAdmins -from frontier_api.paths.v1beta1_organizations_org_id_domains.get import FrontierServiceListOrganizationDomains -from frontier_api.paths.v1beta1_organizations_org_id_invitations.get import FrontierServiceListOrganizationInvitations -from frontier_api.paths.v1beta1_organizations_id_projects.get import FrontierServiceListOrganizationProjects -from frontier_api.paths.v1beta1_organizations_id_serviceusers.get import FrontierServiceListOrganizationServiceUsers -from frontier_api.paths.v1beta1_organizations_id_users.get import FrontierServiceListOrganizationUsers -from frontier_api.paths.v1beta1_organizations.get import FrontierServiceListOrganizations -from frontier_api.paths.v1beta1_organizations_id_users_user_id.delete import FrontierServiceRemoveOrganizationUser -from frontier_api.paths.v1beta1_organizations_id.put import FrontierServiceUpdateOrganization -from frontier_api.paths.v1beta1_organizations_org_id_domains_id_verify.post import FrontierServiceVerifyOrganizationDomain - - -class OrganizationApi( - AdminServiceListAllOrganizations, - FrontierServiceAcceptOrganizationInvitation, - FrontierServiceAddOrganizationUsers, - FrontierServiceCreateOrganization, - FrontierServiceCreateOrganizationDomain, - FrontierServiceCreateOrganizationInvitation, - FrontierServiceDeleteOrganization, - FrontierServiceDeleteOrganizationDomain, - FrontierServiceDeleteOrganizationInvitation, - FrontierServiceDisableOrganization, - FrontierServiceEnableOrganization, - FrontierServiceGetOrganization, - FrontierServiceGetOrganizationDomain, - FrontierServiceGetOrganizationInvitation, - FrontierServiceJoinOrganization, - FrontierServiceListOrganizationAdmins, - FrontierServiceListOrganizationDomains, - FrontierServiceListOrganizationInvitations, - FrontierServiceListOrganizationProjects, - FrontierServiceListOrganizationServiceUsers, - FrontierServiceListOrganizationUsers, - FrontierServiceListOrganizations, - FrontierServiceRemoveOrganizationUser, - FrontierServiceUpdateOrganization, - FrontierServiceVerifyOrganizationDomain, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/permission_api.py b/frontier_api/apis/tags/permission_api.py deleted file mode 100644 index 27667af..0000000 --- a/frontier_api/apis/tags/permission_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_permissions.post import AdminServiceCreatePermission -from frontier_api.paths.v1beta1_permissions_id.delete import AdminServiceDeletePermission -from frontier_api.paths.v1beta1_permissions_id.put import AdminServiceUpdatePermission -from frontier_api.paths.v1beta1_permissions_id.get import FrontierServiceGetPermission -from frontier_api.paths.v1beta1_permissions.get import FrontierServiceListPermissions - - -class PermissionApi( - AdminServiceCreatePermission, - AdminServiceDeletePermission, - AdminServiceUpdatePermission, - FrontierServiceGetPermission, - FrontierServiceListPermissions, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/policy_api.py b/frontier_api/apis/tags/policy_api.py deleted file mode 100644 index cb15047..0000000 --- a/frontier_api/apis/tags/policy_api.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_policies.get import AdminServiceListPolicies -from frontier_api.paths.v1beta1_policies.post import FrontierServiceCreatePolicy -from frontier_api.paths.v1beta1_policies_id.delete import FrontierServiceDeletePolicy -from frontier_api.paths.v1beta1_policies_id.get import FrontierServiceGetPolicy -from frontier_api.paths.v1beta1_policies_id.put import FrontierServiceUpdatePolicy - - -class PolicyApi( - AdminServiceListPolicies, - FrontierServiceCreatePolicy, - FrontierServiceDeletePolicy, - FrontierServiceGetPolicy, - FrontierServiceUpdatePolicy, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/preference_api.py b/frontier_api/apis/tags/preference_api.py deleted file mode 100644 index 37ada83..0000000 --- a/frontier_api/apis/tags/preference_api.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_preferences.post import AdminServiceCreatePreferences -from frontier_api.paths.v1beta1_preferences.get import AdminServiceListPreferences -from frontier_api.paths.v1beta1_users_self_preferences.post import FrontierServiceCreateCurrentUserPreferences -from frontier_api.paths.v1beta1_groups_id_preferences.post import FrontierServiceCreateGroupPreferences -from frontier_api.paths.v1beta1_organizations_id_preferences.post import FrontierServiceCreateOrganizationPreferences -from frontier_api.paths.v1beta1_projects_id_preferences.post import FrontierServiceCreateProjectPreferences -from frontier_api.paths.v1beta1_users_id_preferences.post import FrontierServiceCreateUserPreferences -from frontier_api.paths.v1beta1_preferences_traits.get import FrontierServiceDescribePreferences -from frontier_api.paths.v1beta1_users_self_preferences.get import FrontierServiceListCurrentUserPreferences -from frontier_api.paths.v1beta1_groups_id_preferences.get import FrontierServiceListGroupPreferences -from frontier_api.paths.v1beta1_organizations_id_preferences.get import FrontierServiceListOrganizationPreferences -from frontier_api.paths.v1beta1_projects_id_preferences.get import FrontierServiceListProjectPreferences -from frontier_api.paths.v1beta1_users_id_preferences.get import FrontierServiceListUserPreferences - - -class PreferenceApi( - AdminServiceCreatePreferences, - AdminServiceListPreferences, - FrontierServiceCreateCurrentUserPreferences, - FrontierServiceCreateGroupPreferences, - FrontierServiceCreateOrganizationPreferences, - FrontierServiceCreateProjectPreferences, - FrontierServiceCreateUserPreferences, - FrontierServiceDescribePreferences, - FrontierServiceListCurrentUserPreferences, - FrontierServiceListGroupPreferences, - FrontierServiceListOrganizationPreferences, - FrontierServiceListProjectPreferences, - FrontierServiceListUserPreferences, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/project_api.py b/frontier_api/apis/tags/project_api.py deleted file mode 100644 index 63876f8..0000000 --- a/frontier_api/apis/tags/project_api.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_admin_projects.get import AdminServiceListProjects -from frontier_api.paths.v1beta1_projects.post import FrontierServiceCreateProject -from frontier_api.paths.v1beta1_projects_id.delete import FrontierServiceDeleteProject -from frontier_api.paths.v1beta1_projects_id_disable.post import FrontierServiceDisableProject -from frontier_api.paths.v1beta1_projects_id_enable.post import FrontierServiceEnableProject -from frontier_api.paths.v1beta1_projects_id.get import FrontierServiceGetProject -from frontier_api.paths.v1beta1_projects_id_admins.get import FrontierServiceListProjectAdmins -from frontier_api.paths.v1beta1_projects_id_serviceusers.get import FrontierServiceListProjectServiceUsers -from frontier_api.paths.v1beta1_projects_id_users.get import FrontierServiceListProjectUsers -from frontier_api.paths.v1beta1_projects_id.put import FrontierServiceUpdateProject - - -class ProjectApi( - AdminServiceListProjects, - FrontierServiceCreateProject, - FrontierServiceDeleteProject, - FrontierServiceDisableProject, - FrontierServiceEnableProject, - FrontierServiceGetProject, - FrontierServiceListProjectAdmins, - FrontierServiceListProjectServiceUsers, - FrontierServiceListProjectUsers, - FrontierServiceUpdateProject, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/relation_api.py b/frontier_api/apis/tags/relation_api.py deleted file mode 100644 index 397ec9a..0000000 --- a/frontier_api/apis/tags/relation_api.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_admin_relations.get import AdminServiceListRelations -from frontier_api.paths.v1beta1_relations.post import FrontierServiceCreateRelation -from frontier_api.paths.v1beta1_relations_relation_object_object_subject_subject.delete import FrontierServiceDeleteRelation -from frontier_api.paths.v1beta1_relations_id.get import FrontierServiceGetRelation - - -class RelationApi( - AdminServiceListRelations, - FrontierServiceCreateRelation, - FrontierServiceDeleteRelation, - FrontierServiceGetRelation, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/resource_api.py b/frontier_api/apis/tags/resource_api.py deleted file mode 100644 index 7037acf..0000000 --- a/frontier_api/apis/tags/resource_api.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_admin_resources.get import AdminServiceListResources -from frontier_api.paths.v1beta1_projects_project_id_resources.post import FrontierServiceCreateProjectResource -from frontier_api.paths.v1beta1_projects_project_id_resources_id.delete import FrontierServiceDeleteProjectResource -from frontier_api.paths.v1beta1_projects_project_id_resources_id.get import FrontierServiceGetProjectResource -from frontier_api.paths.v1beta1_projects_project_id_resources.get import FrontierServiceListProjectResources -from frontier_api.paths.v1beta1_projects_project_id_resources_id.put import FrontierServiceUpdateProjectResource - - -class ResourceApi( - AdminServiceListResources, - FrontierServiceCreateProjectResource, - FrontierServiceDeleteProjectResource, - FrontierServiceGetProjectResource, - FrontierServiceListProjectResources, - FrontierServiceUpdateProjectResource, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/role_api.py b/frontier_api/apis/tags/role_api.py deleted file mode 100644 index 666c541..0000000 --- a/frontier_api/apis/tags/role_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_roles.post import AdminServiceCreateRole -from frontier_api.paths.v1beta1_roles_id.delete import AdminServiceDeleteRole -from frontier_api.paths.v1beta1_roles_id.put import AdminServiceUpdateRole -from frontier_api.paths.v1beta1_organizations_org_id_roles.post import FrontierServiceCreateOrganizationRole -from frontier_api.paths.v1beta1_organizations_org_id_roles_id.delete import FrontierServiceDeleteOrganizationRole -from frontier_api.paths.v1beta1_organizations_org_id_roles_id.get import FrontierServiceGetOrganizationRole -from frontier_api.paths.v1beta1_organizations_org_id_roles.get import FrontierServiceListOrganizationRoles -from frontier_api.paths.v1beta1_roles.get import FrontierServiceListRoles -from frontier_api.paths.v1beta1_organizations_org_id_roles_id.put import FrontierServiceUpdateOrganizationRole - - -class RoleApi( - AdminServiceCreateRole, - AdminServiceDeleteRole, - AdminServiceUpdateRole, - FrontierServiceCreateOrganizationRole, - FrontierServiceDeleteOrganizationRole, - FrontierServiceGetOrganizationRole, - FrontierServiceListOrganizationRoles, - FrontierServiceListRoles, - FrontierServiceUpdateOrganizationRole, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/service_user_api.py b/frontier_api/apis/tags/service_user_api.py deleted file mode 100644 index 289870d..0000000 --- a/frontier_api/apis/tags/service_user_api.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_serviceusers.post import FrontierServiceCreateServiceUser -from frontier_api.paths.v1beta1_serviceusers_id_keys.post import FrontierServiceCreateServiceUserKey -from frontier_api.paths.v1beta1_serviceusers_id_secrets.post import FrontierServiceCreateServiceUserSecret -from frontier_api.paths.v1beta1_serviceusers_id.delete import FrontierServiceDeleteServiceUser -from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id.delete import FrontierServiceDeleteServiceUserKey -from frontier_api.paths.v1beta1_serviceusers_id_secrets_secret_id.delete import FrontierServiceDeleteServiceUserSecret -from frontier_api.paths.v1beta1_serviceusers_id.get import FrontierServiceGetServiceUser -from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id.get import FrontierServiceGetServiceUserKey -from frontier_api.paths.v1beta1_serviceusers_id_keys.get import FrontierServiceListServiceUserKeys -from frontier_api.paths.v1beta1_serviceusers_id_secrets.get import FrontierServiceListServiceUserSecrets -from frontier_api.paths.v1beta1_serviceusers.get import FrontierServiceListServiceUsers - - -class ServiceUserApi( - FrontierServiceCreateServiceUser, - FrontierServiceCreateServiceUserKey, - FrontierServiceCreateServiceUserSecret, - FrontierServiceDeleteServiceUser, - FrontierServiceDeleteServiceUserKey, - FrontierServiceDeleteServiceUserSecret, - FrontierServiceGetServiceUser, - FrontierServiceGetServiceUserKey, - FrontierServiceListServiceUserKeys, - FrontierServiceListServiceUserSecrets, - FrontierServiceListServiceUsers, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/apis/tags/user_api.py b/frontier_api/apis/tags/user_api.py deleted file mode 100644 index c04cac6..0000000 --- a/frontier_api/apis/tags/user_api.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from frontier_api.paths.v1beta1_admin_users.get import AdminServiceListAllUsers -from frontier_api.paths.v1beta1_users.post import FrontierServiceCreateUser -from frontier_api.paths.v1beta1_users_id.delete import FrontierServiceDeleteUser -from frontier_api.paths.v1beta1_users_id_disable.post import FrontierServiceDisableUser -from frontier_api.paths.v1beta1_users_id_enable.post import FrontierServiceEnableUser -from frontier_api.paths.v1beta1_users_self.get import FrontierServiceGetCurrentUser -from frontier_api.paths.v1beta1_users_id.get import FrontierServiceGetUser -from frontier_api.paths.v1beta1_users_self_groups.get import FrontierServiceListCurrentUserGroups -from frontier_api.paths.v1beta1_users_self_organizations.get import FrontierServiceListOrganizationsByCurrentUser -from frontier_api.paths.v1beta1_users_id_organizations.get import FrontierServiceListOrganizationsByUser -from frontier_api.paths.v1beta1_users_self_projects.get import FrontierServiceListProjectsByCurrentUser -from frontier_api.paths.v1beta1_users_id_projects.get import FrontierServiceListProjectsByUser -from frontier_api.paths.v1beta1_users_id_groups.get import FrontierServiceListUserGroups -from frontier_api.paths.v1beta1_users_id_invitations.get import FrontierServiceListUserInvitations -from frontier_api.paths.v1beta1_users.get import FrontierServiceListUsers -from frontier_api.paths.v1beta1_users_self.put import FrontierServiceUpdateCurrentUser -from frontier_api.paths.v1beta1_users_id.put import FrontierServiceUpdateUser - - -class UserApi( - AdminServiceListAllUsers, - FrontierServiceCreateUser, - FrontierServiceDeleteUser, - FrontierServiceDisableUser, - FrontierServiceEnableUser, - FrontierServiceGetCurrentUser, - FrontierServiceGetUser, - FrontierServiceListCurrentUserGroups, - FrontierServiceListOrganizationsByCurrentUser, - FrontierServiceListOrganizationsByUser, - FrontierServiceListProjectsByCurrentUser, - FrontierServiceListProjectsByUser, - FrontierServiceListUserGroups, - FrontierServiceListUserInvitations, - FrontierServiceListUsers, - FrontierServiceUpdateCurrentUser, - FrontierServiceUpdateUser, -): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - pass diff --git a/frontier_api/configuration.py b/frontier_api/configuration.py index 774e7e1..9d0d597 100644 --- a/frontier_api/configuration.py +++ b/frontier_api/configuration.py @@ -3,70 +3,43 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import copy import logging -import multiprocessing import sys import urllib3 -from http import client as http_client -from frontier_api.exceptions import ApiValueError - +import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems', - 'uniqueItems', 'maxProperties', 'minProperties', + 'minLength', 'pattern', 'maxItems', 'minItems' } -class Configuration(object): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. +class Configuration: + """This class contains various settings of the API client. - :param host: Base url + :param host: Base url. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication - :param password: Password for HTTP basic authentication - :param discard_unknown_keys: Boolean value indicating whether to discard - unknown properties. A server may send a response that includes additional - properties that are not known by the client in the following scenarios: - 1. The OpenAPI document is incomplete, i.e. it does not match the server - implementation. - 2. The client was generated using an older version of the OpenAPI document - and the server has been upgraded since then. - If a schema in the OpenAPI document defines the additionalProperties attribute, - then all undeclared properties received by the server are injected into the - additional properties map. In that case, there are undeclared properties, and - nothing to discard. - :param disabled_client_side_validations (string): Comma-separated list of - JSON schema validation keywords to disable JSON schema structural validation - rules. The following keywords may be specified: multipleOf, maximum, - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, - maxItems, minItems. - By default, the validation is performed for data generated locally by the client - and data received from the server, independent of any validation performed by - the server side. If the input data does not satisfy the JSON schema validation - rules specified in the OpenAPI document, an exception is raised. - If disabled_client_side_validations is set, structural validation is - disabled. This can be useful to troubleshoot data validation problem, such as - when the OpenAPI document validation rules do not match the actual API data - received by the server. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. :param server_index: Index to servers configuration. :param server_variables: Mapping with string values to replace variables in templated server configuration. The validation of enums is performed for @@ -75,7 +48,10 @@ class Configuration(object): configuration. :param server_operation_variables: Mapping from operation ID to a mapping with string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum values before. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. :Example: @@ -98,18 +74,14 @@ class Configuration(object): _default = None - def __init__( - self, - host=None, - username=None, - password=None, - discard_unknown_keys=False, - disabled_client_side_validations="", - server_index=None, - server_variables=None, - server_operation_index=None, - server_operation_variables=None, - ): + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + username=None, password=None, + access_token=None, + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ssl_ca_cert=None, + ) -> None: """Constructor """ self._base_path = "http://127.0.0.1:7400" if host is None else host @@ -127,14 +99,28 @@ def __init__( """Temp file folder for downloading files """ # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ self.username = username """Username for HTTP basic authentication """ self.password = password """Password for HTTP basic authentication """ - self.discard_unknown_keys = discard_unknown_keys - self.disabled_client_side_validations = disabled_client_side_validations + self.access_token = access_token + """Access token + """ self.logger = {} """Logging Settings """ @@ -161,7 +147,7 @@ def __init__( Set this to false to skip verifying SSL certificate when calling API from https server. """ - self.ssl_ca_cert = None + self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ self.cert_file = None @@ -178,13 +164,6 @@ def __init__( Set this to the SNI value expected by the server. """ - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - """urllib3 connection pool's maximum number of connections saved - per pool. urllib3 uses 1 connection as default value, but this is - not the best value when you are making a lot of possibly parallel - requests to the same host, which is often the case here. - cpu_count * 5 is used as default value to increase performance. - """ self.proxy = None """Proxy URL @@ -201,8 +180,17 @@ def __init__( # Enable client side validation self.client_side_validation = True - # Options to pass down to the underlying urllib3 socket self.socket_options = None + """Options to pass down to the underlying urllib3 socket + """ + + self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" + """datetime format + """ + + self.date_format = "%Y-%m-%d" + """date format + """ def __deepcopy__(self, memo): cls = self.__class__ @@ -220,13 +208,6 @@ def __deepcopy__(self, memo): def __setattr__(self, name, value): object.__setattr__(self, name, value) - if name == 'disabled_client_side_validations': - s = set(filter(None, value.split(','))) - for v in s: - if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: - raise ApiValueError( - "Invalid keyword: '{0}''".format(v)) - self._disabled_client_side_validations = s @classmethod def set_default(cls, default): @@ -237,21 +218,31 @@ def set_default(cls, default): :param default: object of Configuration """ - cls._default = copy.deepcopy(default) + cls._default = default @classmethod def get_default_copy(cls): - """Return new instance of configuration. + """Deprecated. Please use `get_default` instead. + + Deprecated. Please use `get_default` instead. + + :return: The configuration object. + """ + return cls.get_default() + + @classmethod + def get_default(cls): + """Return the default configuration. This method returns newly created, based on default constructor, object of Configuration class or returns a copy of default - configuration passed by the set_default method. + configuration. :return: The configuration object. """ - if cls._default is not None: - return copy.deepcopy(cls._default) - return Configuration() + if cls._default is None: + cls._default = Configuration() + return cls._default @property def logger_file(self): @@ -305,15 +296,15 @@ def debug(self, value): # if debug status is True, turn on debug logging for _, logger in self.logger.items(): logger.setLevel(logging.DEBUG) - # turn on http_client debug - http_client.HTTPConnection.debuglevel = 1 + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 else: # if debug status is False, turn off debug logging, # setting log level to default `logging.WARNING` for _, logger in self.logger.items(): logger.setLevel(logging.WARNING) - # turn off http_client debug - http_client.HTTPConnection.debuglevel = 0 + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 @property def logger_format(self): diff --git a/frontier_api/exceptions.py b/frontier_api/exceptions.py index a6f461d..17c6e46 100644 --- a/frontier_api/exceptions.py +++ b/frontier_api/exceptions.py @@ -3,16 +3,14 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" -import dataclasses -import typing + Generated by OpenAPI Generator (https://openapi-generator.tech) -from urllib3._collections import HTTPHeaderDict + Do not edit the class manually. +""" # noqa: E501 class OpenApiException(Exception): @@ -21,7 +19,7 @@ class OpenApiException(Exception): class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): + key_type=None) -> None: """ Raises an exception for TypeErrors Args: @@ -49,7 +47,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -67,7 +65,7 @@ def __init__(self, msg, path_to_item=None): class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Raised when an attribute reference or assignment fails. @@ -86,7 +84,7 @@ def __init__(self, msg, path_to_item=None): class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None): + def __init__(self, msg, path_to_item=None) -> None: """ Args: msg (str): the exception message @@ -102,26 +100,19 @@ def __init__(self, msg, path_to_item=None): super(ApiKeyError, self).__init__(full_msg) -T = typing.TypeVar("T") - - -@dataclasses.dataclass -class ApiException(OpenApiException, typing.Generic[T]): - status: int - reason: str - api_response: typing.Optional[T] = None +class ApiException(OpenApiException): - @property - def body(self) -> typing.Union[str, bytes, None]: - if not self.api_response: - return None - return self.api_response.response.data - - @property - def headers(self) -> typing.Optional[HTTPHeaderDict]: - if not self.api_response: - return None - return self.api_response.response.getheaders() + def __init__(self, status=None, reason=None, http_resp=None) -> None: + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data.decode('utf-8') + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None def __str__(self): """Custom error messages for exception""" @@ -136,6 +127,34 @@ def __str__(self): return error_message +class BadRequestException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None) -> None: + super(BadRequestException, self).__init__(status, reason, http_resp) + +class NotFoundException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None) -> None: + super(NotFoundException, self).__init__(status, reason, http_resp) + + +class UnauthorizedException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None) -> None: + super(UnauthorizedException, self).__init__(status, reason, http_resp) + + +class ForbiddenException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None) -> None: + super(ForbiddenException, self).__init__(status, reason, http_resp) + + +class ServiceException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None) -> None: + super(ServiceException, self).__init__(status, reason, http_resp) + def render_path(path_to_item): """Returns a string representation of a path""" diff --git a/frontier_api/model/__init__.py b/frontier_api/model/__init__.py deleted file mode 100644 index 12bf957..0000000 --- a/frontier_api/model/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# we can not import model classes here because that would create a circular -# reference which would not work in python2 -# do not import all models into this module because that uses a lot of memory and stack frames -# if you need the ability to import all models from one package, import them with -# from frontier_api.models import ModelA, ModelB diff --git a/frontier_api/model/protobuf_any.py b/frontier_api/model/protobuf_any.py deleted file mode 100644 index d6efa23..0000000 --- a/frontier_api/model/protobuf_any.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class ProtobufAny( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - __annotations__ = { - "@type": type, - } - additional_properties = schemas.DictSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["@type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["@type"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["@type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["@type"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'ProtobufAny': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/protobuf_any.pyi b/frontier_api/model/protobuf_any.pyi deleted file mode 100644 index d6efa23..0000000 --- a/frontier_api/model/protobuf_any.pyi +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class ProtobufAny( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - __annotations__ = { - "@type": type, - } - additional_properties = schemas.DictSchema - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["@type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["@type"], str, ]): - # dict_instance[name] accessor - return super().__getitem__(name) - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["@type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["@type"], str, ]): - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, dict, frozendict.frozendict, ], - ) -> 'ProtobufAny': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/protobuf_null_value.py b/frontier_api/model/protobuf_null_value.py deleted file mode 100644 index 71a994d..0000000 --- a/frontier_api/model/protobuf_null_value.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class ProtobufNullValue( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - `NullValue` is a singleton enumeration to represent the null value for the -`Value` type union. - - The JSON representation for `NullValue` is JSON `null`. - - - NULL_VALUE: Null value. - """ - - - class MetaOapg: - enum_value_to_name = { - "NULL_VALUE": "NULL_VALUE", - } - - @schemas.classproperty - def NULL_VALUE(cls): - return cls("NULL_VALUE") diff --git a/frontier_api/model/rpc_status.py b/frontier_api/model/rpc_status.py deleted file mode 100644 index 0a7c06f..0000000 --- a/frontier_api/model/rpc_status.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class RpcStatus( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.Int32Schema - message = schemas.StrSchema - - - class details( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ProtobufAny']: - return ProtobufAny - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ProtobufAny'], typing.List['ProtobufAny']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'details': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ProtobufAny': - return super().__getitem__(i) - __annotations__ = { - "code": code, - "message": message, - "details": details, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["details"]) -> MetaOapg.properties.details: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "message", "details", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["details"]) -> typing.Union[MetaOapg.properties.details, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "message", "details", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, schemas.Unset] = schemas.unset, - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - details: typing.Union[MetaOapg.properties.details, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RpcStatus': - return super().__new__( - cls, - *_args, - code=code, - message=message, - details=details, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.protobuf_any import ProtobufAny diff --git a/frontier_api/model/rpc_status.pyi b/frontier_api/model/rpc_status.pyi deleted file mode 100644 index 0a7c06f..0000000 --- a/frontier_api/model/rpc_status.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class RpcStatus( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - code = schemas.Int32Schema - message = schemas.StrSchema - - - class details( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['ProtobufAny']: - return ProtobufAny - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['ProtobufAny'], typing.List['ProtobufAny']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'details': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'ProtobufAny': - return super().__getitem__(i) - __annotations__ = { - "code": code, - "message": message, - "details": details, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["details"]) -> MetaOapg.properties.details: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "message", "details", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["details"]) -> typing.Union[MetaOapg.properties.details, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "message", "details", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - code: typing.Union[MetaOapg.properties.code, decimal.Decimal, int, schemas.Unset] = schemas.unset, - message: typing.Union[MetaOapg.properties.message, str, schemas.Unset] = schemas.unset, - details: typing.Union[MetaOapg.properties.details, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'RpcStatus': - return super().__new__( - cls, - *_args, - code=code, - message=message, - details=details, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.protobuf_any import ProtobufAny diff --git a/frontier_api/model/v1beta1_audit_log.py b/frontier_api/model/v1beta1_audit_log.py deleted file mode 100644 index 9e42e9d..0000000 --- a/frontier_api/model/v1beta1_audit_log.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuditLog( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "action", - "source", - } - - class properties: - source = schemas.StrSchema - action = schemas.StrSchema - id = schemas.StrSchema - - @staticmethod - def actor() -> typing.Type['V1beta1AuditLogActor']: - return V1beta1AuditLogActor - - @staticmethod - def target() -> typing.Type['V1beta1AuditLogTarget']: - return V1beta1AuditLogTarget - - - class context( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'context': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - createdAt = schemas.DateTimeSchema - __annotations__ = { - "source": source, - "action": action, - "id": id, - "actor": actor, - "target": target, - "context": context, - "createdAt": createdAt, - } - - action: MetaOapg.properties.action - source: MetaOapg.properties.source - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> MetaOapg.properties.source: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["actor"]) -> 'V1beta1AuditLogActor': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["target"]) -> 'V1beta1AuditLogTarget': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["source", "action", "id", "actor", "target", "context", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> MetaOapg.properties.source: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["actor"]) -> typing.Union['V1beta1AuditLogActor', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["target"]) -> typing.Union['V1beta1AuditLogTarget', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["context"]) -> typing.Union[MetaOapg.properties.context, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["source", "action", "id", "actor", "target", "context", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - action: typing.Union[MetaOapg.properties.action, str, ], - source: typing.Union[MetaOapg.properties.source, str, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - actor: typing.Union['V1beta1AuditLogActor', schemas.Unset] = schemas.unset, - target: typing.Union['V1beta1AuditLogTarget', schemas.Unset] = schemas.unset, - context: typing.Union[MetaOapg.properties.context, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuditLog': - return super().__new__( - cls, - *_args, - action=action, - source=source, - id=id, - actor=actor, - target=target, - context=context, - createdAt=createdAt, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_audit_log_actor import V1beta1AuditLogActor -from frontier_api.model.v1beta1_audit_log_target import V1beta1AuditLogTarget diff --git a/frontier_api/model/v1beta1_audit_log.pyi b/frontier_api/model/v1beta1_audit_log.pyi deleted file mode 100644 index 9e42e9d..0000000 --- a/frontier_api/model/v1beta1_audit_log.pyi +++ /dev/null @@ -1,183 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuditLog( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "action", - "source", - } - - class properties: - source = schemas.StrSchema - action = schemas.StrSchema - id = schemas.StrSchema - - @staticmethod - def actor() -> typing.Type['V1beta1AuditLogActor']: - return V1beta1AuditLogActor - - @staticmethod - def target() -> typing.Type['V1beta1AuditLogTarget']: - return V1beta1AuditLogTarget - - - class context( - schemas.DictSchema - ): - - - class MetaOapg: - additional_properties = schemas.StrSchema - - def __getitem__(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - # dict_instance[name] accessor - return super().__getitem__(name) - - def get_item_oapg(self, name: typing.Union[str, ]) -> MetaOapg.additional_properties: - return super().get_item_oapg(name) - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[MetaOapg.additional_properties, str, ], - ) -> 'context': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - **kwargs, - ) - createdAt = schemas.DateTimeSchema - __annotations__ = { - "source": source, - "action": action, - "id": id, - "actor": actor, - "target": target, - "context": context, - "createdAt": createdAt, - } - - action: MetaOapg.properties.action - source: MetaOapg.properties.source - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["source"]) -> MetaOapg.properties.source: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["actor"]) -> 'V1beta1AuditLogActor': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["target"]) -> 'V1beta1AuditLogTarget': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["context"]) -> MetaOapg.properties.context: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["source", "action", "id", "actor", "target", "context", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["source"]) -> MetaOapg.properties.source: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["action"]) -> MetaOapg.properties.action: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["actor"]) -> typing.Union['V1beta1AuditLogActor', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["target"]) -> typing.Union['V1beta1AuditLogTarget', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["context"]) -> typing.Union[MetaOapg.properties.context, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["source", "action", "id", "actor", "target", "context", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - action: typing.Union[MetaOapg.properties.action, str, ], - source: typing.Union[MetaOapg.properties.source, str, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - actor: typing.Union['V1beta1AuditLogActor', schemas.Unset] = schemas.unset, - target: typing.Union['V1beta1AuditLogTarget', schemas.Unset] = schemas.unset, - context: typing.Union[MetaOapg.properties.context, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuditLog': - return super().__new__( - cls, - *_args, - action=action, - source=source, - id=id, - actor=actor, - target=target, - context=context, - createdAt=createdAt, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_audit_log_actor import V1beta1AuditLogActor -from frontier_api.model.v1beta1_audit_log_target import V1beta1AuditLogTarget diff --git a/frontier_api/model/v1beta1_audit_log_actor.py b/frontier_api/model/v1beta1_audit_log_actor.py deleted file mode 100644 index 5445c8d..0000000 --- a/frontier_api/model/v1beta1_audit_log_actor.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuditLogActor( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - type = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "type": type, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuditLogActor': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_audit_log_actor.pyi b/frontier_api/model/v1beta1_audit_log_actor.pyi deleted file mode 100644 index 5445c8d..0000000 --- a/frontier_api/model/v1beta1_audit_log_actor.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuditLogActor( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - type = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "type": type, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuditLogActor': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_audit_log_target.py b/frontier_api/model/v1beta1_audit_log_target.py deleted file mode 100644 index 00dce8f..0000000 --- a/frontier_api/model/v1beta1_audit_log_target.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuditLogTarget( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - type = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "type": type, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuditLogTarget': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_audit_log_target.pyi b/frontier_api/model/v1beta1_audit_log_target.pyi deleted file mode 100644 index 00dce8f..0000000 --- a/frontier_api/model/v1beta1_audit_log_target.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuditLogTarget( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - type = schemas.StrSchema - name = schemas.StrSchema - __annotations__ = { - "id": id, - "type": type, - "name": name, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "type", "name", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuditLogTarget': - return super().__new__( - cls, - *_args, - id=id, - type=type, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_callback_request.py b/frontier_api/model/v1beta1_auth_callback_request.py deleted file mode 100644 index c5e931a..0000000 --- a/frontier_api/model/v1beta1_auth_callback_request.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthCallbackRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - strategyName = schemas.StrSchema - state = schemas.StrSchema - code = schemas.StrSchema - __annotations__ = { - "strategyName": strategyName, - "state": state, - "code": code, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["strategyName"]) -> MetaOapg.properties.strategyName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["strategyName", "state", "code", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["strategyName"]) -> typing.Union[MetaOapg.properties.strategyName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["strategyName", "state", "code", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - strategyName: typing.Union[MetaOapg.properties.strategyName, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthCallbackRequest': - return super().__new__( - cls, - *_args, - strategyName=strategyName, - state=state, - code=code, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_callback_request.pyi b/frontier_api/model/v1beta1_auth_callback_request.pyi deleted file mode 100644 index c5e931a..0000000 --- a/frontier_api/model/v1beta1_auth_callback_request.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthCallbackRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - strategyName = schemas.StrSchema - state = schemas.StrSchema - code = schemas.StrSchema - __annotations__ = { - "strategyName": strategyName, - "state": state, - "code": code, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["strategyName"]) -> MetaOapg.properties.strategyName: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["strategyName", "state", "code", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["strategyName"]) -> typing.Union[MetaOapg.properties.strategyName, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["strategyName", "state", "code", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - strategyName: typing.Union[MetaOapg.properties.strategyName, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - code: typing.Union[MetaOapg.properties.code, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthCallbackRequest': - return super().__new__( - cls, - *_args, - strategyName=strategyName, - state=state, - code=code, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_strategy.py b/frontier_api/model/v1beta1_auth_strategy.py deleted file mode 100644 index be160b1..0000000 --- a/frontier_api/model/v1beta1_auth_strategy.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthStrategy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - params = schemas.DictSchema - __annotations__ = { - "name": name, - "params": params, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["params"]) -> MetaOapg.properties.params: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "params", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["params"]) -> typing.Union[MetaOapg.properties.params, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "params", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - params: typing.Union[MetaOapg.properties.params, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthStrategy': - return super().__new__( - cls, - *_args, - name=name, - params=params, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_strategy.pyi b/frontier_api/model/v1beta1_auth_strategy.pyi deleted file mode 100644 index be160b1..0000000 --- a/frontier_api/model/v1beta1_auth_strategy.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthStrategy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - params = schemas.DictSchema - __annotations__ = { - "name": name, - "params": params, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["params"]) -> MetaOapg.properties.params: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "params", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["params"]) -> typing.Union[MetaOapg.properties.params, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "params", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - params: typing.Union[MetaOapg.properties.params, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthStrategy': - return super().__new__( - cls, - *_args, - name=name, - params=params, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_token_request.py b/frontier_api/model/v1beta1_auth_token_request.py deleted file mode 100644 index 610bfe0..0000000 --- a/frontier_api/model/v1beta1_auth_token_request.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthTokenRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - grantType = schemas.StrSchema - clientId = schemas.StrSchema - clientSecret = schemas.StrSchema - assertion = schemas.StrSchema - __annotations__ = { - "grantType": grantType, - "clientId": clientId, - "clientSecret": clientSecret, - "assertion": assertion, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["grantType"]) -> MetaOapg.properties.grantType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientId"]) -> MetaOapg.properties.clientId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientSecret"]) -> MetaOapg.properties.clientSecret: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assertion"]) -> MetaOapg.properties.assertion: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["grantType", "clientId", "clientSecret", "assertion", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["grantType"]) -> typing.Union[MetaOapg.properties.grantType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientId"]) -> typing.Union[MetaOapg.properties.clientId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientSecret"]) -> typing.Union[MetaOapg.properties.clientSecret, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assertion"]) -> typing.Union[MetaOapg.properties.assertion, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["grantType", "clientId", "clientSecret", "assertion", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - grantType: typing.Union[MetaOapg.properties.grantType, str, schemas.Unset] = schemas.unset, - clientId: typing.Union[MetaOapg.properties.clientId, str, schemas.Unset] = schemas.unset, - clientSecret: typing.Union[MetaOapg.properties.clientSecret, str, schemas.Unset] = schemas.unset, - assertion: typing.Union[MetaOapg.properties.assertion, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthTokenRequest': - return super().__new__( - cls, - *_args, - grantType=grantType, - clientId=clientId, - clientSecret=clientSecret, - assertion=assertion, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_token_request.pyi b/frontier_api/model/v1beta1_auth_token_request.pyi deleted file mode 100644 index 610bfe0..0000000 --- a/frontier_api/model/v1beta1_auth_token_request.pyi +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthTokenRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - grantType = schemas.StrSchema - clientId = schemas.StrSchema - clientSecret = schemas.StrSchema - assertion = schemas.StrSchema - __annotations__ = { - "grantType": grantType, - "clientId": clientId, - "clientSecret": clientSecret, - "assertion": assertion, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["grantType"]) -> MetaOapg.properties.grantType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientId"]) -> MetaOapg.properties.clientId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["clientSecret"]) -> MetaOapg.properties.clientSecret: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["assertion"]) -> MetaOapg.properties.assertion: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["grantType", "clientId", "clientSecret", "assertion", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["grantType"]) -> typing.Union[MetaOapg.properties.grantType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientId"]) -> typing.Union[MetaOapg.properties.clientId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["clientSecret"]) -> typing.Union[MetaOapg.properties.clientSecret, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["assertion"]) -> typing.Union[MetaOapg.properties.assertion, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["grantType", "clientId", "clientSecret", "assertion", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - grantType: typing.Union[MetaOapg.properties.grantType, str, schemas.Unset] = schemas.unset, - clientId: typing.Union[MetaOapg.properties.clientId, str, schemas.Unset] = schemas.unset, - clientSecret: typing.Union[MetaOapg.properties.clientSecret, str, schemas.Unset] = schemas.unset, - assertion: typing.Union[MetaOapg.properties.assertion, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthTokenRequest': - return super().__new__( - cls, - *_args, - grantType=grantType, - clientId=clientId, - clientSecret=clientSecret, - assertion=assertion, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_token_response.py b/frontier_api/model/v1beta1_auth_token_response.py deleted file mode 100644 index a8bb220..0000000 --- a/frontier_api/model/v1beta1_auth_token_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthTokenResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - accessToken = schemas.StrSchema - tokenType = schemas.StrSchema - __annotations__ = { - "accessToken": accessToken, - "tokenType": tokenType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accessToken"]) -> MetaOapg.properties.accessToken: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tokenType"]) -> MetaOapg.properties.tokenType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accessToken", "tokenType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accessToken"]) -> typing.Union[MetaOapg.properties.accessToken, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tokenType"]) -> typing.Union[MetaOapg.properties.tokenType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accessToken", "tokenType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accessToken: typing.Union[MetaOapg.properties.accessToken, str, schemas.Unset] = schemas.unset, - tokenType: typing.Union[MetaOapg.properties.tokenType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthTokenResponse': - return super().__new__( - cls, - *_args, - accessToken=accessToken, - tokenType=tokenType, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_auth_token_response.pyi b/frontier_api/model/v1beta1_auth_token_response.pyi deleted file mode 100644 index a8bb220..0000000 --- a/frontier_api/model/v1beta1_auth_token_response.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthTokenResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - accessToken = schemas.StrSchema - tokenType = schemas.StrSchema - __annotations__ = { - "accessToken": accessToken, - "tokenType": tokenType, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accessToken"]) -> MetaOapg.properties.accessToken: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["tokenType"]) -> MetaOapg.properties.tokenType: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["accessToken", "tokenType", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accessToken"]) -> typing.Union[MetaOapg.properties.accessToken, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["tokenType"]) -> typing.Union[MetaOapg.properties.tokenType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["accessToken", "tokenType", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - accessToken: typing.Union[MetaOapg.properties.accessToken, str, schemas.Unset] = schemas.unset, - tokenType: typing.Union[MetaOapg.properties.tokenType, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthTokenResponse': - return super().__new__( - cls, - *_args, - accessToken=accessToken, - tokenType=tokenType, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_authenticate_response.py b/frontier_api/model/v1beta1_authenticate_response.py deleted file mode 100644 index f783ea4..0000000 --- a/frontier_api/model/v1beta1_authenticate_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthenticateResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - endpoint = schemas.StrSchema - state = schemas.StrSchema - __annotations__ = { - "endpoint": endpoint, - "state": state, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint"]) -> MetaOapg.properties.endpoint: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint", "state", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint"]) -> typing.Union[MetaOapg.properties.endpoint, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint", "state", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint: typing.Union[MetaOapg.properties.endpoint, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthenticateResponse': - return super().__new__( - cls, - *_args, - endpoint=endpoint, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_authenticate_response.pyi b/frontier_api/model/v1beta1_authenticate_response.pyi deleted file mode 100644 index f783ea4..0000000 --- a/frontier_api/model/v1beta1_authenticate_response.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1AuthenticateResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - endpoint = schemas.StrSchema - state = schemas.StrSchema - __annotations__ = { - "endpoint": endpoint, - "state": state, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["endpoint"]) -> MetaOapg.properties.endpoint: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["endpoint", "state", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["endpoint"]) -> typing.Union[MetaOapg.properties.endpoint, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["endpoint", "state", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - endpoint: typing.Union[MetaOapg.properties.endpoint, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1AuthenticateResponse': - return super().__new__( - cls, - *_args, - endpoint=endpoint, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_batch_check_permission_body.py b/frontier_api/model/v1beta1_batch_check_permission_body.py deleted file mode 100644 index cb6d594..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_body.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "permission", - } - - class properties: - permission = schemas.StrSchema - resource = schemas.StrSchema - __annotations__ = { - "permission": permission, - "resource": resource, - } - - permission: MetaOapg.properties.permission - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", "resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union[MetaOapg.properties.resource, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", "resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union[MetaOapg.properties.permission, str, ], - resource: typing.Union[MetaOapg.properties.resource, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionBody': - return super().__new__( - cls, - *_args, - permission=permission, - resource=resource, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_batch_check_permission_body.pyi b/frontier_api/model/v1beta1_batch_check_permission_body.pyi deleted file mode 100644 index cb6d594..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_body.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "permission", - } - - class properties: - permission = schemas.StrSchema - resource = schemas.StrSchema - __annotations__ = { - "permission": permission, - "resource": resource, - } - - permission: MetaOapg.properties.permission - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", "resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union[MetaOapg.properties.resource, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", "resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union[MetaOapg.properties.permission, str, ], - resource: typing.Union[MetaOapg.properties.resource, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionBody': - return super().__new__( - cls, - *_args, - permission=permission, - resource=resource, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_batch_check_permission_request.py b/frontier_api/model/v1beta1_batch_check_permission_request.py deleted file mode 100644 index 17b7fea..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_request.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1BatchCheckPermissionBody']: - return V1beta1BatchCheckPermissionBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1BatchCheckPermissionBody'], typing.List['V1beta1BatchCheckPermissionBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1BatchCheckPermissionBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionRequest': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody diff --git a/frontier_api/model/v1beta1_batch_check_permission_request.pyi b/frontier_api/model/v1beta1_batch_check_permission_request.pyi deleted file mode 100644 index 17b7fea..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_request.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1BatchCheckPermissionBody']: - return V1beta1BatchCheckPermissionBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1BatchCheckPermissionBody'], typing.List['V1beta1BatchCheckPermissionBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1BatchCheckPermissionBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionRequest': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody diff --git a/frontier_api/model/v1beta1_batch_check_permission_response.py b/frontier_api/model/v1beta1_batch_check_permission_response.py deleted file mode 100644 index d6dc4dc..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class pairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1BatchCheckPermissionResponsePair']: - return V1beta1BatchCheckPermissionResponsePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1BatchCheckPermissionResponsePair'], typing.List['V1beta1BatchCheckPermissionResponsePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'pairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1BatchCheckPermissionResponsePair': - return super().__getitem__(i) - __annotations__ = { - "pairs": pairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pairs"]) -> MetaOapg.properties.pairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["pairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pairs"]) -> typing.Union[MetaOapg.properties.pairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - pairs: typing.Union[MetaOapg.properties.pairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionResponse': - return super().__new__( - cls, - *_args, - pairs=pairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair diff --git a/frontier_api/model/v1beta1_batch_check_permission_response.pyi b/frontier_api/model/v1beta1_batch_check_permission_response.pyi deleted file mode 100644 index d6dc4dc..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class pairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1BatchCheckPermissionResponsePair']: - return V1beta1BatchCheckPermissionResponsePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1BatchCheckPermissionResponsePair'], typing.List['V1beta1BatchCheckPermissionResponsePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'pairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1BatchCheckPermissionResponsePair': - return super().__getitem__(i) - __annotations__ = { - "pairs": pairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["pairs"]) -> MetaOapg.properties.pairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["pairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["pairs"]) -> typing.Union[MetaOapg.properties.pairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - pairs: typing.Union[MetaOapg.properties.pairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionResponse': - return super().__new__( - cls, - *_args, - pairs=pairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair diff --git a/frontier_api/model/v1beta1_batch_check_permission_response_pair.py b/frontier_api/model/v1beta1_batch_check_permission_response_pair.py deleted file mode 100644 index efd9e35..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_response_pair.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionResponsePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def body() -> typing.Type['V1beta1BatchCheckPermissionBody']: - return V1beta1BatchCheckPermissionBody - status = schemas.BoolSchema - __annotations__ = { - "body": body, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["body"]) -> 'V1beta1BatchCheckPermissionBody': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["body", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["body"]) -> typing.Union['V1beta1BatchCheckPermissionBody', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["body", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - body: typing.Union['V1beta1BatchCheckPermissionBody', schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionResponsePair': - return super().__new__( - cls, - *_args, - body=body, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody diff --git a/frontier_api/model/v1beta1_batch_check_permission_response_pair.pyi b/frontier_api/model/v1beta1_batch_check_permission_response_pair.pyi deleted file mode 100644 index efd9e35..0000000 --- a/frontier_api/model/v1beta1_batch_check_permission_response_pair.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1BatchCheckPermissionResponsePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def body() -> typing.Type['V1beta1BatchCheckPermissionBody']: - return V1beta1BatchCheckPermissionBody - status = schemas.BoolSchema - __annotations__ = { - "body": body, - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["body"]) -> 'V1beta1BatchCheckPermissionBody': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["body", "status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["body"]) -> typing.Union['V1beta1BatchCheckPermissionBody', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["body", "status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - body: typing.Union['V1beta1BatchCheckPermissionBody', schemas.Unset] = schemas.unset, - status: typing.Union[MetaOapg.properties.status, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1BatchCheckPermissionResponsePair': - return super().__new__( - cls, - *_args, - body=body, - status=status, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody diff --git a/frontier_api/model/v1beta1_check_resource_permission_request.py b/frontier_api/model/v1beta1_check_resource_permission_request.py deleted file mode 100644 index 468d905..0000000 --- a/frontier_api/model/v1beta1_check_resource_permission_request.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CheckResourcePermissionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "permission", - } - - class properties: - permission = schemas.StrSchema - objectId = schemas.StrSchema - objectNamespace = schemas.StrSchema - resource = schemas.StrSchema - __annotations__ = { - "permission": permission, - "objectId": objectId, - "objectNamespace": objectNamespace, - "resource": resource, - } - - permission: MetaOapg.properties.permission - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectId"]) -> MetaOapg.properties.objectId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectNamespace"]) -> MetaOapg.properties.objectNamespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", "objectId", "objectNamespace", "resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectId"]) -> typing.Union[MetaOapg.properties.objectId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectNamespace"]) -> typing.Union[MetaOapg.properties.objectNamespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union[MetaOapg.properties.resource, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", "objectId", "objectNamespace", "resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union[MetaOapg.properties.permission, str, ], - objectId: typing.Union[MetaOapg.properties.objectId, str, schemas.Unset] = schemas.unset, - objectNamespace: typing.Union[MetaOapg.properties.objectNamespace, str, schemas.Unset] = schemas.unset, - resource: typing.Union[MetaOapg.properties.resource, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CheckResourcePermissionRequest': - return super().__new__( - cls, - *_args, - permission=permission, - objectId=objectId, - objectNamespace=objectNamespace, - resource=resource, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_check_resource_permission_request.pyi b/frontier_api/model/v1beta1_check_resource_permission_request.pyi deleted file mode 100644 index 468d905..0000000 --- a/frontier_api/model/v1beta1_check_resource_permission_request.pyi +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CheckResourcePermissionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "permission", - } - - class properties: - permission = schemas.StrSchema - objectId = schemas.StrSchema - objectNamespace = schemas.StrSchema - resource = schemas.StrSchema - __annotations__ = { - "permission": permission, - "objectId": objectId, - "objectNamespace": objectNamespace, - "resource": resource, - } - - permission: MetaOapg.properties.permission - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectId"]) -> MetaOapg.properties.objectId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["objectNamespace"]) -> MetaOapg.properties.objectNamespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", "objectId", "objectNamespace", "resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> MetaOapg.properties.permission: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectId"]) -> typing.Union[MetaOapg.properties.objectId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["objectNamespace"]) -> typing.Union[MetaOapg.properties.objectNamespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union[MetaOapg.properties.resource, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", "objectId", "objectNamespace", "resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union[MetaOapg.properties.permission, str, ], - objectId: typing.Union[MetaOapg.properties.objectId, str, schemas.Unset] = schemas.unset, - objectNamespace: typing.Union[MetaOapg.properties.objectNamespace, str, schemas.Unset] = schemas.unset, - resource: typing.Union[MetaOapg.properties.resource, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CheckResourcePermissionRequest': - return super().__new__( - cls, - *_args, - permission=permission, - objectId=objectId, - objectNamespace=objectNamespace, - resource=resource, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_check_resource_permission_response.py b/frontier_api/model/v1beta1_check_resource_permission_response.py deleted file mode 100644 index 6c53681..0000000 --- a/frontier_api/model/v1beta1_check_resource_permission_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CheckResourcePermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - status = schemas.BoolSchema - __annotations__ = { - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: typing.Union[MetaOapg.properties.status, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CheckResourcePermissionResponse': - return super().__new__( - cls, - *_args, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_check_resource_permission_response.pyi b/frontier_api/model/v1beta1_check_resource_permission_response.pyi deleted file mode 100644 index 6c53681..0000000 --- a/frontier_api/model/v1beta1_check_resource_permission_response.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CheckResourcePermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - status = schemas.BoolSchema - __annotations__ = { - "status": status, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["status", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - status: typing.Union[MetaOapg.properties.status, bool, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CheckResourcePermissionResponse': - return super().__new__( - cls, - *_args, - status=status, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_create_current_user_preferences_request.py b/frontier_api/model/v1beta1_create_current_user_preferences_request.py deleted file mode 100644 index 12d20d5..0000000 --- a/frontier_api/model/v1beta1_create_current_user_preferences_request.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateCurrentUserPreferencesRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateCurrentUserPreferencesRequest': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody diff --git a/frontier_api/model/v1beta1_create_current_user_preferences_request.pyi b/frontier_api/model/v1beta1_create_current_user_preferences_request.pyi deleted file mode 100644 index 12d20d5..0000000 --- a/frontier_api/model/v1beta1_create_current_user_preferences_request.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateCurrentUserPreferencesRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateCurrentUserPreferencesRequest': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody diff --git a/frontier_api/model/v1beta1_create_current_user_preferences_response.py b/frontier_api/model/v1beta1_create_current_user_preferences_response.py deleted file mode 100644 index c3e819a..0000000 --- a/frontier_api/model/v1beta1_create_current_user_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateCurrentUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateCurrentUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_current_user_preferences_response.pyi b/frontier_api/model/v1beta1_create_current_user_preferences_response.pyi deleted file mode 100644 index c3e819a..0000000 --- a/frontier_api/model/v1beta1_create_current_user_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateCurrentUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateCurrentUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_group_preferences_response.py b/frontier_api/model/v1beta1_create_group_preferences_response.py deleted file mode 100644 index dc02586..0000000 --- a/frontier_api/model/v1beta1_create_group_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateGroupPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateGroupPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_group_preferences_response.pyi b/frontier_api/model/v1beta1_create_group_preferences_response.pyi deleted file mode 100644 index dc02586..0000000 --- a/frontier_api/model/v1beta1_create_group_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateGroupPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateGroupPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_group_response.py b/frontier_api/model/v1beta1_create_group_response.py deleted file mode 100644 index 7eb7bfd..0000000 --- a/frontier_api/model/v1beta1_create_group_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def group() -> typing.Type['V1beta1Group']: - return V1beta1Group - __annotations__ = { - "group": group, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["group"]) -> 'V1beta1Group': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["group"]) -> typing.Union['V1beta1Group', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - group: typing.Union['V1beta1Group', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateGroupResponse': - return super().__new__( - cls, - *_args, - group=group, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_create_group_response.pyi b/frontier_api/model/v1beta1_create_group_response.pyi deleted file mode 100644 index 7eb7bfd..0000000 --- a/frontier_api/model/v1beta1_create_group_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def group() -> typing.Type['V1beta1Group']: - return V1beta1Group - __annotations__ = { - "group": group, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["group"]) -> 'V1beta1Group': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["group"]) -> typing.Union['V1beta1Group', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - group: typing.Union['V1beta1Group', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateGroupResponse': - return super().__new__( - cls, - *_args, - group=group, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_create_meta_schema_response.py b/frontier_api/model/v1beta1_create_meta_schema_response.py deleted file mode 100644 index 1cc1d2d..0000000 --- a/frontier_api/model/v1beta1_create_meta_schema_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateMetaSchemaResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def metaschema() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - __annotations__ = { - "metaschema": metaschema, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschema"]) -> 'V1beta1MetaSchema': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschema"]) -> typing.Union['V1beta1MetaSchema', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschema: typing.Union['V1beta1MetaSchema', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateMetaSchemaResponse': - return super().__new__( - cls, - *_args, - metaschema=metaschema, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_create_meta_schema_response.pyi b/frontier_api/model/v1beta1_create_meta_schema_response.pyi deleted file mode 100644 index 1cc1d2d..0000000 --- a/frontier_api/model/v1beta1_create_meta_schema_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateMetaSchemaResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def metaschema() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - __annotations__ = { - "metaschema": metaschema, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschema"]) -> 'V1beta1MetaSchema': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschema"]) -> typing.Union['V1beta1MetaSchema', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschema: typing.Union['V1beta1MetaSchema', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateMetaSchemaResponse': - return super().__new__( - cls, - *_args, - metaschema=metaschema, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_create_organization_domain_response.py b/frontier_api/model/v1beta1_create_organization_domain_response.py deleted file mode 100644 index 9cab311..0000000 --- a/frontier_api/model/v1beta1_create_organization_domain_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationDomainResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def domain() -> typing.Type['V1beta1Domain']: - return V1beta1Domain - __annotations__ = { - "domain": domain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domain"]) -> 'V1beta1Domain': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domain"]) -> typing.Union['V1beta1Domain', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domain: typing.Union['V1beta1Domain', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationDomainResponse': - return super().__new__( - cls, - *_args, - domain=domain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_domain import V1beta1Domain diff --git a/frontier_api/model/v1beta1_create_organization_domain_response.pyi b/frontier_api/model/v1beta1_create_organization_domain_response.pyi deleted file mode 100644 index 9cab311..0000000 --- a/frontier_api/model/v1beta1_create_organization_domain_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationDomainResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def domain() -> typing.Type['V1beta1Domain']: - return V1beta1Domain - __annotations__ = { - "domain": domain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domain"]) -> 'V1beta1Domain': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domain"]) -> typing.Union['V1beta1Domain', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domain: typing.Union['V1beta1Domain', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationDomainResponse': - return super().__new__( - cls, - *_args, - domain=domain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_domain import V1beta1Domain diff --git a/frontier_api/model/v1beta1_create_organization_invitation_response.py b/frontier_api/model/v1beta1_create_organization_invitation_response.py deleted file mode 100644 index 7d9d410..0000000 --- a/frontier_api/model/v1beta1_create_organization_invitation_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationInvitationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class invitations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Invitation'], typing.List['V1beta1Invitation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'invitations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Invitation': - return super().__getitem__(i) - __annotations__ = { - "invitations": invitations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitations"]) -> MetaOapg.properties.invitations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitations"]) -> typing.Union[MetaOapg.properties.invitations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitations: typing.Union[MetaOapg.properties.invitations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationInvitationResponse': - return super().__new__( - cls, - *_args, - invitations=invitations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_create_organization_invitation_response.pyi b/frontier_api/model/v1beta1_create_organization_invitation_response.pyi deleted file mode 100644 index 7d9d410..0000000 --- a/frontier_api/model/v1beta1_create_organization_invitation_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationInvitationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class invitations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Invitation'], typing.List['V1beta1Invitation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'invitations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Invitation': - return super().__getitem__(i) - __annotations__ = { - "invitations": invitations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitations"]) -> MetaOapg.properties.invitations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitations"]) -> typing.Union[MetaOapg.properties.invitations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitations: typing.Union[MetaOapg.properties.invitations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationInvitationResponse': - return super().__new__( - cls, - *_args, - invitations=invitations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_create_organization_preferences_response.py b/frontier_api/model/v1beta1_create_organization_preferences_response.py deleted file mode 100644 index ec982ad..0000000 --- a/frontier_api/model/v1beta1_create_organization_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_organization_preferences_response.pyi b/frontier_api/model/v1beta1_create_organization_preferences_response.pyi deleted file mode 100644 index ec982ad..0000000 --- a/frontier_api/model/v1beta1_create_organization_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_organization_response.py b/frontier_api/model/v1beta1_create_organization_response.py deleted file mode 100644 index eaccf20..0000000 --- a/frontier_api/model/v1beta1_create_organization_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def organization() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - __annotations__ = { - "organization": organization, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organization"]) -> 'V1beta1Organization': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organization"]) -> typing.Union['V1beta1Organization', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organization: typing.Union['V1beta1Organization', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationResponse': - return super().__new__( - cls, - *_args, - organization=organization, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_create_organization_response.pyi b/frontier_api/model/v1beta1_create_organization_response.pyi deleted file mode 100644 index eaccf20..0000000 --- a/frontier_api/model/v1beta1_create_organization_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def organization() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - __annotations__ = { - "organization": organization, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organization"]) -> 'V1beta1Organization': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organization"]) -> typing.Union['V1beta1Organization', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organization: typing.Union['V1beta1Organization', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationResponse': - return super().__new__( - cls, - *_args, - organization=organization, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_create_organization_role_response.py b/frontier_api/model/v1beta1_create_organization_role_response.py deleted file mode 100644 index 8549682..0000000 --- a/frontier_api/model/v1beta1_create_organization_role_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_create_organization_role_response.pyi b/frontier_api/model/v1beta1_create_organization_role_response.pyi deleted file mode 100644 index 8549682..0000000 --- a/frontier_api/model/v1beta1_create_organization_role_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateOrganizationRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateOrganizationRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_create_permission_request.py b/frontier_api/model/v1beta1_create_permission_request.py deleted file mode 100644 index b559477..0000000 --- a/frontier_api/model/v1beta1_create_permission_request.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePermissionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PermissionRequestBody']: - return V1beta1PermissionRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PermissionRequestBody'], typing.List['V1beta1PermissionRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PermissionRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePermissionRequest': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody diff --git a/frontier_api/model/v1beta1_create_permission_request.pyi b/frontier_api/model/v1beta1_create_permission_request.pyi deleted file mode 100644 index b559477..0000000 --- a/frontier_api/model/v1beta1_create_permission_request.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePermissionRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PermissionRequestBody']: - return V1beta1PermissionRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PermissionRequestBody'], typing.List['V1beta1PermissionRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PermissionRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePermissionRequest': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody diff --git a/frontier_api/model/v1beta1_create_permission_response.py b/frontier_api/model/v1beta1_create_permission_response.py deleted file mode 100644 index 37a44a3..0000000 --- a/frontier_api/model/v1beta1_create_permission_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Permission'], typing.List['V1beta1Permission']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Permission': - return super().__getitem__(i) - __annotations__ = { - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePermissionResponse': - return super().__new__( - cls, - *_args, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_create_permission_response.pyi b/frontier_api/model/v1beta1_create_permission_response.pyi deleted file mode 100644 index 37a44a3..0000000 --- a/frontier_api/model/v1beta1_create_permission_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Permission'], typing.List['V1beta1Permission']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Permission': - return super().__getitem__(i) - __annotations__ = { - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePermissionResponse': - return super().__new__( - cls, - *_args, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_create_policy_response.py b/frontier_api/model/v1beta1_create_policy_response.py deleted file mode 100644 index e31d273..0000000 --- a/frontier_api/model/v1beta1_create_policy_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def policy() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - __annotations__ = { - "policy": policy, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policy"]) -> 'V1beta1Policy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policy"]) -> typing.Union['V1beta1Policy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policy: typing.Union['V1beta1Policy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePolicyResponse': - return super().__new__( - cls, - *_args, - policy=policy, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_create_policy_response.pyi b/frontier_api/model/v1beta1_create_policy_response.pyi deleted file mode 100644 index e31d273..0000000 --- a/frontier_api/model/v1beta1_create_policy_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def policy() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - __annotations__ = { - "policy": policy, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policy"]) -> 'V1beta1Policy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policy"]) -> typing.Union['V1beta1Policy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policy: typing.Union['V1beta1Policy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePolicyResponse': - return super().__new__( - cls, - *_args, - policy=policy, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_create_preferences_request.py b/frontier_api/model/v1beta1_create_preferences_request.py deleted file mode 100644 index 26726ee..0000000 --- a/frontier_api/model/v1beta1_create_preferences_request.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePreferencesRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePreferencesRequest': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody diff --git a/frontier_api/model/v1beta1_create_preferences_request.pyi b/frontier_api/model/v1beta1_create_preferences_request.pyi deleted file mode 100644 index 26726ee..0000000 --- a/frontier_api/model/v1beta1_create_preferences_request.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePreferencesRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePreferencesRequest': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody diff --git a/frontier_api/model/v1beta1_create_preferences_response.py b/frontier_api/model/v1beta1_create_preferences_response.py deleted file mode 100644 index 8edcd5d..0000000 --- a/frontier_api/model/v1beta1_create_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preference( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preference': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preference": preference, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preference"]) -> MetaOapg.properties.preference: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preference", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preference"]) -> typing.Union[MetaOapg.properties.preference, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preference", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preference: typing.Union[MetaOapg.properties.preference, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePreferencesResponse': - return super().__new__( - cls, - *_args, - preference=preference, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_preferences_response.pyi b/frontier_api/model/v1beta1_create_preferences_response.pyi deleted file mode 100644 index 8edcd5d..0000000 --- a/frontier_api/model/v1beta1_create_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreatePreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preference( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preference': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preference": preference, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preference"]) -> MetaOapg.properties.preference: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preference", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preference"]) -> typing.Union[MetaOapg.properties.preference, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preference", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preference: typing.Union[MetaOapg.properties.preference, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreatePreferencesResponse': - return super().__new__( - cls, - *_args, - preference=preference, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_project_preferences_response.py b/frontier_api/model/v1beta1_create_project_preferences_response.py deleted file mode 100644 index 7926e49..0000000 --- a/frontier_api/model/v1beta1_create_project_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateProjectPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateProjectPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_project_preferences_response.pyi b/frontier_api/model/v1beta1_create_project_preferences_response.pyi deleted file mode 100644 index 7926e49..0000000 --- a/frontier_api/model/v1beta1_create_project_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateProjectPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateProjectPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_project_resource_response.py b/frontier_api/model/v1beta1_create_project_resource_response.py deleted file mode 100644 index 1529c79..0000000 --- a/frontier_api/model/v1beta1_create_project_resource_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateProjectResourceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def resource() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - __annotations__ = { - "resource": resource, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> 'V1beta1Resource': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union['V1beta1Resource', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resource: typing.Union['V1beta1Resource', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateProjectResourceResponse': - return super().__new__( - cls, - *_args, - resource=resource, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_create_project_resource_response.pyi b/frontier_api/model/v1beta1_create_project_resource_response.pyi deleted file mode 100644 index 1529c79..0000000 --- a/frontier_api/model/v1beta1_create_project_resource_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateProjectResourceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def resource() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - __annotations__ = { - "resource": resource, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> 'V1beta1Resource': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union['V1beta1Resource', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resource: typing.Union['V1beta1Resource', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateProjectResourceResponse': - return super().__new__( - cls, - *_args, - resource=resource, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_create_project_response.py b/frontier_api/model/v1beta1_create_project_response.py deleted file mode 100644 index 243776f..0000000 --- a/frontier_api/model/v1beta1_create_project_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateProjectResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def project() -> typing.Type['V1beta1Project']: - return V1beta1Project - __annotations__ = { - "project": project, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["project"]) -> 'V1beta1Project': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["project"]) -> typing.Union['V1beta1Project', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - project: typing.Union['V1beta1Project', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateProjectResponse': - return super().__new__( - cls, - *_args, - project=project, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_create_project_response.pyi b/frontier_api/model/v1beta1_create_project_response.pyi deleted file mode 100644 index 243776f..0000000 --- a/frontier_api/model/v1beta1_create_project_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateProjectResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def project() -> typing.Type['V1beta1Project']: - return V1beta1Project - __annotations__ = { - "project": project, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["project"]) -> 'V1beta1Project': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["project"]) -> typing.Union['V1beta1Project', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - project: typing.Union['V1beta1Project', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateProjectResponse': - return super().__new__( - cls, - *_args, - project=project, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_create_relation_response.py b/frontier_api/model/v1beta1_create_relation_response.py deleted file mode 100644 index c3f482c..0000000 --- a/frontier_api/model/v1beta1_create_relation_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateRelationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def relation() -> typing.Type['V1beta1Relation']: - return V1beta1Relation - __annotations__ = { - "relation": relation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> 'V1beta1Relation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union['V1beta1Relation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - relation: typing.Union['V1beta1Relation', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateRelationResponse': - return super().__new__( - cls, - *_args, - relation=relation, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_relation import V1beta1Relation diff --git a/frontier_api/model/v1beta1_create_relation_response.pyi b/frontier_api/model/v1beta1_create_relation_response.pyi deleted file mode 100644 index c3f482c..0000000 --- a/frontier_api/model/v1beta1_create_relation_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateRelationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def relation() -> typing.Type['V1beta1Relation']: - return V1beta1Relation - __annotations__ = { - "relation": relation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> 'V1beta1Relation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union['V1beta1Relation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - relation: typing.Union['V1beta1Relation', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateRelationResponse': - return super().__new__( - cls, - *_args, - relation=relation, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_relation import V1beta1Relation diff --git a/frontier_api/model/v1beta1_create_role_response.py b/frontier_api/model/v1beta1_create_role_response.py deleted file mode 100644 index b8bd6d2..0000000 --- a/frontier_api/model/v1beta1_create_role_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_create_role_response.pyi b/frontier_api/model/v1beta1_create_role_response.pyi deleted file mode 100644 index b8bd6d2..0000000 --- a/frontier_api/model/v1beta1_create_role_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_create_service_user_key_response.py b/frontier_api/model/v1beta1_create_service_user_key_response.py deleted file mode 100644 index 6cbec39..0000000 --- a/frontier_api/model/v1beta1_create_service_user_key_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserKeyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def key() -> typing.Type['V1beta1KeyCredential']: - return V1beta1KeyCredential - __annotations__ = { - "key": key, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> 'V1beta1KeyCredential': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["key", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union['V1beta1KeyCredential', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["key", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - key: typing.Union['V1beta1KeyCredential', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserKeyResponse': - return super().__new__( - cls, - *_args, - key=key, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_key_credential import V1beta1KeyCredential diff --git a/frontier_api/model/v1beta1_create_service_user_key_response.pyi b/frontier_api/model/v1beta1_create_service_user_key_response.pyi deleted file mode 100644 index 6cbec39..0000000 --- a/frontier_api/model/v1beta1_create_service_user_key_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserKeyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def key() -> typing.Type['V1beta1KeyCredential']: - return V1beta1KeyCredential - __annotations__ = { - "key": key, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> 'V1beta1KeyCredential': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["key", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union['V1beta1KeyCredential', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["key", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - key: typing.Union['V1beta1KeyCredential', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserKeyResponse': - return super().__new__( - cls, - *_args, - key=key, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_key_credential import V1beta1KeyCredential diff --git a/frontier_api/model/v1beta1_create_service_user_request.py b/frontier_api/model/v1beta1_create_service_user_request.py deleted file mode 100644 index c10bc7d..0000000 --- a/frontier_api/model/v1beta1_create_service_user_request.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "orgId", - } - - class properties: - orgId = schemas.StrSchema - - @staticmethod - def body() -> typing.Type['V1beta1ServiceUserRequestBody']: - return V1beta1ServiceUserRequestBody - __annotations__ = { - "orgId": orgId, - "body": body, - } - - orgId: MetaOapg.properties.orgId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["body"]) -> 'V1beta1ServiceUserRequestBody': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["orgId", "body", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["body"]) -> typing.Union['V1beta1ServiceUserRequestBody', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["orgId", "body", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - orgId: typing.Union[MetaOapg.properties.orgId, str, ], - body: typing.Union['V1beta1ServiceUserRequestBody', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserRequest': - return super().__new__( - cls, - *_args, - orgId=orgId, - body=body, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody diff --git a/frontier_api/model/v1beta1_create_service_user_request.pyi b/frontier_api/model/v1beta1_create_service_user_request.pyi deleted file mode 100644 index c10bc7d..0000000 --- a/frontier_api/model/v1beta1_create_service_user_request.pyi +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserRequest( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "orgId", - } - - class properties: - orgId = schemas.StrSchema - - @staticmethod - def body() -> typing.Type['V1beta1ServiceUserRequestBody']: - return V1beta1ServiceUserRequestBody - __annotations__ = { - "orgId": orgId, - "body": body, - } - - orgId: MetaOapg.properties.orgId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["body"]) -> 'V1beta1ServiceUserRequestBody': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["orgId", "body", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["body"]) -> typing.Union['V1beta1ServiceUserRequestBody', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["orgId", "body", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - orgId: typing.Union[MetaOapg.properties.orgId, str, ], - body: typing.Union['V1beta1ServiceUserRequestBody', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserRequest': - return super().__new__( - cls, - *_args, - orgId=orgId, - body=body, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody diff --git a/frontier_api/model/v1beta1_create_service_user_response.py b/frontier_api/model/v1beta1_create_service_user_response.py deleted file mode 100644 index cde6fc5..0000000 --- a/frontier_api/model/v1beta1_create_service_user_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def serviceuser() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - __annotations__ = { - "serviceuser": serviceuser, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuser"]) -> 'V1beta1ServiceUser': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuser"]) -> typing.Union['V1beta1ServiceUser', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceuser: typing.Union['V1beta1ServiceUser', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserResponse': - return super().__new__( - cls, - *_args, - serviceuser=serviceuser, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_create_service_user_response.pyi b/frontier_api/model/v1beta1_create_service_user_response.pyi deleted file mode 100644 index cde6fc5..0000000 --- a/frontier_api/model/v1beta1_create_service_user_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def serviceuser() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - __annotations__ = { - "serviceuser": serviceuser, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuser"]) -> 'V1beta1ServiceUser': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuser"]) -> typing.Union['V1beta1ServiceUser', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceuser: typing.Union['V1beta1ServiceUser', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserResponse': - return super().__new__( - cls, - *_args, - serviceuser=serviceuser, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_create_service_user_secret_response.py b/frontier_api/model/v1beta1_create_service_user_secret_response.py deleted file mode 100644 index 914b760..0000000 --- a/frontier_api/model/v1beta1_create_service_user_secret_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserSecretResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def secret() -> typing.Type['V1beta1SecretCredential']: - return V1beta1SecretCredential - __annotations__ = { - "secret": secret, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["secret"]) -> 'V1beta1SecretCredential': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["secret", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["secret"]) -> typing.Union['V1beta1SecretCredential', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["secret", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - secret: typing.Union['V1beta1SecretCredential', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserSecretResponse': - return super().__new__( - cls, - *_args, - secret=secret, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_secret_credential import V1beta1SecretCredential diff --git a/frontier_api/model/v1beta1_create_service_user_secret_response.pyi b/frontier_api/model/v1beta1_create_service_user_secret_response.pyi deleted file mode 100644 index 914b760..0000000 --- a/frontier_api/model/v1beta1_create_service_user_secret_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateServiceUserSecretResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def secret() -> typing.Type['V1beta1SecretCredential']: - return V1beta1SecretCredential - __annotations__ = { - "secret": secret, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["secret"]) -> 'V1beta1SecretCredential': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["secret", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["secret"]) -> typing.Union['V1beta1SecretCredential', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["secret", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - secret: typing.Union['V1beta1SecretCredential', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateServiceUserSecretResponse': - return super().__new__( - cls, - *_args, - secret=secret, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_secret_credential import V1beta1SecretCredential diff --git a/frontier_api/model/v1beta1_create_user_preferences_response.py b/frontier_api/model/v1beta1_create_user_preferences_response.py deleted file mode 100644 index dfff465..0000000 --- a/frontier_api/model/v1beta1_create_user_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_user_preferences_response.pyi b/frontier_api/model/v1beta1_create_user_preferences_response.pyi deleted file mode 100644 index dfff465..0000000 --- a/frontier_api/model/v1beta1_create_user_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_create_user_response.py b/frontier_api/model/v1beta1_create_user_response.py deleted file mode 100644 index 63701de..0000000 --- a/frontier_api/model/v1beta1_create_user_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_create_user_response.pyi b/frontier_api/model/v1beta1_create_user_response.pyi deleted file mode 100644 index 63701de..0000000 --- a/frontier_api/model/v1beta1_create_user_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1CreateUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1CreateUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_describe_preferences_response.py b/frontier_api/model/v1beta1_describe_preferences_response.py deleted file mode 100644 index f0a1b9b..0000000 --- a/frontier_api/model/v1beta1_describe_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1DescribePreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class traits( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceTrait']: - return V1beta1PreferenceTrait - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceTrait'], typing.List['V1beta1PreferenceTrait']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'traits': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceTrait': - return super().__getitem__(i) - __annotations__ = { - "traits": traits, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traits"]) -> MetaOapg.properties.traits: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["traits", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traits"]) -> typing.Union[MetaOapg.properties.traits, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["traits", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - traits: typing.Union[MetaOapg.properties.traits, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1DescribePreferencesResponse': - return super().__new__( - cls, - *_args, - traits=traits, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference_trait import V1beta1PreferenceTrait diff --git a/frontier_api/model/v1beta1_describe_preferences_response.pyi b/frontier_api/model/v1beta1_describe_preferences_response.pyi deleted file mode 100644 index f0a1b9b..0000000 --- a/frontier_api/model/v1beta1_describe_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1DescribePreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class traits( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceTrait']: - return V1beta1PreferenceTrait - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceTrait'], typing.List['V1beta1PreferenceTrait']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'traits': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceTrait': - return super().__getitem__(i) - __annotations__ = { - "traits": traits, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["traits"]) -> MetaOapg.properties.traits: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["traits", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["traits"]) -> typing.Union[MetaOapg.properties.traits, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["traits", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - traits: typing.Union[MetaOapg.properties.traits, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1DescribePreferencesResponse': - return super().__new__( - cls, - *_args, - traits=traits, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference_trait import V1beta1PreferenceTrait diff --git a/frontier_api/model/v1beta1_domain.py b/frontier_api/model/v1beta1_domain.py deleted file mode 100644 index 45c7d20..0000000 --- a/frontier_api/model/v1beta1_domain.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Domain( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - orgId = schemas.StrSchema - token = schemas.StrSchema - state = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "orgId": orgId, - "token": token, - "state": state, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "orgId", "token", "state", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "orgId", "token", "state", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Domain': - return super().__new__( - cls, - *_args, - id=id, - name=name, - orgId=orgId, - token=token, - state=state, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_domain.pyi b/frontier_api/model/v1beta1_domain.pyi deleted file mode 100644 index 45c7d20..0000000 --- a/frontier_api/model/v1beta1_domain.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Domain( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - orgId = schemas.StrSchema - token = schemas.StrSchema - state = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "orgId": orgId, - "token": token, - "state": state, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "orgId", "token", "state", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "orgId", "token", "state", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Domain': - return super().__new__( - cls, - *_args, - id=id, - name=name, - orgId=orgId, - token=token, - state=state, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_get_current_user_response.py b/frontier_api/model/v1beta1_get_current_user_response.py deleted file mode 100644 index 912cc58..0000000 --- a/frontier_api/model/v1beta1_get_current_user_response.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - - @staticmethod - def serviceuser() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - __annotations__ = { - "user": user, - "serviceuser": serviceuser, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuser"]) -> 'V1beta1ServiceUser': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", "serviceuser", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuser"]) -> typing.Union['V1beta1ServiceUser', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", "serviceuser", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - serviceuser: typing.Union['V1beta1ServiceUser', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetCurrentUserResponse': - return super().__new__( - cls, - *_args, - user=user, - serviceuser=serviceuser, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_get_current_user_response.pyi b/frontier_api/model/v1beta1_get_current_user_response.pyi deleted file mode 100644 index 912cc58..0000000 --- a/frontier_api/model/v1beta1_get_current_user_response.pyi +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - - @staticmethod - def serviceuser() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - __annotations__ = { - "user": user, - "serviceuser": serviceuser, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuser"]) -> 'V1beta1ServiceUser': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", "serviceuser", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuser"]) -> typing.Union['V1beta1ServiceUser', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", "serviceuser", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - serviceuser: typing.Union['V1beta1ServiceUser', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetCurrentUserResponse': - return super().__new__( - cls, - *_args, - user=user, - serviceuser=serviceuser, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_get_group_response.py b/frontier_api/model/v1beta1_get_group_response.py deleted file mode 100644 index 53e0077..0000000 --- a/frontier_api/model/v1beta1_get_group_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def group() -> typing.Type['V1beta1Group']: - return V1beta1Group - __annotations__ = { - "group": group, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["group"]) -> 'V1beta1Group': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["group"]) -> typing.Union['V1beta1Group', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - group: typing.Union['V1beta1Group', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetGroupResponse': - return super().__new__( - cls, - *_args, - group=group, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_get_group_response.pyi b/frontier_api/model/v1beta1_get_group_response.pyi deleted file mode 100644 index 53e0077..0000000 --- a/frontier_api/model/v1beta1_get_group_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def group() -> typing.Type['V1beta1Group']: - return V1beta1Group - __annotations__ = { - "group": group, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["group"]) -> 'V1beta1Group': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["group"]) -> typing.Union['V1beta1Group', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - group: typing.Union['V1beta1Group', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetGroupResponse': - return super().__new__( - cls, - *_args, - group=group, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_get_jwks_response.py b/frontier_api/model/v1beta1_get_jwks_response.py deleted file mode 100644 index 3605521..0000000 --- a/frontier_api/model/v1beta1_get_jwks_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetJWKsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class keys( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1JSONWebKey']: - return V1beta1JSONWebKey - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1JSONWebKey'], typing.List['V1beta1JSONWebKey']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'keys': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1JSONWebKey': - return super().__getitem__(i) - __annotations__ = { - "keys": keys, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["keys"]) -> MetaOapg.properties.keys: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["keys"]) -> typing.Union[MetaOapg.properties.keys, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - keys: typing.Union[MetaOapg.properties.keys, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetJWKsResponse': - return super().__new__( - cls, - *_args, - keys=keys, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_json_web_key import V1beta1JSONWebKey diff --git a/frontier_api/model/v1beta1_get_jwks_response.pyi b/frontier_api/model/v1beta1_get_jwks_response.pyi deleted file mode 100644 index 3605521..0000000 --- a/frontier_api/model/v1beta1_get_jwks_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetJWKsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class keys( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1JSONWebKey']: - return V1beta1JSONWebKey - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1JSONWebKey'], typing.List['V1beta1JSONWebKey']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'keys': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1JSONWebKey': - return super().__getitem__(i) - __annotations__ = { - "keys": keys, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["keys"]) -> MetaOapg.properties.keys: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["keys"]) -> typing.Union[MetaOapg.properties.keys, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - keys: typing.Union[MetaOapg.properties.keys, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetJWKsResponse': - return super().__new__( - cls, - *_args, - keys=keys, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_json_web_key import V1beta1JSONWebKey diff --git a/frontier_api/model/v1beta1_get_meta_schema_response.py b/frontier_api/model/v1beta1_get_meta_schema_response.py deleted file mode 100644 index 64a98a8..0000000 --- a/frontier_api/model/v1beta1_get_meta_schema_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetMetaSchemaResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def metaschema() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - __annotations__ = { - "metaschema": metaschema, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschema"]) -> 'V1beta1MetaSchema': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschema"]) -> typing.Union['V1beta1MetaSchema', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschema: typing.Union['V1beta1MetaSchema', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetMetaSchemaResponse': - return super().__new__( - cls, - *_args, - metaschema=metaschema, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_get_meta_schema_response.pyi b/frontier_api/model/v1beta1_get_meta_schema_response.pyi deleted file mode 100644 index 64a98a8..0000000 --- a/frontier_api/model/v1beta1_get_meta_schema_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetMetaSchemaResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def metaschema() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - __annotations__ = { - "metaschema": metaschema, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschema"]) -> 'V1beta1MetaSchema': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschema"]) -> typing.Union['V1beta1MetaSchema', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschema: typing.Union['V1beta1MetaSchema', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetMetaSchemaResponse': - return super().__new__( - cls, - *_args, - metaschema=metaschema, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_get_namespace_response.py b/frontier_api/model/v1beta1_get_namespace_response.py deleted file mode 100644 index 1a3f5c3..0000000 --- a/frontier_api/model/v1beta1_get_namespace_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetNamespaceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def namespace() -> typing.Type['V1beta1Namespace']: - return V1beta1Namespace - __annotations__ = { - "namespace": namespace, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> 'V1beta1Namespace': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["namespace", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union['V1beta1Namespace', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["namespace", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - namespace: typing.Union['V1beta1Namespace', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetNamespaceResponse': - return super().__new__( - cls, - *_args, - namespace=namespace, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_namespace import V1beta1Namespace diff --git a/frontier_api/model/v1beta1_get_namespace_response.pyi b/frontier_api/model/v1beta1_get_namespace_response.pyi deleted file mode 100644 index 1a3f5c3..0000000 --- a/frontier_api/model/v1beta1_get_namespace_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetNamespaceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def namespace() -> typing.Type['V1beta1Namespace']: - return V1beta1Namespace - __annotations__ = { - "namespace": namespace, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> 'V1beta1Namespace': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["namespace", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union['V1beta1Namespace', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["namespace", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - namespace: typing.Union['V1beta1Namespace', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetNamespaceResponse': - return super().__new__( - cls, - *_args, - namespace=namespace, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_namespace import V1beta1Namespace diff --git a/frontier_api/model/v1beta1_get_organization_audit_log_response.py b/frontier_api/model/v1beta1_get_organization_audit_log_response.py deleted file mode 100644 index 907b6c7..0000000 --- a/frontier_api/model/v1beta1_get_organization_audit_log_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationAuditLogResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def log() -> typing.Type['V1beta1AuditLog']: - return V1beta1AuditLog - __annotations__ = { - "log": log, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["log"]) -> 'V1beta1AuditLog': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["log", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["log"]) -> typing.Union['V1beta1AuditLog', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["log", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - log: typing.Union['V1beta1AuditLog', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationAuditLogResponse': - return super().__new__( - cls, - *_args, - log=log, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog diff --git a/frontier_api/model/v1beta1_get_organization_audit_log_response.pyi b/frontier_api/model/v1beta1_get_organization_audit_log_response.pyi deleted file mode 100644 index 907b6c7..0000000 --- a/frontier_api/model/v1beta1_get_organization_audit_log_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationAuditLogResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def log() -> typing.Type['V1beta1AuditLog']: - return V1beta1AuditLog - __annotations__ = { - "log": log, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["log"]) -> 'V1beta1AuditLog': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["log", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["log"]) -> typing.Union['V1beta1AuditLog', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["log", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - log: typing.Union['V1beta1AuditLog', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationAuditLogResponse': - return super().__new__( - cls, - *_args, - log=log, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog diff --git a/frontier_api/model/v1beta1_get_organization_domain_response.py b/frontier_api/model/v1beta1_get_organization_domain_response.py deleted file mode 100644 index bc09a2c..0000000 --- a/frontier_api/model/v1beta1_get_organization_domain_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationDomainResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def domain() -> typing.Type['V1beta1Domain']: - return V1beta1Domain - __annotations__ = { - "domain": domain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domain"]) -> 'V1beta1Domain': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domain"]) -> typing.Union['V1beta1Domain', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domain: typing.Union['V1beta1Domain', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationDomainResponse': - return super().__new__( - cls, - *_args, - domain=domain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_domain import V1beta1Domain diff --git a/frontier_api/model/v1beta1_get_organization_domain_response.pyi b/frontier_api/model/v1beta1_get_organization_domain_response.pyi deleted file mode 100644 index bc09a2c..0000000 --- a/frontier_api/model/v1beta1_get_organization_domain_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationDomainResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def domain() -> typing.Type['V1beta1Domain']: - return V1beta1Domain - __annotations__ = { - "domain": domain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domain"]) -> 'V1beta1Domain': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domain"]) -> typing.Union['V1beta1Domain', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domain: typing.Union['V1beta1Domain', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationDomainResponse': - return super().__new__( - cls, - *_args, - domain=domain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_domain import V1beta1Domain diff --git a/frontier_api/model/v1beta1_get_organization_invitation_response.py b/frontier_api/model/v1beta1_get_organization_invitation_response.py deleted file mode 100644 index 35fac2a..0000000 --- a/frontier_api/model/v1beta1_get_organization_invitation_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationInvitationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def invitation() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - __annotations__ = { - "invitation": invitation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitation"]) -> 'V1beta1Invitation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitation"]) -> typing.Union['V1beta1Invitation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitation: typing.Union['V1beta1Invitation', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationInvitationResponse': - return super().__new__( - cls, - *_args, - invitation=invitation, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_get_organization_invitation_response.pyi b/frontier_api/model/v1beta1_get_organization_invitation_response.pyi deleted file mode 100644 index 35fac2a..0000000 --- a/frontier_api/model/v1beta1_get_organization_invitation_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationInvitationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def invitation() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - __annotations__ = { - "invitation": invitation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitation"]) -> 'V1beta1Invitation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitation"]) -> typing.Union['V1beta1Invitation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitation: typing.Union['V1beta1Invitation', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationInvitationResponse': - return super().__new__( - cls, - *_args, - invitation=invitation, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_get_organization_response.py b/frontier_api/model/v1beta1_get_organization_response.py deleted file mode 100644 index 99d25b8..0000000 --- a/frontier_api/model/v1beta1_get_organization_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def organization() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - __annotations__ = { - "organization": organization, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organization"]) -> 'V1beta1Organization': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organization"]) -> typing.Union['V1beta1Organization', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organization: typing.Union['V1beta1Organization', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationResponse': - return super().__new__( - cls, - *_args, - organization=organization, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_get_organization_response.pyi b/frontier_api/model/v1beta1_get_organization_response.pyi deleted file mode 100644 index 99d25b8..0000000 --- a/frontier_api/model/v1beta1_get_organization_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def organization() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - __annotations__ = { - "organization": organization, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organization"]) -> 'V1beta1Organization': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organization"]) -> typing.Union['V1beta1Organization', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organization: typing.Union['V1beta1Organization', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationResponse': - return super().__new__( - cls, - *_args, - organization=organization, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_get_organization_role_response.py b/frontier_api/model/v1beta1_get_organization_role_response.py deleted file mode 100644 index dc610f3..0000000 --- a/frontier_api/model/v1beta1_get_organization_role_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_get_organization_role_response.pyi b/frontier_api/model/v1beta1_get_organization_role_response.pyi deleted file mode 100644 index dc610f3..0000000 --- a/frontier_api/model/v1beta1_get_organization_role_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetOrganizationRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetOrganizationRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_get_permission_response.py b/frontier_api/model/v1beta1_get_permission_response.py deleted file mode 100644 index 4e9b4f2..0000000 --- a/frontier_api/model/v1beta1_get_permission_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetPermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def permission() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - __annotations__ = { - "permission": permission, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> 'V1beta1Permission': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> typing.Union['V1beta1Permission', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union['V1beta1Permission', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetPermissionResponse': - return super().__new__( - cls, - *_args, - permission=permission, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_get_permission_response.pyi b/frontier_api/model/v1beta1_get_permission_response.pyi deleted file mode 100644 index 4e9b4f2..0000000 --- a/frontier_api/model/v1beta1_get_permission_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetPermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def permission() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - __annotations__ = { - "permission": permission, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> 'V1beta1Permission': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> typing.Union['V1beta1Permission', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union['V1beta1Permission', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetPermissionResponse': - return super().__new__( - cls, - *_args, - permission=permission, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_get_policy_response.py b/frontier_api/model/v1beta1_get_policy_response.py deleted file mode 100644 index b0bfa6e..0000000 --- a/frontier_api/model/v1beta1_get_policy_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetPolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def policy() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - __annotations__ = { - "policy": policy, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policy"]) -> 'V1beta1Policy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policy"]) -> typing.Union['V1beta1Policy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policy: typing.Union['V1beta1Policy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetPolicyResponse': - return super().__new__( - cls, - *_args, - policy=policy, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_get_policy_response.pyi b/frontier_api/model/v1beta1_get_policy_response.pyi deleted file mode 100644 index b0bfa6e..0000000 --- a/frontier_api/model/v1beta1_get_policy_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetPolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def policy() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - __annotations__ = { - "policy": policy, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policy"]) -> 'V1beta1Policy': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policy"]) -> typing.Union['V1beta1Policy', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policy", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policy: typing.Union['V1beta1Policy', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetPolicyResponse': - return super().__new__( - cls, - *_args, - policy=policy, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_get_project_resource_response.py b/frontier_api/model/v1beta1_get_project_resource_response.py deleted file mode 100644 index 6e72d09..0000000 --- a/frontier_api/model/v1beta1_get_project_resource_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetProjectResourceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def resource() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - __annotations__ = { - "resource": resource, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> 'V1beta1Resource': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union['V1beta1Resource', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resource: typing.Union['V1beta1Resource', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetProjectResourceResponse': - return super().__new__( - cls, - *_args, - resource=resource, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_get_project_resource_response.pyi b/frontier_api/model/v1beta1_get_project_resource_response.pyi deleted file mode 100644 index 6e72d09..0000000 --- a/frontier_api/model/v1beta1_get_project_resource_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetProjectResourceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def resource() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - __annotations__ = { - "resource": resource, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> 'V1beta1Resource': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union['V1beta1Resource', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resource: typing.Union['V1beta1Resource', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetProjectResourceResponse': - return super().__new__( - cls, - *_args, - resource=resource, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_get_project_response.py b/frontier_api/model/v1beta1_get_project_response.py deleted file mode 100644 index 924ba3e..0000000 --- a/frontier_api/model/v1beta1_get_project_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetProjectResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def project() -> typing.Type['V1beta1Project']: - return V1beta1Project - __annotations__ = { - "project": project, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["project"]) -> 'V1beta1Project': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["project"]) -> typing.Union['V1beta1Project', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - project: typing.Union['V1beta1Project', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetProjectResponse': - return super().__new__( - cls, - *_args, - project=project, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_get_project_response.pyi b/frontier_api/model/v1beta1_get_project_response.pyi deleted file mode 100644 index 924ba3e..0000000 --- a/frontier_api/model/v1beta1_get_project_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetProjectResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def project() -> typing.Type['V1beta1Project']: - return V1beta1Project - __annotations__ = { - "project": project, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["project"]) -> 'V1beta1Project': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["project"]) -> typing.Union['V1beta1Project', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - project: typing.Union['V1beta1Project', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetProjectResponse': - return super().__new__( - cls, - *_args, - project=project, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_get_relation_response.py b/frontier_api/model/v1beta1_get_relation_response.py deleted file mode 100644 index f5ff76b..0000000 --- a/frontier_api/model/v1beta1_get_relation_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetRelationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def relation() -> typing.Type['V1beta1Relation']: - return V1beta1Relation - __annotations__ = { - "relation": relation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> 'V1beta1Relation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union['V1beta1Relation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - relation: typing.Union['V1beta1Relation', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetRelationResponse': - return super().__new__( - cls, - *_args, - relation=relation, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_relation import V1beta1Relation diff --git a/frontier_api/model/v1beta1_get_relation_response.pyi b/frontier_api/model/v1beta1_get_relation_response.pyi deleted file mode 100644 index f5ff76b..0000000 --- a/frontier_api/model/v1beta1_get_relation_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetRelationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def relation() -> typing.Type['V1beta1Relation']: - return V1beta1Relation - __annotations__ = { - "relation": relation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> 'V1beta1Relation': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union['V1beta1Relation', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["relation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - relation: typing.Union['V1beta1Relation', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetRelationResponse': - return super().__new__( - cls, - *_args, - relation=relation, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_relation import V1beta1Relation diff --git a/frontier_api/model/v1beta1_get_service_user_key_response.py b/frontier_api/model/v1beta1_get_service_user_key_response.py deleted file mode 100644 index e8815ed..0000000 --- a/frontier_api/model/v1beta1_get_service_user_key_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetServiceUserKeyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class keys( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1JSONWebKey']: - return V1beta1JSONWebKey - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1JSONWebKey'], typing.List['V1beta1JSONWebKey']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'keys': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1JSONWebKey': - return super().__getitem__(i) - __annotations__ = { - "keys": keys, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["keys"]) -> MetaOapg.properties.keys: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["keys"]) -> typing.Union[MetaOapg.properties.keys, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - keys: typing.Union[MetaOapg.properties.keys, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetServiceUserKeyResponse': - return super().__new__( - cls, - *_args, - keys=keys, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_json_web_key import V1beta1JSONWebKey diff --git a/frontier_api/model/v1beta1_get_service_user_key_response.pyi b/frontier_api/model/v1beta1_get_service_user_key_response.pyi deleted file mode 100644 index e8815ed..0000000 --- a/frontier_api/model/v1beta1_get_service_user_key_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetServiceUserKeyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class keys( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1JSONWebKey']: - return V1beta1JSONWebKey - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1JSONWebKey'], typing.List['V1beta1JSONWebKey']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'keys': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1JSONWebKey': - return super().__getitem__(i) - __annotations__ = { - "keys": keys, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["keys"]) -> MetaOapg.properties.keys: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["keys"]) -> typing.Union[MetaOapg.properties.keys, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - keys: typing.Union[MetaOapg.properties.keys, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetServiceUserKeyResponse': - return super().__new__( - cls, - *_args, - keys=keys, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_json_web_key import V1beta1JSONWebKey diff --git a/frontier_api/model/v1beta1_get_service_user_response.py b/frontier_api/model/v1beta1_get_service_user_response.py deleted file mode 100644 index 703188b..0000000 --- a/frontier_api/model/v1beta1_get_service_user_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetServiceUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def serviceuser() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - __annotations__ = { - "serviceuser": serviceuser, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuser"]) -> 'V1beta1ServiceUser': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuser"]) -> typing.Union['V1beta1ServiceUser', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceuser: typing.Union['V1beta1ServiceUser', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetServiceUserResponse': - return super().__new__( - cls, - *_args, - serviceuser=serviceuser, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_get_service_user_response.pyi b/frontier_api/model/v1beta1_get_service_user_response.pyi deleted file mode 100644 index 703188b..0000000 --- a/frontier_api/model/v1beta1_get_service_user_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetServiceUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def serviceuser() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - __annotations__ = { - "serviceuser": serviceuser, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuser"]) -> 'V1beta1ServiceUser': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuser"]) -> typing.Union['V1beta1ServiceUser', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceuser", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceuser: typing.Union['V1beta1ServiceUser', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetServiceUserResponse': - return super().__new__( - cls, - *_args, - serviceuser=serviceuser, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_get_user_response.py b/frontier_api/model/v1beta1_get_user_response.py deleted file mode 100644 index be67c45..0000000 --- a/frontier_api/model/v1beta1_get_user_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_get_user_response.pyi b/frontier_api/model/v1beta1_get_user_response.pyi deleted file mode 100644 index be67c45..0000000 --- a/frontier_api/model/v1beta1_get_user_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GetUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GetUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_group.py b/frontier_api/model/v1beta1_group.py deleted file mode 100644 index e2079cf..0000000 --- a/frontier_api/model/v1beta1_group.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Group( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - orgId = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "orgId": orgId, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Group': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - orgId=orgId, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_group.pyi b/frontier_api/model/v1beta1_group.pyi deleted file mode 100644 index e2079cf..0000000 --- a/frontier_api/model/v1beta1_group.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Group( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - orgId = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "orgId": orgId, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Group': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - orgId=orgId, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_group_request_body.py b/frontier_api/model/v1beta1_group_request_body.py deleted file mode 100644 index 9a4fbc7..0000000 --- a/frontier_api/model/v1beta1_group_request_body.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GroupRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "name": name, - "title": title, - "metadata": metadata, - } - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GroupRequestBody': - return super().__new__( - cls, - *_args, - name=name, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_group_request_body.pyi b/frontier_api/model/v1beta1_group_request_body.pyi deleted file mode 100644 index 9a4fbc7..0000000 --- a/frontier_api/model/v1beta1_group_request_body.pyi +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1GroupRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "name": name, - "title": title, - "metadata": metadata, - } - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1GroupRequestBody': - return super().__new__( - cls, - *_args, - name=name, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_invitation.py b/frontier_api/model/v1beta1_invitation.py deleted file mode 100644 index ccc05e9..0000000 --- a/frontier_api/model/v1beta1_invitation.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Invitation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - userId = schemas.StrSchema - orgId = schemas.StrSchema - - - class groupIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groupIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - expiresAt = schemas.DateTimeSchema - - - class roleIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roleIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "id": id, - "userId": userId, - "orgId": orgId, - "groupIds": groupIds, - "metadata": metadata, - "createdAt": createdAt, - "expiresAt": expiresAt, - "roleIds": roleIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupIds"]) -> MetaOapg.properties.groupIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["expiresAt"]) -> MetaOapg.properties.expiresAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleIds"]) -> MetaOapg.properties.roleIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "userId", "orgId", "groupIds", "metadata", "createdAt", "expiresAt", "roleIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupIds"]) -> typing.Union[MetaOapg.properties.groupIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["expiresAt"]) -> typing.Union[MetaOapg.properties.expiresAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleIds"]) -> typing.Union[MetaOapg.properties.roleIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "userId", "orgId", "groupIds", "metadata", "createdAt", "expiresAt", "roleIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - groupIds: typing.Union[MetaOapg.properties.groupIds, list, tuple, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - expiresAt: typing.Union[MetaOapg.properties.expiresAt, str, datetime, schemas.Unset] = schemas.unset, - roleIds: typing.Union[MetaOapg.properties.roleIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Invitation': - return super().__new__( - cls, - *_args, - id=id, - userId=userId, - orgId=orgId, - groupIds=groupIds, - metadata=metadata, - createdAt=createdAt, - expiresAt=expiresAt, - roleIds=roleIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_invitation.pyi b/frontier_api/model/v1beta1_invitation.pyi deleted file mode 100644 index ccc05e9..0000000 --- a/frontier_api/model/v1beta1_invitation.pyi +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Invitation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - userId = schemas.StrSchema - orgId = schemas.StrSchema - - - class groupIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groupIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - expiresAt = schemas.DateTimeSchema - - - class roleIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roleIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "id": id, - "userId": userId, - "orgId": orgId, - "groupIds": groupIds, - "metadata": metadata, - "createdAt": createdAt, - "expiresAt": expiresAt, - "roleIds": roleIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupIds"]) -> MetaOapg.properties.groupIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["expiresAt"]) -> MetaOapg.properties.expiresAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleIds"]) -> MetaOapg.properties.roleIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "userId", "orgId", "groupIds", "metadata", "createdAt", "expiresAt", "roleIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupIds"]) -> typing.Union[MetaOapg.properties.groupIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["expiresAt"]) -> typing.Union[MetaOapg.properties.expiresAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleIds"]) -> typing.Union[MetaOapg.properties.roleIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "userId", "orgId", "groupIds", "metadata", "createdAt", "expiresAt", "roleIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - groupIds: typing.Union[MetaOapg.properties.groupIds, list, tuple, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - expiresAt: typing.Union[MetaOapg.properties.expiresAt, str, datetime, schemas.Unset] = schemas.unset, - roleIds: typing.Union[MetaOapg.properties.roleIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Invitation': - return super().__new__( - cls, - *_args, - id=id, - userId=userId, - orgId=orgId, - groupIds=groupIds, - metadata=metadata, - createdAt=createdAt, - expiresAt=expiresAt, - roleIds=roleIds, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_json_web_key.py b/frontier_api/model/v1beta1_json_web_key.py deleted file mode 100644 index 531484a..0000000 --- a/frontier_api/model/v1beta1_json_web_key.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1JSONWebKey( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - kty = schemas.StrSchema - alg = schemas.StrSchema - use = schemas.StrSchema - kid = schemas.StrSchema - n = schemas.StrSchema - e = schemas.StrSchema - x = schemas.StrSchema - y = schemas.StrSchema - crv = schemas.StrSchema - __annotations__ = { - "kty": kty, - "alg": alg, - "use": use, - "kid": kid, - "n": n, - "e": e, - "x": x, - "y": y, - "crv": crv, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kty"]) -> MetaOapg.properties.kty: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["alg"]) -> MetaOapg.properties.alg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["use"]) -> MetaOapg.properties.use: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kid"]) -> MetaOapg.properties.kid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["n"]) -> MetaOapg.properties.n: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["e"]) -> MetaOapg.properties.e: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["x"]) -> MetaOapg.properties.x: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["y"]) -> MetaOapg.properties.y: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["crv"]) -> MetaOapg.properties.crv: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["kty", "alg", "use", "kid", "n", "e", "x", "y", "crv", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kty"]) -> typing.Union[MetaOapg.properties.kty, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["alg"]) -> typing.Union[MetaOapg.properties.alg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["use"]) -> typing.Union[MetaOapg.properties.use, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kid"]) -> typing.Union[MetaOapg.properties.kid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["n"]) -> typing.Union[MetaOapg.properties.n, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["e"]) -> typing.Union[MetaOapg.properties.e, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["x"]) -> typing.Union[MetaOapg.properties.x, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["y"]) -> typing.Union[MetaOapg.properties.y, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["crv"]) -> typing.Union[MetaOapg.properties.crv, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kty", "alg", "use", "kid", "n", "e", "x", "y", "crv", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - kty: typing.Union[MetaOapg.properties.kty, str, schemas.Unset] = schemas.unset, - alg: typing.Union[MetaOapg.properties.alg, str, schemas.Unset] = schemas.unset, - use: typing.Union[MetaOapg.properties.use, str, schemas.Unset] = schemas.unset, - kid: typing.Union[MetaOapg.properties.kid, str, schemas.Unset] = schemas.unset, - n: typing.Union[MetaOapg.properties.n, str, schemas.Unset] = schemas.unset, - e: typing.Union[MetaOapg.properties.e, str, schemas.Unset] = schemas.unset, - x: typing.Union[MetaOapg.properties.x, str, schemas.Unset] = schemas.unset, - y: typing.Union[MetaOapg.properties.y, str, schemas.Unset] = schemas.unset, - crv: typing.Union[MetaOapg.properties.crv, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1JSONWebKey': - return super().__new__( - cls, - *_args, - kty=kty, - alg=alg, - use=use, - kid=kid, - n=n, - e=e, - x=x, - y=y, - crv=crv, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_json_web_key.pyi b/frontier_api/model/v1beta1_json_web_key.pyi deleted file mode 100644 index 531484a..0000000 --- a/frontier_api/model/v1beta1_json_web_key.pyi +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1JSONWebKey( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - kty = schemas.StrSchema - alg = schemas.StrSchema - use = schemas.StrSchema - kid = schemas.StrSchema - n = schemas.StrSchema - e = schemas.StrSchema - x = schemas.StrSchema - y = schemas.StrSchema - crv = schemas.StrSchema - __annotations__ = { - "kty": kty, - "alg": alg, - "use": use, - "kid": kid, - "n": n, - "e": e, - "x": x, - "y": y, - "crv": crv, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kty"]) -> MetaOapg.properties.kty: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["alg"]) -> MetaOapg.properties.alg: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["use"]) -> MetaOapg.properties.use: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kid"]) -> MetaOapg.properties.kid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["n"]) -> MetaOapg.properties.n: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["e"]) -> MetaOapg.properties.e: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["x"]) -> MetaOapg.properties.x: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["y"]) -> MetaOapg.properties.y: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["crv"]) -> MetaOapg.properties.crv: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["kty", "alg", "use", "kid", "n", "e", "x", "y", "crv", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kty"]) -> typing.Union[MetaOapg.properties.kty, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["alg"]) -> typing.Union[MetaOapg.properties.alg, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["use"]) -> typing.Union[MetaOapg.properties.use, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kid"]) -> typing.Union[MetaOapg.properties.kid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["n"]) -> typing.Union[MetaOapg.properties.n, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["e"]) -> typing.Union[MetaOapg.properties.e, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["x"]) -> typing.Union[MetaOapg.properties.x, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["y"]) -> typing.Union[MetaOapg.properties.y, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["crv"]) -> typing.Union[MetaOapg.properties.crv, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["kty", "alg", "use", "kid", "n", "e", "x", "y", "crv", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - kty: typing.Union[MetaOapg.properties.kty, str, schemas.Unset] = schemas.unset, - alg: typing.Union[MetaOapg.properties.alg, str, schemas.Unset] = schemas.unset, - use: typing.Union[MetaOapg.properties.use, str, schemas.Unset] = schemas.unset, - kid: typing.Union[MetaOapg.properties.kid, str, schemas.Unset] = schemas.unset, - n: typing.Union[MetaOapg.properties.n, str, schemas.Unset] = schemas.unset, - e: typing.Union[MetaOapg.properties.e, str, schemas.Unset] = schemas.unset, - x: typing.Union[MetaOapg.properties.x, str, schemas.Unset] = schemas.unset, - y: typing.Union[MetaOapg.properties.y, str, schemas.Unset] = schemas.unset, - crv: typing.Union[MetaOapg.properties.crv, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1JSONWebKey': - return super().__new__( - cls, - *_args, - kty=kty, - alg=alg, - use=use, - kid=kid, - n=n, - e=e, - x=x, - y=y, - crv=crv, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_key_credential.py b/frontier_api/model/v1beta1_key_credential.py deleted file mode 100644 index 8b85e3e..0000000 --- a/frontier_api/model/v1beta1_key_credential.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1KeyCredential( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - kid = schemas.StrSchema - principalId = schemas.StrSchema - privateKey = schemas.StrSchema - __annotations__ = { - "type": type, - "kid": kid, - "principalId": principalId, - "privateKey": privateKey, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kid"]) -> MetaOapg.properties.kid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principalId"]) -> MetaOapg.properties.principalId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["privateKey"]) -> MetaOapg.properties.privateKey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "kid", "principalId", "privateKey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kid"]) -> typing.Union[MetaOapg.properties.kid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principalId"]) -> typing.Union[MetaOapg.properties.principalId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["privateKey"]) -> typing.Union[MetaOapg.properties.privateKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "kid", "principalId", "privateKey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - kid: typing.Union[MetaOapg.properties.kid, str, schemas.Unset] = schemas.unset, - principalId: typing.Union[MetaOapg.properties.principalId, str, schemas.Unset] = schemas.unset, - privateKey: typing.Union[MetaOapg.properties.privateKey, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1KeyCredential': - return super().__new__( - cls, - *_args, - type=type, - kid=kid, - principalId=principalId, - privateKey=privateKey, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_key_credential.pyi b/frontier_api/model/v1beta1_key_credential.pyi deleted file mode 100644 index 8b85e3e..0000000 --- a/frontier_api/model/v1beta1_key_credential.pyi +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1KeyCredential( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - type = schemas.StrSchema - kid = schemas.StrSchema - principalId = schemas.StrSchema - privateKey = schemas.StrSchema - __annotations__ = { - "type": type, - "kid": kid, - "principalId": principalId, - "privateKey": privateKey, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["kid"]) -> MetaOapg.properties.kid: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principalId"]) -> MetaOapg.properties.principalId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["privateKey"]) -> MetaOapg.properties.privateKey: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "kid", "principalId", "privateKey", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["kid"]) -> typing.Union[MetaOapg.properties.kid, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principalId"]) -> typing.Union[MetaOapg.properties.principalId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["privateKey"]) -> typing.Union[MetaOapg.properties.privateKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "kid", "principalId", "privateKey", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset, - kid: typing.Union[MetaOapg.properties.kid, str, schemas.Unset] = schemas.unset, - principalId: typing.Union[MetaOapg.properties.principalId, str, schemas.Unset] = schemas.unset, - privateKey: typing.Union[MetaOapg.properties.privateKey, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1KeyCredential': - return super().__new__( - cls, - *_args, - type=type, - kid=kid, - principalId=principalId, - privateKey=privateKey, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_list_all_organizations_response.py b/frontier_api/model/v1beta1_list_all_organizations_response.py deleted file mode 100644 index d68b551..0000000 --- a/frontier_api/model/v1beta1_list_all_organizations_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListAllOrganizationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListAllOrganizationsResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_all_organizations_response.pyi b/frontier_api/model/v1beta1_list_all_organizations_response.pyi deleted file mode 100644 index d68b551..0000000 --- a/frontier_api/model/v1beta1_list_all_organizations_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListAllOrganizationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListAllOrganizationsResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_all_users_response.py b/frontier_api/model/v1beta1_list_all_users_response.py deleted file mode 100644 index 2b55b16..0000000 --- a/frontier_api/model/v1beta1_list_all_users_response.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListAllUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - count = schemas.Int32Schema - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "count": count, - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["count"]) -> MetaOapg.properties.count: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["count"]) -> typing.Union[MetaOapg.properties.count, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - count: typing.Union[MetaOapg.properties.count, decimal.Decimal, int, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListAllUsersResponse': - return super().__new__( - cls, - *_args, - count=count, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_all_users_response.pyi b/frontier_api/model/v1beta1_list_all_users_response.pyi deleted file mode 100644 index 2b55b16..0000000 --- a/frontier_api/model/v1beta1_list_all_users_response.pyi +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListAllUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - count = schemas.Int32Schema - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "count": count, - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["count"]) -> MetaOapg.properties.count: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["count"]) -> typing.Union[MetaOapg.properties.count, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - count: typing.Union[MetaOapg.properties.count, decimal.Decimal, int, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListAllUsersResponse': - return super().__new__( - cls, - *_args, - count=count, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_auth_strategies_response.py b/frontier_api/model/v1beta1_list_auth_strategies_response.py deleted file mode 100644 index 4328645..0000000 --- a/frontier_api/model/v1beta1_list_auth_strategies_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListAuthStrategiesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class strategies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1AuthStrategy']: - return V1beta1AuthStrategy - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1AuthStrategy'], typing.List['V1beta1AuthStrategy']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'strategies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1AuthStrategy': - return super().__getitem__(i) - __annotations__ = { - "strategies": strategies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["strategies"]) -> MetaOapg.properties.strategies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["strategies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["strategies"]) -> typing.Union[MetaOapg.properties.strategies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["strategies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - strategies: typing.Union[MetaOapg.properties.strategies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListAuthStrategiesResponse': - return super().__new__( - cls, - *_args, - strategies=strategies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_auth_strategy import V1beta1AuthStrategy diff --git a/frontier_api/model/v1beta1_list_auth_strategies_response.pyi b/frontier_api/model/v1beta1_list_auth_strategies_response.pyi deleted file mode 100644 index 4328645..0000000 --- a/frontier_api/model/v1beta1_list_auth_strategies_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListAuthStrategiesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class strategies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1AuthStrategy']: - return V1beta1AuthStrategy - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1AuthStrategy'], typing.List['V1beta1AuthStrategy']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'strategies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1AuthStrategy': - return super().__getitem__(i) - __annotations__ = { - "strategies": strategies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["strategies"]) -> MetaOapg.properties.strategies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["strategies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["strategies"]) -> typing.Union[MetaOapg.properties.strategies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["strategies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - strategies: typing.Union[MetaOapg.properties.strategies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListAuthStrategiesResponse': - return super().__new__( - cls, - *_args, - strategies=strategies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_auth_strategy import V1beta1AuthStrategy diff --git a/frontier_api/model/v1beta1_list_current_user_groups_response.py b/frontier_api/model/v1beta1_list_current_user_groups_response.py deleted file mode 100644 index 0426da7..0000000 --- a/frontier_api/model/v1beta1_list_current_user_groups_response.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListCurrentUserGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - - - class accessPairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListCurrentUserGroupsResponseAccessPair']: - return V1beta1ListCurrentUserGroupsResponseAccessPair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListCurrentUserGroupsResponseAccessPair'], typing.List['V1beta1ListCurrentUserGroupsResponseAccessPair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'accessPairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListCurrentUserGroupsResponseAccessPair': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - "accessPairs": accessPairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accessPairs"]) -> MetaOapg.properties.accessPairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", "accessPairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accessPairs"]) -> typing.Union[MetaOapg.properties.accessPairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", "accessPairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - accessPairs: typing.Union[MetaOapg.properties.accessPairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListCurrentUserGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - accessPairs=accessPairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group -from frontier_api.model.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair diff --git a/frontier_api/model/v1beta1_list_current_user_groups_response.pyi b/frontier_api/model/v1beta1_list_current_user_groups_response.pyi deleted file mode 100644 index 0426da7..0000000 --- a/frontier_api/model/v1beta1_list_current_user_groups_response.pyi +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListCurrentUserGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - - - class accessPairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListCurrentUserGroupsResponseAccessPair']: - return V1beta1ListCurrentUserGroupsResponseAccessPair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListCurrentUserGroupsResponseAccessPair'], typing.List['V1beta1ListCurrentUserGroupsResponseAccessPair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'accessPairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListCurrentUserGroupsResponseAccessPair': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - "accessPairs": accessPairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accessPairs"]) -> MetaOapg.properties.accessPairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", "accessPairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accessPairs"]) -> typing.Union[MetaOapg.properties.accessPairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", "accessPairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - accessPairs: typing.Union[MetaOapg.properties.accessPairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListCurrentUserGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - accessPairs=accessPairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group -from frontier_api.model.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair diff --git a/frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.py b/frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.py deleted file mode 100644 index a69212e..0000000 --- a/frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListCurrentUserGroupsResponseAccessPair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - groupId = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "groupId": groupId, - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupId"]) -> MetaOapg.properties.groupId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groupId", "permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupId"]) -> typing.Union[MetaOapg.properties.groupId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groupId", "permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groupId: typing.Union[MetaOapg.properties.groupId, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListCurrentUserGroupsResponseAccessPair': - return super().__new__( - cls, - *_args, - groupId=groupId, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.pyi b/frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.pyi deleted file mode 100644 index a69212e..0000000 --- a/frontier_api/model/v1beta1_list_current_user_groups_response_access_pair.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListCurrentUserGroupsResponseAccessPair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - groupId = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "groupId": groupId, - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupId"]) -> MetaOapg.properties.groupId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groupId", "permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupId"]) -> typing.Union[MetaOapg.properties.groupId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groupId", "permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groupId: typing.Union[MetaOapg.properties.groupId, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListCurrentUserGroupsResponseAccessPair': - return super().__new__( - cls, - *_args, - groupId=groupId, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_list_current_user_preferences_response.py b/frontier_api/model/v1beta1_list_current_user_preferences_response.py deleted file mode 100644 index 518fc1f..0000000 --- a/frontier_api/model/v1beta1_list_current_user_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListCurrentUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListCurrentUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_current_user_preferences_response.pyi b/frontier_api/model/v1beta1_list_current_user_preferences_response.pyi deleted file mode 100644 index 518fc1f..0000000 --- a/frontier_api/model/v1beta1_list_current_user_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListCurrentUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListCurrentUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_group_preferences_response.py b/frontier_api/model/v1beta1_list_group_preferences_response.py deleted file mode 100644 index 6bfd2b9..0000000 --- a/frontier_api/model/v1beta1_list_group_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_group_preferences_response.pyi b/frontier_api/model/v1beta1_list_group_preferences_response.pyi deleted file mode 100644 index 6bfd2b9..0000000 --- a/frontier_api/model/v1beta1_list_group_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_group_users_response.py b/frontier_api/model/v1beta1_list_group_users_response.py deleted file mode 100644 index 4d84ce6..0000000 --- a/frontier_api/model/v1beta1_list_group_users_response.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - - - class rolePairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListGroupUsersResponseRolePair']: - return V1beta1ListGroupUsersResponseRolePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListGroupUsersResponseRolePair'], typing.List['V1beta1ListGroupUsersResponseRolePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rolePairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListGroupUsersResponseRolePair': - return super().__getitem__(i) - __annotations__ = { - "users": users, - "rolePairs": rolePairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rolePairs"]) -> MetaOapg.properties.rolePairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rolePairs"]) -> typing.Union[MetaOapg.properties.rolePairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - rolePairs: typing.Union[MetaOapg.properties.rolePairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - rolePairs=rolePairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_group_users_response.pyi b/frontier_api/model/v1beta1_list_group_users_response.pyi deleted file mode 100644 index 4d84ce6..0000000 --- a/frontier_api/model/v1beta1_list_group_users_response.pyi +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - - - class rolePairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListGroupUsersResponseRolePair']: - return V1beta1ListGroupUsersResponseRolePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListGroupUsersResponseRolePair'], typing.List['V1beta1ListGroupUsersResponseRolePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rolePairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListGroupUsersResponseRolePair': - return super().__getitem__(i) - __annotations__ = { - "users": users, - "rolePairs": rolePairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rolePairs"]) -> MetaOapg.properties.rolePairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rolePairs"]) -> typing.Union[MetaOapg.properties.rolePairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - rolePairs: typing.Union[MetaOapg.properties.rolePairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - rolePairs=rolePairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_group_users_response_role_pair.py b/frontier_api/model/v1beta1_list_group_users_response_role_pair.py deleted file mode 100644 index 7024661..0000000 --- a/frontier_api/model/v1beta1_list_group_users_response_role_pair.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupUsersResponseRolePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - userId = schemas.StrSchema - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "userId": userId, - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupUsersResponseRolePair': - return super().__new__( - cls, - *_args, - userId=userId, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_group_users_response_role_pair.pyi b/frontier_api/model/v1beta1_list_group_users_response_role_pair.pyi deleted file mode 100644 index 7024661..0000000 --- a/frontier_api/model/v1beta1_list_group_users_response_role_pair.pyi +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupUsersResponseRolePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - userId = schemas.StrSchema - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "userId": userId, - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupUsersResponseRolePair': - return super().__new__( - cls, - *_args, - userId=userId, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_groups_response.py b/frontier_api/model/v1beta1_list_groups_response.py deleted file mode 100644 index bdf48ab..0000000 --- a/frontier_api/model/v1beta1_list_groups_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_list_groups_response.pyi b/frontier_api/model/v1beta1_list_groups_response.pyi deleted file mode 100644 index bdf48ab..0000000 --- a/frontier_api/model/v1beta1_list_groups_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_list_meta_schemas_response.py b/frontier_api/model/v1beta1_list_meta_schemas_response.py deleted file mode 100644 index fe6e812..0000000 --- a/frontier_api/model/v1beta1_list_meta_schemas_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListMetaSchemasResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class metaschemas( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1MetaSchema'], typing.List['V1beta1MetaSchema']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'metaschemas': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1MetaSchema': - return super().__getitem__(i) - __annotations__ = { - "metaschemas": metaschemas, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschemas"]) -> MetaOapg.properties.metaschemas: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschemas", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschemas"]) -> typing.Union[MetaOapg.properties.metaschemas, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschemas", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschemas: typing.Union[MetaOapg.properties.metaschemas, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListMetaSchemasResponse': - return super().__new__( - cls, - *_args, - metaschemas=metaschemas, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_list_meta_schemas_response.pyi b/frontier_api/model/v1beta1_list_meta_schemas_response.pyi deleted file mode 100644 index fe6e812..0000000 --- a/frontier_api/model/v1beta1_list_meta_schemas_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListMetaSchemasResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class metaschemas( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1MetaSchema'], typing.List['V1beta1MetaSchema']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'metaschemas': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1MetaSchema': - return super().__getitem__(i) - __annotations__ = { - "metaschemas": metaschemas, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschemas"]) -> MetaOapg.properties.metaschemas: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschemas", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschemas"]) -> typing.Union[MetaOapg.properties.metaschemas, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschemas", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschemas: typing.Union[MetaOapg.properties.metaschemas, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListMetaSchemasResponse': - return super().__new__( - cls, - *_args, - metaschemas=metaschemas, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_list_namespaces_response.py b/frontier_api/model/v1beta1_list_namespaces_response.py deleted file mode 100644 index 3d2e9a6..0000000 --- a/frontier_api/model/v1beta1_list_namespaces_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListNamespacesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class namespaces( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Namespace']: - return V1beta1Namespace - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Namespace'], typing.List['V1beta1Namespace']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'namespaces': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Namespace': - return super().__getitem__(i) - __annotations__ = { - "namespaces": namespaces, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespaces"]) -> MetaOapg.properties.namespaces: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["namespaces", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespaces"]) -> typing.Union[MetaOapg.properties.namespaces, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["namespaces", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - namespaces: typing.Union[MetaOapg.properties.namespaces, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListNamespacesResponse': - return super().__new__( - cls, - *_args, - namespaces=namespaces, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_namespace import V1beta1Namespace diff --git a/frontier_api/model/v1beta1_list_namespaces_response.pyi b/frontier_api/model/v1beta1_list_namespaces_response.pyi deleted file mode 100644 index 3d2e9a6..0000000 --- a/frontier_api/model/v1beta1_list_namespaces_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListNamespacesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class namespaces( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Namespace']: - return V1beta1Namespace - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Namespace'], typing.List['V1beta1Namespace']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'namespaces': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Namespace': - return super().__getitem__(i) - __annotations__ = { - "namespaces": namespaces, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespaces"]) -> MetaOapg.properties.namespaces: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["namespaces", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespaces"]) -> typing.Union[MetaOapg.properties.namespaces, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["namespaces", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - namespaces: typing.Union[MetaOapg.properties.namespaces, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListNamespacesResponse': - return super().__new__( - cls, - *_args, - namespaces=namespaces, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_namespace import V1beta1Namespace diff --git a/frontier_api/model/v1beta1_list_organization_admins_response.py b/frontier_api/model/v1beta1_list_organization_admins_response.py deleted file mode 100644 index 4849425..0000000 --- a/frontier_api/model/v1beta1_list_organization_admins_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationAdminsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationAdminsResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_organization_admins_response.pyi b/frontier_api/model/v1beta1_list_organization_admins_response.pyi deleted file mode 100644 index 4849425..0000000 --- a/frontier_api/model/v1beta1_list_organization_admins_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationAdminsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationAdminsResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_organization_audit_logs_response.py b/frontier_api/model/v1beta1_list_organization_audit_logs_response.py deleted file mode 100644 index a7a2b11..0000000 --- a/frontier_api/model/v1beta1_list_organization_audit_logs_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationAuditLogsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class logs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1AuditLog']: - return V1beta1AuditLog - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1AuditLog'], typing.List['V1beta1AuditLog']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'logs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1AuditLog': - return super().__getitem__(i) - __annotations__ = { - "logs": logs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logs"]) -> MetaOapg.properties.logs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logs"]) -> typing.Union[MetaOapg.properties.logs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - logs: typing.Union[MetaOapg.properties.logs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationAuditLogsResponse': - return super().__new__( - cls, - *_args, - logs=logs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog diff --git a/frontier_api/model/v1beta1_list_organization_audit_logs_response.pyi b/frontier_api/model/v1beta1_list_organization_audit_logs_response.pyi deleted file mode 100644 index a7a2b11..0000000 --- a/frontier_api/model/v1beta1_list_organization_audit_logs_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationAuditLogsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class logs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1AuditLog']: - return V1beta1AuditLog - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1AuditLog'], typing.List['V1beta1AuditLog']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'logs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1AuditLog': - return super().__getitem__(i) - __annotations__ = { - "logs": logs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logs"]) -> MetaOapg.properties.logs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logs"]) -> typing.Union[MetaOapg.properties.logs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - logs: typing.Union[MetaOapg.properties.logs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationAuditLogsResponse': - return super().__new__( - cls, - *_args, - logs=logs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog diff --git a/frontier_api/model/v1beta1_list_organization_domains_response.py b/frontier_api/model/v1beta1_list_organization_domains_response.py deleted file mode 100644 index b51e89b..0000000 --- a/frontier_api/model/v1beta1_list_organization_domains_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationDomainsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class domains( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Domain']: - return V1beta1Domain - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Domain'], typing.List['V1beta1Domain']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'domains': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Domain': - return super().__getitem__(i) - __annotations__ = { - "domains": domains, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domains"]) -> MetaOapg.properties.domains: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domains", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domains"]) -> typing.Union[MetaOapg.properties.domains, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domains", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domains: typing.Union[MetaOapg.properties.domains, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationDomainsResponse': - return super().__new__( - cls, - *_args, - domains=domains, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_domain import V1beta1Domain diff --git a/frontier_api/model/v1beta1_list_organization_domains_response.pyi b/frontier_api/model/v1beta1_list_organization_domains_response.pyi deleted file mode 100644 index b51e89b..0000000 --- a/frontier_api/model/v1beta1_list_organization_domains_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationDomainsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class domains( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Domain']: - return V1beta1Domain - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Domain'], typing.List['V1beta1Domain']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'domains': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Domain': - return super().__getitem__(i) - __annotations__ = { - "domains": domains, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domains"]) -> MetaOapg.properties.domains: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domains", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domains"]) -> typing.Union[MetaOapg.properties.domains, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domains", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domains: typing.Union[MetaOapg.properties.domains, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationDomainsResponse': - return super().__new__( - cls, - *_args, - domains=domains, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_domain import V1beta1Domain diff --git a/frontier_api/model/v1beta1_list_organization_groups_response.py b/frontier_api/model/v1beta1_list_organization_groups_response.py deleted file mode 100644 index 586acd0..0000000 --- a/frontier_api/model/v1beta1_list_organization_groups_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_list_organization_groups_response.pyi b/frontier_api/model/v1beta1_list_organization_groups_response.pyi deleted file mode 100644 index 586acd0..0000000 --- a/frontier_api/model/v1beta1_list_organization_groups_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_list_organization_invitations_response.py b/frontier_api/model/v1beta1_list_organization_invitations_response.py deleted file mode 100644 index 4430834..0000000 --- a/frontier_api/model/v1beta1_list_organization_invitations_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationInvitationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class invitations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Invitation'], typing.List['V1beta1Invitation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'invitations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Invitation': - return super().__getitem__(i) - __annotations__ = { - "invitations": invitations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitations"]) -> MetaOapg.properties.invitations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitations"]) -> typing.Union[MetaOapg.properties.invitations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitations: typing.Union[MetaOapg.properties.invitations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationInvitationsResponse': - return super().__new__( - cls, - *_args, - invitations=invitations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_list_organization_invitations_response.pyi b/frontier_api/model/v1beta1_list_organization_invitations_response.pyi deleted file mode 100644 index 4430834..0000000 --- a/frontier_api/model/v1beta1_list_organization_invitations_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationInvitationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class invitations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Invitation'], typing.List['V1beta1Invitation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'invitations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Invitation': - return super().__getitem__(i) - __annotations__ = { - "invitations": invitations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitations"]) -> MetaOapg.properties.invitations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitations"]) -> typing.Union[MetaOapg.properties.invitations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitations: typing.Union[MetaOapg.properties.invitations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationInvitationsResponse': - return super().__new__( - cls, - *_args, - invitations=invitations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_list_organization_preferences_response.py b/frontier_api/model/v1beta1_list_organization_preferences_response.py deleted file mode 100644 index 79b2a2c..0000000 --- a/frontier_api/model/v1beta1_list_organization_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_organization_preferences_response.pyi b/frontier_api/model/v1beta1_list_organization_preferences_response.pyi deleted file mode 100644 index 79b2a2c..0000000 --- a/frontier_api/model/v1beta1_list_organization_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_organization_projects_response.py b/frontier_api/model/v1beta1_list_organization_projects_response.py deleted file mode 100644 index d420621..0000000 --- a/frontier_api/model/v1beta1_list_organization_projects_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationProjectsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationProjectsResponse': - return super().__new__( - cls, - *_args, - projects=projects, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_organization_projects_response.pyi b/frontier_api/model/v1beta1_list_organization_projects_response.pyi deleted file mode 100644 index d420621..0000000 --- a/frontier_api/model/v1beta1_list_organization_projects_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationProjectsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationProjectsResponse': - return super().__new__( - cls, - *_args, - projects=projects, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_organization_roles_response.py b/frontier_api/model/v1beta1_list_organization_roles_response.py deleted file mode 100644 index b61204b..0000000 --- a/frontier_api/model/v1beta1_list_organization_roles_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationRolesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationRolesResponse': - return super().__new__( - cls, - *_args, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_organization_roles_response.pyi b/frontier_api/model/v1beta1_list_organization_roles_response.pyi deleted file mode 100644 index b61204b..0000000 --- a/frontier_api/model/v1beta1_list_organization_roles_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationRolesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationRolesResponse': - return super().__new__( - cls, - *_args, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_organization_service_users_response.py b/frontier_api/model/v1beta1_list_organization_service_users_response.py deleted file mode 100644 index 363363f..0000000 --- a/frontier_api/model/v1beta1_list_organization_service_users_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationServiceUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class serviceusers( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUser'], typing.List['V1beta1ServiceUser']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'serviceusers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUser': - return super().__getitem__(i) - __annotations__ = { - "serviceusers": serviceusers, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceusers"]) -> MetaOapg.properties.serviceusers: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceusers"]) -> typing.Union[MetaOapg.properties.serviceusers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceusers: typing.Union[MetaOapg.properties.serviceusers, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationServiceUsersResponse': - return super().__new__( - cls, - *_args, - serviceusers=serviceusers, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_list_organization_service_users_response.pyi b/frontier_api/model/v1beta1_list_organization_service_users_response.pyi deleted file mode 100644 index 363363f..0000000 --- a/frontier_api/model/v1beta1_list_organization_service_users_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationServiceUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class serviceusers( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUser'], typing.List['V1beta1ServiceUser']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'serviceusers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUser': - return super().__getitem__(i) - __annotations__ = { - "serviceusers": serviceusers, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceusers"]) -> MetaOapg.properties.serviceusers: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceusers"]) -> typing.Union[MetaOapg.properties.serviceusers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceusers: typing.Union[MetaOapg.properties.serviceusers, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationServiceUsersResponse': - return super().__new__( - cls, - *_args, - serviceusers=serviceusers, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_list_organization_users_response.py b/frontier_api/model/v1beta1_list_organization_users_response.py deleted file mode 100644 index ecd2538..0000000 --- a/frontier_api/model/v1beta1_list_organization_users_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_organization_users_response.pyi b/frontier_api/model/v1beta1_list_organization_users_response.pyi deleted file mode 100644 index ecd2538..0000000 --- a/frontier_api/model/v1beta1_list_organization_users_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_organizations_by_current_user_response.py b/frontier_api/model/v1beta1_list_organizations_by_current_user_response.py deleted file mode 100644 index 430264e..0000000 --- a/frontier_api/model/v1beta1_list_organizations_by_current_user_response.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationsByCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - - - class joinableViaDomain( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'joinableViaDomain': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - "joinableViaDomain": joinableViaDomain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["joinableViaDomain"]) -> MetaOapg.properties.joinableViaDomain: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["joinableViaDomain"]) -> typing.Union[MetaOapg.properties.joinableViaDomain, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - joinableViaDomain: typing.Union[MetaOapg.properties.joinableViaDomain, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationsByCurrentUserResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - joinableViaDomain=joinableViaDomain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_organizations_by_current_user_response.pyi b/frontier_api/model/v1beta1_list_organizations_by_current_user_response.pyi deleted file mode 100644 index 430264e..0000000 --- a/frontier_api/model/v1beta1_list_organizations_by_current_user_response.pyi +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationsByCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - - - class joinableViaDomain( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'joinableViaDomain': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - "joinableViaDomain": joinableViaDomain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["joinableViaDomain"]) -> MetaOapg.properties.joinableViaDomain: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["joinableViaDomain"]) -> typing.Union[MetaOapg.properties.joinableViaDomain, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - joinableViaDomain: typing.Union[MetaOapg.properties.joinableViaDomain, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationsByCurrentUserResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - joinableViaDomain=joinableViaDomain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_organizations_by_user_response.py b/frontier_api/model/v1beta1_list_organizations_by_user_response.py deleted file mode 100644 index 1987d1e..0000000 --- a/frontier_api/model/v1beta1_list_organizations_by_user_response.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationsByUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - - - class joinableViaDomain( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'joinableViaDomain': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - "joinableViaDomain": joinableViaDomain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["joinableViaDomain"]) -> MetaOapg.properties.joinableViaDomain: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["joinableViaDomain"]) -> typing.Union[MetaOapg.properties.joinableViaDomain, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - joinableViaDomain: typing.Union[MetaOapg.properties.joinableViaDomain, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationsByUserResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - joinableViaDomain=joinableViaDomain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_organizations_by_user_response.pyi b/frontier_api/model/v1beta1_list_organizations_by_user_response.pyi deleted file mode 100644 index 1987d1e..0000000 --- a/frontier_api/model/v1beta1_list_organizations_by_user_response.pyi +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationsByUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - - - class joinableViaDomain( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'joinableViaDomain': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - "joinableViaDomain": joinableViaDomain, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["joinableViaDomain"]) -> MetaOapg.properties.joinableViaDomain: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["joinableViaDomain"]) -> typing.Union[MetaOapg.properties.joinableViaDomain, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", "joinableViaDomain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - joinableViaDomain: typing.Union[MetaOapg.properties.joinableViaDomain, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationsByUserResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - joinableViaDomain=joinableViaDomain, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_organizations_response.py b/frontier_api/model/v1beta1_list_organizations_response.py deleted file mode 100644 index 4819812..0000000 --- a/frontier_api/model/v1beta1_list_organizations_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationsResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_organizations_response.pyi b/frontier_api/model/v1beta1_list_organizations_response.pyi deleted file mode 100644 index 4819812..0000000 --- a/frontier_api/model/v1beta1_list_organizations_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListOrganizationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class organizations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Organization'], typing.List['V1beta1Organization']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'organizations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Organization': - return super().__getitem__(i) - __annotations__ = { - "organizations": organizations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organizations"]) -> MetaOapg.properties.organizations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organizations"]) -> typing.Union[MetaOapg.properties.organizations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organizations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organizations: typing.Union[MetaOapg.properties.organizations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListOrganizationsResponse': - return super().__new__( - cls, - *_args, - organizations=organizations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_list_permissions_response.py b/frontier_api/model/v1beta1_list_permissions_response.py deleted file mode 100644 index 1d72bcb..0000000 --- a/frontier_api/model/v1beta1_list_permissions_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListPermissionsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Permission'], typing.List['V1beta1Permission']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Permission': - return super().__getitem__(i) - __annotations__ = { - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListPermissionsResponse': - return super().__new__( - cls, - *_args, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_list_permissions_response.pyi b/frontier_api/model/v1beta1_list_permissions_response.pyi deleted file mode 100644 index 1d72bcb..0000000 --- a/frontier_api/model/v1beta1_list_permissions_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListPermissionsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Permission'], typing.List['V1beta1Permission']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Permission': - return super().__getitem__(i) - __annotations__ = { - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListPermissionsResponse': - return super().__new__( - cls, - *_args, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_list_policies_response.py b/frontier_api/model/v1beta1_list_policies_response.py deleted file mode 100644 index dfa063e..0000000 --- a/frontier_api/model/v1beta1_list_policies_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListPoliciesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class policies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Policy'], typing.List['V1beta1Policy']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'policies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Policy': - return super().__getitem__(i) - __annotations__ = { - "policies": policies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policies"]) -> MetaOapg.properties.policies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policies"]) -> typing.Union[MetaOapg.properties.policies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policies: typing.Union[MetaOapg.properties.policies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListPoliciesResponse': - return super().__new__( - cls, - *_args, - policies=policies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_list_policies_response.pyi b/frontier_api/model/v1beta1_list_policies_response.pyi deleted file mode 100644 index dfa063e..0000000 --- a/frontier_api/model/v1beta1_list_policies_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListPoliciesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class policies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Policy'], typing.List['V1beta1Policy']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'policies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Policy': - return super().__getitem__(i) - __annotations__ = { - "policies": policies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policies"]) -> MetaOapg.properties.policies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policies"]) -> typing.Union[MetaOapg.properties.policies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policies: typing.Union[MetaOapg.properties.policies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListPoliciesResponse': - return super().__new__( - cls, - *_args, - policies=policies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_list_preferences_response.py b/frontier_api/model/v1beta1_list_preferences_response.py deleted file mode 100644 index c55142b..0000000 --- a/frontier_api/model/v1beta1_list_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_preferences_response.pyi b/frontier_api/model/v1beta1_list_preferences_response.pyi deleted file mode 100644 index c55142b..0000000 --- a/frontier_api/model/v1beta1_list_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_project_admins_response.py b/frontier_api/model/v1beta1_list_project_admins_response.py deleted file mode 100644 index 589deb3..0000000 --- a/frontier_api/model/v1beta1_list_project_admins_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectAdminsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectAdminsResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_project_admins_response.pyi b/frontier_api/model/v1beta1_list_project_admins_response.pyi deleted file mode 100644 index 589deb3..0000000 --- a/frontier_api/model/v1beta1_list_project_admins_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectAdminsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectAdminsResponse': - return super().__new__( - cls, - *_args, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_project_preferences_response.py b/frontier_api/model/v1beta1_list_project_preferences_response.py deleted file mode 100644 index 487e66d..0000000 --- a/frontier_api/model/v1beta1_list_project_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_project_preferences_response.pyi b/frontier_api/model/v1beta1_list_project_preferences_response.pyi deleted file mode 100644 index 487e66d..0000000 --- a/frontier_api/model/v1beta1_list_project_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_project_resources_response.py b/frontier_api/model/v1beta1_list_project_resources_response.py deleted file mode 100644 index 74a5edf..0000000 --- a/frontier_api/model/v1beta1_list_project_resources_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectResourcesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class resources( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Resource'], typing.List['V1beta1Resource']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resources': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Resource': - return super().__getitem__(i) - __annotations__ = { - "resources": resources, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resources"]) -> MetaOapg.properties.resources: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resources"]) -> typing.Union[MetaOapg.properties.resources, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resources: typing.Union[MetaOapg.properties.resources, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectResourcesResponse': - return super().__new__( - cls, - *_args, - resources=resources, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_list_project_resources_response.pyi b/frontier_api/model/v1beta1_list_project_resources_response.pyi deleted file mode 100644 index 74a5edf..0000000 --- a/frontier_api/model/v1beta1_list_project_resources_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectResourcesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class resources( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Resource'], typing.List['V1beta1Resource']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resources': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Resource': - return super().__getitem__(i) - __annotations__ = { - "resources": resources, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resources"]) -> MetaOapg.properties.resources: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resources"]) -> typing.Union[MetaOapg.properties.resources, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resources: typing.Union[MetaOapg.properties.resources, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectResourcesResponse': - return super().__new__( - cls, - *_args, - resources=resources, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_list_project_service_users_response.py b/frontier_api/model/v1beta1_list_project_service_users_response.py deleted file mode 100644 index ec91bb6..0000000 --- a/frontier_api/model/v1beta1_list_project_service_users_response.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectServiceUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class serviceusers( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUser'], typing.List['V1beta1ServiceUser']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'serviceusers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUser': - return super().__getitem__(i) - - - class rolePairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListProjectServiceUsersResponseRolePair']: - return V1beta1ListProjectServiceUsersResponseRolePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListProjectServiceUsersResponseRolePair'], typing.List['V1beta1ListProjectServiceUsersResponseRolePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rolePairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListProjectServiceUsersResponseRolePair': - return super().__getitem__(i) - __annotations__ = { - "serviceusers": serviceusers, - "rolePairs": rolePairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceusers"]) -> MetaOapg.properties.serviceusers: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rolePairs"]) -> MetaOapg.properties.rolePairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceusers", "rolePairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceusers"]) -> typing.Union[MetaOapg.properties.serviceusers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rolePairs"]) -> typing.Union[MetaOapg.properties.rolePairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceusers", "rolePairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceusers: typing.Union[MetaOapg.properties.serviceusers, list, tuple, schemas.Unset] = schemas.unset, - rolePairs: typing.Union[MetaOapg.properties.rolePairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectServiceUsersResponse': - return super().__new__( - cls, - *_args, - serviceusers=serviceusers, - rolePairs=rolePairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_list_project_service_users_response.pyi b/frontier_api/model/v1beta1_list_project_service_users_response.pyi deleted file mode 100644 index ec91bb6..0000000 --- a/frontier_api/model/v1beta1_list_project_service_users_response.pyi +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectServiceUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class serviceusers( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUser'], typing.List['V1beta1ServiceUser']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'serviceusers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUser': - return super().__getitem__(i) - - - class rolePairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListProjectServiceUsersResponseRolePair']: - return V1beta1ListProjectServiceUsersResponseRolePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListProjectServiceUsersResponseRolePair'], typing.List['V1beta1ListProjectServiceUsersResponseRolePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rolePairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListProjectServiceUsersResponseRolePair': - return super().__getitem__(i) - __annotations__ = { - "serviceusers": serviceusers, - "rolePairs": rolePairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceusers"]) -> MetaOapg.properties.serviceusers: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rolePairs"]) -> MetaOapg.properties.rolePairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceusers", "rolePairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceusers"]) -> typing.Union[MetaOapg.properties.serviceusers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rolePairs"]) -> typing.Union[MetaOapg.properties.rolePairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceusers", "rolePairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceusers: typing.Union[MetaOapg.properties.serviceusers, list, tuple, schemas.Unset] = schemas.unset, - rolePairs: typing.Union[MetaOapg.properties.rolePairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectServiceUsersResponse': - return super().__new__( - cls, - *_args, - serviceusers=serviceusers, - rolePairs=rolePairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_list_project_service_users_response_role_pair.py b/frontier_api/model/v1beta1_list_project_service_users_response_role_pair.py deleted file mode 100644 index 0605514..0000000 --- a/frontier_api/model/v1beta1_list_project_service_users_response_role_pair.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectServiceUsersResponseRolePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - serviceuserId = schemas.StrSchema - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "serviceuserId": serviceuserId, - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuserId"]) -> MetaOapg.properties.serviceuserId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceuserId", "roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuserId"]) -> typing.Union[MetaOapg.properties.serviceuserId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceuserId", "roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceuserId: typing.Union[MetaOapg.properties.serviceuserId, str, schemas.Unset] = schemas.unset, - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectServiceUsersResponseRolePair': - return super().__new__( - cls, - *_args, - serviceuserId=serviceuserId, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_project_service_users_response_role_pair.pyi b/frontier_api/model/v1beta1_list_project_service_users_response_role_pair.pyi deleted file mode 100644 index 0605514..0000000 --- a/frontier_api/model/v1beta1_list_project_service_users_response_role_pair.pyi +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectServiceUsersResponseRolePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - serviceuserId = schemas.StrSchema - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "serviceuserId": serviceuserId, - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceuserId"]) -> MetaOapg.properties.serviceuserId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceuserId", "roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceuserId"]) -> typing.Union[MetaOapg.properties.serviceuserId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceuserId", "roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceuserId: typing.Union[MetaOapg.properties.serviceuserId, str, schemas.Unset] = schemas.unset, - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectServiceUsersResponseRolePair': - return super().__new__( - cls, - *_args, - serviceuserId=serviceuserId, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_project_users_response.py b/frontier_api/model/v1beta1_list_project_users_response.py deleted file mode 100644 index bfa923f..0000000 --- a/frontier_api/model/v1beta1_list_project_users_response.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - - - class rolePairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListProjectUsersResponseRolePair']: - return V1beta1ListProjectUsersResponseRolePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListProjectUsersResponseRolePair'], typing.List['V1beta1ListProjectUsersResponseRolePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rolePairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListProjectUsersResponseRolePair': - return super().__getitem__(i) - __annotations__ = { - "users": users, - "rolePairs": rolePairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rolePairs"]) -> MetaOapg.properties.rolePairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rolePairs"]) -> typing.Union[MetaOapg.properties.rolePairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - rolePairs: typing.Union[MetaOapg.properties.rolePairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - rolePairs=rolePairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_project_users_response.pyi b/frontier_api/model/v1beta1_list_project_users_response.pyi deleted file mode 100644 index bfa923f..0000000 --- a/frontier_api/model/v1beta1_list_project_users_response.pyi +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - - - class rolePairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListProjectUsersResponseRolePair']: - return V1beta1ListProjectUsersResponseRolePair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListProjectUsersResponseRolePair'], typing.List['V1beta1ListProjectUsersResponseRolePair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'rolePairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListProjectUsersResponseRolePair': - return super().__getitem__(i) - __annotations__ = { - "users": users, - "rolePairs": rolePairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["rolePairs"]) -> MetaOapg.properties.rolePairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["rolePairs"]) -> typing.Union[MetaOapg.properties.rolePairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["users", "rolePairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - rolePairs: typing.Union[MetaOapg.properties.rolePairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectUsersResponse': - return super().__new__( - cls, - *_args, - users=users, - rolePairs=rolePairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_project_users_response_role_pair.py b/frontier_api/model/v1beta1_list_project_users_response_role_pair.py deleted file mode 100644 index a53957e..0000000 --- a/frontier_api/model/v1beta1_list_project_users_response_role_pair.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectUsersResponseRolePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - userId = schemas.StrSchema - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "userId": userId, - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectUsersResponseRolePair': - return super().__new__( - cls, - *_args, - userId=userId, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_project_users_response_role_pair.pyi b/frontier_api/model/v1beta1_list_project_users_response_role_pair.pyi deleted file mode 100644 index a53957e..0000000 --- a/frontier_api/model/v1beta1_list_project_users_response_role_pair.pyi +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectUsersResponseRolePair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - userId = schemas.StrSchema - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "userId": userId, - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userId"]) -> MetaOapg.properties.userId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userId"]) -> typing.Union[MetaOapg.properties.userId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userId", "roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userId: typing.Union[MetaOapg.properties.userId, str, schemas.Unset] = schemas.unset, - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectUsersResponseRolePair': - return super().__new__( - cls, - *_args, - userId=userId, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_projects_by_current_user_response.py b/frontier_api/model/v1beta1_list_projects_by_current_user_response.py deleted file mode 100644 index 89a8385..0000000 --- a/frontier_api/model/v1beta1_list_projects_by_current_user_response.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsByCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - - - class accessPairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListProjectsByCurrentUserResponseAccessPair']: - return V1beta1ListProjectsByCurrentUserResponseAccessPair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListProjectsByCurrentUserResponseAccessPair'], typing.List['V1beta1ListProjectsByCurrentUserResponseAccessPair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'accessPairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListProjectsByCurrentUserResponseAccessPair': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - "accessPairs": accessPairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accessPairs"]) -> MetaOapg.properties.accessPairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", "accessPairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accessPairs"]) -> typing.Union[MetaOapg.properties.accessPairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", "accessPairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - accessPairs: typing.Union[MetaOapg.properties.accessPairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsByCurrentUserResponse': - return super().__new__( - cls, - *_args, - projects=projects, - accessPairs=accessPairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_projects_by_current_user_response.pyi b/frontier_api/model/v1beta1_list_projects_by_current_user_response.pyi deleted file mode 100644 index 89a8385..0000000 --- a/frontier_api/model/v1beta1_list_projects_by_current_user_response.pyi +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsByCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - - - class accessPairs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ListProjectsByCurrentUserResponseAccessPair']: - return V1beta1ListProjectsByCurrentUserResponseAccessPair - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ListProjectsByCurrentUserResponseAccessPair'], typing.List['V1beta1ListProjectsByCurrentUserResponseAccessPair']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'accessPairs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ListProjectsByCurrentUserResponseAccessPair': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - "accessPairs": accessPairs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["accessPairs"]) -> MetaOapg.properties.accessPairs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", "accessPairs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["accessPairs"]) -> typing.Union[MetaOapg.properties.accessPairs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", "accessPairs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - accessPairs: typing.Union[MetaOapg.properties.accessPairs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsByCurrentUserResponse': - return super().__new__( - cls, - *_args, - projects=projects, - accessPairs=accessPairs, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.py b/frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.py deleted file mode 100644 index 829c9ee..0000000 --- a/frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsByCurrentUserResponseAccessPair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - projectId = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "projectId": projectId, - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projectId"]) -> MetaOapg.properties.projectId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projectId", "permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projectId"]) -> typing.Union[MetaOapg.properties.projectId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projectId", "permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projectId: typing.Union[MetaOapg.properties.projectId, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsByCurrentUserResponseAccessPair': - return super().__new__( - cls, - *_args, - projectId=projectId, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.pyi b/frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.pyi deleted file mode 100644 index 829c9ee..0000000 --- a/frontier_api/model/v1beta1_list_projects_by_current_user_response_access_pair.pyi +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsByCurrentUserResponseAccessPair( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - projectId = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "projectId": projectId, - "permissions": permissions, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projectId"]) -> MetaOapg.properties.projectId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projectId", "permissions", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projectId"]) -> typing.Union[MetaOapg.properties.projectId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projectId", "permissions", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projectId: typing.Union[MetaOapg.properties.projectId, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsByCurrentUserResponseAccessPair': - return super().__new__( - cls, - *_args, - projectId=projectId, - permissions=permissions, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_list_projects_by_user_response.py b/frontier_api/model/v1beta1_list_projects_by_user_response.py deleted file mode 100644 index 729f1ab..0000000 --- a/frontier_api/model/v1beta1_list_projects_by_user_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsByUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsByUserResponse': - return super().__new__( - cls, - *_args, - projects=projects, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_projects_by_user_response.pyi b/frontier_api/model/v1beta1_list_projects_by_user_response.pyi deleted file mode 100644 index 729f1ab..0000000 --- a/frontier_api/model/v1beta1_list_projects_by_user_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsByUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsByUserResponse': - return super().__new__( - cls, - *_args, - projects=projects, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_projects_response.py b/frontier_api/model/v1beta1_list_projects_response.py deleted file mode 100644 index ac9ba22..0000000 --- a/frontier_api/model/v1beta1_list_projects_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsResponse': - return super().__new__( - cls, - *_args, - projects=projects, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_projects_response.pyi b/frontier_api/model/v1beta1_list_projects_response.pyi deleted file mode 100644 index ac9ba22..0000000 --- a/frontier_api/model/v1beta1_list_projects_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListProjectsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class projects( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Project']: - return V1beta1Project - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Project'], typing.List['V1beta1Project']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'projects': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Project': - return super().__getitem__(i) - __annotations__ = { - "projects": projects, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projects"]) -> MetaOapg.properties.projects: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projects"]) -> typing.Union[MetaOapg.properties.projects, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["projects", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - projects: typing.Union[MetaOapg.properties.projects, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListProjectsResponse': - return super().__new__( - cls, - *_args, - projects=projects, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_list_relations_response.py b/frontier_api/model/v1beta1_list_relations_response.py deleted file mode 100644 index bdad4df..0000000 --- a/frontier_api/model/v1beta1_list_relations_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListRelationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class relations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Relation']: - return V1beta1Relation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Relation'], typing.List['V1beta1Relation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'relations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Relation': - return super().__getitem__(i) - __annotations__ = { - "relations": relations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relations"]) -> MetaOapg.properties.relations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["relations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relations"]) -> typing.Union[MetaOapg.properties.relations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["relations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - relations: typing.Union[MetaOapg.properties.relations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListRelationsResponse': - return super().__new__( - cls, - *_args, - relations=relations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_relation import V1beta1Relation diff --git a/frontier_api/model/v1beta1_list_relations_response.pyi b/frontier_api/model/v1beta1_list_relations_response.pyi deleted file mode 100644 index bdad4df..0000000 --- a/frontier_api/model/v1beta1_list_relations_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListRelationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class relations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Relation']: - return V1beta1Relation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Relation'], typing.List['V1beta1Relation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'relations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Relation': - return super().__getitem__(i) - __annotations__ = { - "relations": relations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relations"]) -> MetaOapg.properties.relations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["relations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relations"]) -> typing.Union[MetaOapg.properties.relations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["relations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - relations: typing.Union[MetaOapg.properties.relations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListRelationsResponse': - return super().__new__( - cls, - *_args, - relations=relations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_relation import V1beta1Relation diff --git a/frontier_api/model/v1beta1_list_resources_response.py b/frontier_api/model/v1beta1_list_resources_response.py deleted file mode 100644 index d8f1e82..0000000 --- a/frontier_api/model/v1beta1_list_resources_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListResourcesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class resources( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Resource'], typing.List['V1beta1Resource']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resources': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Resource': - return super().__getitem__(i) - __annotations__ = { - "resources": resources, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resources"]) -> MetaOapg.properties.resources: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resources"]) -> typing.Union[MetaOapg.properties.resources, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resources: typing.Union[MetaOapg.properties.resources, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListResourcesResponse': - return super().__new__( - cls, - *_args, - resources=resources, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_list_resources_response.pyi b/frontier_api/model/v1beta1_list_resources_response.pyi deleted file mode 100644 index d8f1e82..0000000 --- a/frontier_api/model/v1beta1_list_resources_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListResourcesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class resources( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Resource'], typing.List['V1beta1Resource']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'resources': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Resource': - return super().__getitem__(i) - __annotations__ = { - "resources": resources, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resources"]) -> MetaOapg.properties.resources: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resources"]) -> typing.Union[MetaOapg.properties.resources, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resources", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resources: typing.Union[MetaOapg.properties.resources, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListResourcesResponse': - return super().__new__( - cls, - *_args, - resources=resources, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_list_roles_response.py b/frontier_api/model/v1beta1_list_roles_response.py deleted file mode 100644 index f8a3da2..0000000 --- a/frontier_api/model/v1beta1_list_roles_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListRolesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListRolesResponse': - return super().__new__( - cls, - *_args, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_roles_response.pyi b/frontier_api/model/v1beta1_list_roles_response.pyi deleted file mode 100644 index f8a3da2..0000000 --- a/frontier_api/model/v1beta1_list_roles_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListRolesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class roles( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Role']: - return V1beta1Role - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Role'], typing.List['V1beta1Role']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roles': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Role': - return super().__getitem__(i) - __annotations__ = { - "roles": roles, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roles"]) -> MetaOapg.properties.roles: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roles"]) -> typing.Union[MetaOapg.properties.roles, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["roles", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - roles: typing.Union[MetaOapg.properties.roles, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListRolesResponse': - return super().__new__( - cls, - *_args, - roles=roles, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_list_service_user_keys_response.py b/frontier_api/model/v1beta1_list_service_user_keys_response.py deleted file mode 100644 index 86502d0..0000000 --- a/frontier_api/model/v1beta1_list_service_user_keys_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListServiceUserKeysResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class keys( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUserKey']: - return V1beta1ServiceUserKey - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUserKey'], typing.List['V1beta1ServiceUserKey']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'keys': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUserKey': - return super().__getitem__(i) - __annotations__ = { - "keys": keys, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["keys"]) -> MetaOapg.properties.keys: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["keys"]) -> typing.Union[MetaOapg.properties.keys, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - keys: typing.Union[MetaOapg.properties.keys, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListServiceUserKeysResponse': - return super().__new__( - cls, - *_args, - keys=keys, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user_key import V1beta1ServiceUserKey diff --git a/frontier_api/model/v1beta1_list_service_user_keys_response.pyi b/frontier_api/model/v1beta1_list_service_user_keys_response.pyi deleted file mode 100644 index 86502d0..0000000 --- a/frontier_api/model/v1beta1_list_service_user_keys_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListServiceUserKeysResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class keys( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUserKey']: - return V1beta1ServiceUserKey - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUserKey'], typing.List['V1beta1ServiceUserKey']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'keys': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUserKey': - return super().__getitem__(i) - __annotations__ = { - "keys": keys, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["keys"]) -> MetaOapg.properties.keys: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["keys"]) -> typing.Union[MetaOapg.properties.keys, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keys", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - keys: typing.Union[MetaOapg.properties.keys, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListServiceUserKeysResponse': - return super().__new__( - cls, - *_args, - keys=keys, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user_key import V1beta1ServiceUserKey diff --git a/frontier_api/model/v1beta1_list_service_user_secrets_response.py b/frontier_api/model/v1beta1_list_service_user_secrets_response.py deleted file mode 100644 index 8d0cc2b..0000000 --- a/frontier_api/model/v1beta1_list_service_user_secrets_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListServiceUserSecretsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class secrets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1SecretCredential']: - return V1beta1SecretCredential - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1SecretCredential'], typing.List['V1beta1SecretCredential']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'secrets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1SecretCredential': - return super().__getitem__(i) - __annotations__ = { - "secrets": secrets, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["secrets"]) -> MetaOapg.properties.secrets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["secrets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["secrets"]) -> typing.Union[MetaOapg.properties.secrets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["secrets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - secrets: typing.Union[MetaOapg.properties.secrets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListServiceUserSecretsResponse': - return super().__new__( - cls, - *_args, - secrets=secrets, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_secret_credential import V1beta1SecretCredential diff --git a/frontier_api/model/v1beta1_list_service_user_secrets_response.pyi b/frontier_api/model/v1beta1_list_service_user_secrets_response.pyi deleted file mode 100644 index 8d0cc2b..0000000 --- a/frontier_api/model/v1beta1_list_service_user_secrets_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListServiceUserSecretsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class secrets( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1SecretCredential']: - return V1beta1SecretCredential - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1SecretCredential'], typing.List['V1beta1SecretCredential']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'secrets': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1SecretCredential': - return super().__getitem__(i) - __annotations__ = { - "secrets": secrets, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["secrets"]) -> MetaOapg.properties.secrets: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["secrets", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["secrets"]) -> typing.Union[MetaOapg.properties.secrets, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["secrets", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - secrets: typing.Union[MetaOapg.properties.secrets, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListServiceUserSecretsResponse': - return super().__new__( - cls, - *_args, - secrets=secrets, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_secret_credential import V1beta1SecretCredential diff --git a/frontier_api/model/v1beta1_list_service_users_response.py b/frontier_api/model/v1beta1_list_service_users_response.py deleted file mode 100644 index d4c7455..0000000 --- a/frontier_api/model/v1beta1_list_service_users_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListServiceUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class serviceusers( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUser'], typing.List['V1beta1ServiceUser']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'serviceusers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUser': - return super().__getitem__(i) - __annotations__ = { - "serviceusers": serviceusers, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceusers"]) -> MetaOapg.properties.serviceusers: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceusers"]) -> typing.Union[MetaOapg.properties.serviceusers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceusers: typing.Union[MetaOapg.properties.serviceusers, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListServiceUsersResponse': - return super().__new__( - cls, - *_args, - serviceusers=serviceusers, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_list_service_users_response.pyi b/frontier_api/model/v1beta1_list_service_users_response.pyi deleted file mode 100644 index d4c7455..0000000 --- a/frontier_api/model/v1beta1_list_service_users_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListServiceUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class serviceusers( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1ServiceUser']: - return V1beta1ServiceUser - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1ServiceUser'], typing.List['V1beta1ServiceUser']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'serviceusers': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1ServiceUser': - return super().__getitem__(i) - __annotations__ = { - "serviceusers": serviceusers, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["serviceusers"]) -> MetaOapg.properties.serviceusers: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["serviceusers"]) -> typing.Union[MetaOapg.properties.serviceusers, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["serviceusers", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - serviceusers: typing.Union[MetaOapg.properties.serviceusers, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListServiceUsersResponse': - return super().__new__( - cls, - *_args, - serviceusers=serviceusers, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser diff --git a/frontier_api/model/v1beta1_list_user_groups_response.py b/frontier_api/model/v1beta1_list_user_groups_response.py deleted file mode 100644 index fe29e90..0000000 --- a/frontier_api/model/v1beta1_list_user_groups_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUserGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUserGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_list_user_groups_response.pyi b/frontier_api/model/v1beta1_list_user_groups_response.pyi deleted file mode 100644 index fe29e90..0000000 --- a/frontier_api/model/v1beta1_list_user_groups_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUserGroupsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class groups( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Group']: - return V1beta1Group - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Group'], typing.List['V1beta1Group']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groups': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Group': - return super().__getitem__(i) - __annotations__ = { - "groups": groups, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groups"]) -> MetaOapg.properties.groups: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groups"]) -> typing.Union[MetaOapg.properties.groups, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["groups", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - groups: typing.Union[MetaOapg.properties.groups, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUserGroupsResponse': - return super().__new__( - cls, - *_args, - groups=groups, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_list_user_invitations_response.py b/frontier_api/model/v1beta1_list_user_invitations_response.py deleted file mode 100644 index d763836..0000000 --- a/frontier_api/model/v1beta1_list_user_invitations_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUserInvitationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class invitations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Invitation'], typing.List['V1beta1Invitation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'invitations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Invitation': - return super().__getitem__(i) - __annotations__ = { - "invitations": invitations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitations"]) -> MetaOapg.properties.invitations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitations"]) -> typing.Union[MetaOapg.properties.invitations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitations: typing.Union[MetaOapg.properties.invitations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUserInvitationsResponse': - return super().__new__( - cls, - *_args, - invitations=invitations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_list_user_invitations_response.pyi b/frontier_api/model/v1beta1_list_user_invitations_response.pyi deleted file mode 100644 index d763836..0000000 --- a/frontier_api/model/v1beta1_list_user_invitations_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUserInvitationsResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class invitations( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Invitation']: - return V1beta1Invitation - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Invitation'], typing.List['V1beta1Invitation']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'invitations': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Invitation': - return super().__getitem__(i) - __annotations__ = { - "invitations": invitations, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["invitations"]) -> MetaOapg.properties.invitations: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["invitations"]) -> typing.Union[MetaOapg.properties.invitations, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["invitations", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - invitations: typing.Union[MetaOapg.properties.invitations, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUserInvitationsResponse': - return super().__new__( - cls, - *_args, - invitations=invitations, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_invitation import V1beta1Invitation diff --git a/frontier_api/model/v1beta1_list_user_preferences_response.py b/frontier_api/model/v1beta1_list_user_preferences_response.py deleted file mode 100644 index d288a62..0000000 --- a/frontier_api/model/v1beta1_list_user_preferences_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_user_preferences_response.pyi b/frontier_api/model/v1beta1_list_user_preferences_response.pyi deleted file mode 100644 index d288a62..0000000 --- a/frontier_api/model/v1beta1_list_user_preferences_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUserPreferencesResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class preferences( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Preference']: - return V1beta1Preference - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Preference'], typing.List['V1beta1Preference']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'preferences': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Preference': - return super().__getitem__(i) - __annotations__ = { - "preferences": preferences, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["preferences"]) -> MetaOapg.properties.preferences: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["preferences"]) -> typing.Union[MetaOapg.properties.preferences, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["preferences", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - preferences: typing.Union[MetaOapg.properties.preferences, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUserPreferencesResponse': - return super().__new__( - cls, - *_args, - preferences=preferences, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_preference import V1beta1Preference diff --git a/frontier_api/model/v1beta1_list_users_response.py b/frontier_api/model/v1beta1_list_users_response.py deleted file mode 100644 index 9d621d6..0000000 --- a/frontier_api/model/v1beta1_list_users_response.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - count = schemas.Int32Schema - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "count": count, - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["count"]) -> MetaOapg.properties.count: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["count"]) -> typing.Union[MetaOapg.properties.count, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - count: typing.Union[MetaOapg.properties.count, decimal.Decimal, int, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUsersResponse': - return super().__new__( - cls, - *_args, - count=count, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_list_users_response.pyi b/frontier_api/model/v1beta1_list_users_response.pyi deleted file mode 100644 index 9d621d6..0000000 --- a/frontier_api/model/v1beta1_list_users_response.pyi +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ListUsersResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - count = schemas.Int32Schema - - - class users( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1User']: - return V1beta1User - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1User'], typing.List['V1beta1User']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'users': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1User': - return super().__getitem__(i) - __annotations__ = { - "count": count, - "users": users, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["count"]) -> MetaOapg.properties.count: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["users"]) -> MetaOapg.properties.users: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["count"]) -> typing.Union[MetaOapg.properties.count, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["users"]) -> typing.Union[MetaOapg.properties.users, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["count", "users", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - count: typing.Union[MetaOapg.properties.count, decimal.Decimal, int, schemas.Unset] = schemas.unset, - users: typing.Union[MetaOapg.properties.users, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ListUsersResponse': - return super().__new__( - cls, - *_args, - count=count, - users=users, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_meta_schema.py b/frontier_api/model/v1beta1_meta_schema.py deleted file mode 100644 index c3c10d6..0000000 --- a/frontier_api/model/v1beta1_meta_schema.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1MetaSchema( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - schema = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "schema": schema, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema"]) -> MetaOapg.properties.schema: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "schema", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema"]) -> typing.Union[MetaOapg.properties.schema, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "schema", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - schema: typing.Union[MetaOapg.properties.schema, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1MetaSchema': - return super().__new__( - cls, - *_args, - id=id, - name=name, - schema=schema, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_meta_schema.pyi b/frontier_api/model/v1beta1_meta_schema.pyi deleted file mode 100644 index c3c10d6..0000000 --- a/frontier_api/model/v1beta1_meta_schema.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1MetaSchema( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - schema = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "schema": schema, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema"]) -> MetaOapg.properties.schema: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "schema", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema"]) -> typing.Union[MetaOapg.properties.schema, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "schema", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - schema: typing.Union[MetaOapg.properties.schema, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1MetaSchema': - return super().__new__( - cls, - *_args, - id=id, - name=name, - schema=schema, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_meta_schema_request_body.py b/frontier_api/model/v1beta1_meta_schema_request_body.py deleted file mode 100644 index d53cec2..0000000 --- a/frontier_api/model/v1beta1_meta_schema_request_body.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1MetaSchemaRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "schema", - "name", - } - - class properties: - name = schemas.StrSchema - schema = schemas.StrSchema - __annotations__ = { - "name": name, - "schema": schema, - } - - schema: MetaOapg.properties.schema - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema"]) -> MetaOapg.properties.schema: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "schema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema"]) -> MetaOapg.properties.schema: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "schema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - schema: typing.Union[MetaOapg.properties.schema, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1MetaSchemaRequestBody': - return super().__new__( - cls, - *_args, - schema=schema, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_meta_schema_request_body.pyi b/frontier_api/model/v1beta1_meta_schema_request_body.pyi deleted file mode 100644 index d53cec2..0000000 --- a/frontier_api/model/v1beta1_meta_schema_request_body.pyi +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1MetaSchemaRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "schema", - "name", - } - - class properties: - name = schemas.StrSchema - schema = schemas.StrSchema - __annotations__ = { - "name": name, - "schema": schema, - } - - schema: MetaOapg.properties.schema - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["schema"]) -> MetaOapg.properties.schema: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "schema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["schema"]) -> MetaOapg.properties.schema: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "schema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - schema: typing.Union[MetaOapg.properties.schema, str, ], - name: typing.Union[MetaOapg.properties.name, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1MetaSchemaRequestBody': - return super().__new__( - cls, - *_args, - schema=schema, - name=name, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_namespace.py b/frontier_api/model/v1beta1_namespace.py deleted file mode 100644 index 59a4d6a..0000000 --- a/frontier_api/model/v1beta1_namespace.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Namespace( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "metadata", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "metadata", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Namespace': - return super().__new__( - cls, - *_args, - id=id, - name=name, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_namespace.pyi b/frontier_api/model/v1beta1_namespace.pyi deleted file mode 100644 index 59a4d6a..0000000 --- a/frontier_api/model/v1beta1_namespace.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Namespace( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "metadata", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "metadata", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Namespace': - return super().__new__( - cls, - *_args, - id=id, - name=name, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_organization.py b/frontier_api/model/v1beta1_organization.py deleted file mode 100644 index 0f52930..0000000 --- a/frontier_api/model/v1beta1_organization.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Organization( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - state = schemas.StrSchema - avatar = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "state": state, - "avatar": avatar, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Organization': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - state=state, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_organization.pyi b/frontier_api/model/v1beta1_organization.pyi deleted file mode 100644 index 0f52930..0000000 --- a/frontier_api/model/v1beta1_organization.pyi +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Organization( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - state = schemas.StrSchema - avatar = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "state": state, - "avatar": avatar, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Organization': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - state=state, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_organization_request_body.py b/frontier_api/model/v1beta1_organization_request_body.py deleted file mode 100644 index 608d302..0000000 --- a/frontier_api/model/v1beta1_organization_request_body.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1OrganizationRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - avatar = schemas.StrSchema - __annotations__ = { - "name": name, - "title": title, - "metadata": metadata, - "avatar": avatar, - } - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1OrganizationRequestBody': - return super().__new__( - cls, - *_args, - name=name, - title=title, - metadata=metadata, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_organization_request_body.pyi b/frontier_api/model/v1beta1_organization_request_body.pyi deleted file mode 100644 index 608d302..0000000 --- a/frontier_api/model/v1beta1_organization_request_body.pyi +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1OrganizationRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - } - - class properties: - name = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - avatar = schemas.StrSchema - __annotations__ = { - "name": name, - "title": title, - "metadata": metadata, - "avatar": avatar, - } - - name: MetaOapg.properties.name - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "title", "metadata", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1OrganizationRequestBody': - return super().__new__( - cls, - *_args, - name=name, - title=title, - metadata=metadata, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_permission.py b/frontier_api/model/v1beta1_permission.py deleted file mode 100644 index 45cdc04..0000000 --- a/frontier_api/model/v1beta1_permission.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Permission( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - namespace = schemas.StrSchema - metadata = schemas.DictSchema - key = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "createdAt": createdAt, - "updatedAt": updatedAt, - "namespace": namespace, - "metadata": metadata, - "key": key, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "createdAt", "updatedAt", "namespace", "metadata", "key", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union[MetaOapg.properties.namespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "createdAt", "updatedAt", "namespace", "metadata", "key", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - namespace: typing.Union[MetaOapg.properties.namespace, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Permission': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - createdAt=createdAt, - updatedAt=updatedAt, - namespace=namespace, - metadata=metadata, - key=key, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_permission.pyi b/frontier_api/model/v1beta1_permission.pyi deleted file mode 100644 index 45cdc04..0000000 --- a/frontier_api/model/v1beta1_permission.pyi +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Permission( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - namespace = schemas.StrSchema - metadata = schemas.DictSchema - key = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "createdAt": createdAt, - "updatedAt": updatedAt, - "namespace": namespace, - "metadata": metadata, - "key": key, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "createdAt", "updatedAt", "namespace", "metadata", "key", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union[MetaOapg.properties.namespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "createdAt", "updatedAt", "namespace", "metadata", "key", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - namespace: typing.Union[MetaOapg.properties.namespace, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Permission': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - createdAt=createdAt, - updatedAt=updatedAt, - namespace=namespace, - metadata=metadata, - key=key, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_permission_request_body.py b/frontier_api/model/v1beta1_permission_request_body.py deleted file mode 100644 index 801159c..0000000 --- a/frontier_api/model/v1beta1_permission_request_body.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PermissionRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - namespace = schemas.StrSchema - metadata = schemas.DictSchema - title = schemas.StrSchema - key = schemas.StrSchema - __annotations__ = { - "name": name, - "namespace": namespace, - "metadata": metadata, - "title": title, - "key": key, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "metadata", "title", "key", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union[MetaOapg.properties.namespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "metadata", "title", "key", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - namespace: typing.Union[MetaOapg.properties.namespace, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PermissionRequestBody': - return super().__new__( - cls, - *_args, - name=name, - namespace=namespace, - metadata=metadata, - title=title, - key=key, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_permission_request_body.pyi b/frontier_api/model/v1beta1_permission_request_body.pyi deleted file mode 100644 index 801159c..0000000 --- a/frontier_api/model/v1beta1_permission_request_body.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PermissionRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - namespace = schemas.StrSchema - metadata = schemas.DictSchema - title = schemas.StrSchema - key = schemas.StrSchema - __annotations__ = { - "name": name, - "namespace": namespace, - "metadata": metadata, - "title": title, - "key": key, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["key"]) -> MetaOapg.properties.key: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "metadata", "title", "key", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union[MetaOapg.properties.namespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["key"]) -> typing.Union[MetaOapg.properties.key, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "metadata", "title", "key", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - namespace: typing.Union[MetaOapg.properties.namespace, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - key: typing.Union[MetaOapg.properties.key, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PermissionRequestBody': - return super().__new__( - cls, - *_args, - name=name, - namespace=namespace, - metadata=metadata, - title=title, - key=key, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_policy.py b/frontier_api/model/v1beta1_policy.py deleted file mode 100644 index e3d93b0..0000000 --- a/frontier_api/model/v1beta1_policy.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Policy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - roleId = schemas.StrSchema - resource = schemas.StrSchema - principal = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "id": id, - "title": title, - "createdAt": createdAt, - "updatedAt": updatedAt, - "roleId": roleId, - "resource": resource, - "principal": principal, - "metadata": metadata, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleId"]) -> MetaOapg.properties.roleId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "createdAt", "updatedAt", "roleId", "resource", "principal", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleId"]) -> typing.Union[MetaOapg.properties.roleId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union[MetaOapg.properties.resource, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> typing.Union[MetaOapg.properties.principal, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "createdAt", "updatedAt", "roleId", "resource", "principal", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - roleId: typing.Union[MetaOapg.properties.roleId, str, schemas.Unset] = schemas.unset, - resource: typing.Union[MetaOapg.properties.resource, str, schemas.Unset] = schemas.unset, - principal: typing.Union[MetaOapg.properties.principal, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Policy': - return super().__new__( - cls, - *_args, - id=id, - title=title, - createdAt=createdAt, - updatedAt=updatedAt, - roleId=roleId, - resource=resource, - principal=principal, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_policy.pyi b/frontier_api/model/v1beta1_policy.pyi deleted file mode 100644 index e3d93b0..0000000 --- a/frontier_api/model/v1beta1_policy.pyi +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Policy( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - roleId = schemas.StrSchema - resource = schemas.StrSchema - principal = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "id": id, - "title": title, - "createdAt": createdAt, - "updatedAt": updatedAt, - "roleId": roleId, - "resource": resource, - "principal": principal, - "metadata": metadata, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleId"]) -> MetaOapg.properties.roleId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "createdAt", "updatedAt", "roleId", "resource", "principal", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleId"]) -> typing.Union[MetaOapg.properties.roleId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union[MetaOapg.properties.resource, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> typing.Union[MetaOapg.properties.principal, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "createdAt", "updatedAt", "roleId", "resource", "principal", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - roleId: typing.Union[MetaOapg.properties.roleId, str, schemas.Unset] = schemas.unset, - resource: typing.Union[MetaOapg.properties.resource, str, schemas.Unset] = schemas.unset, - principal: typing.Union[MetaOapg.properties.principal, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Policy': - return super().__new__( - cls, - *_args, - id=id, - title=title, - createdAt=createdAt, - updatedAt=updatedAt, - roleId=roleId, - resource=resource, - principal=principal, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_policy_request_body.py b/frontier_api/model/v1beta1_policy_request_body.py deleted file mode 100644 index b4f3445..0000000 --- a/frontier_api/model/v1beta1_policy_request_body.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PolicyRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "principal", - "resource", - "roleId", - } - - class properties: - roleId = schemas.StrSchema - resource = schemas.StrSchema - principal = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "roleId": roleId, - "resource": resource, - "principal": principal, - "title": title, - "metadata": metadata, - } - - principal: MetaOapg.properties.principal - resource: MetaOapg.properties.resource - roleId: MetaOapg.properties.roleId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleId"]) -> MetaOapg.properties.roleId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["roleId", "resource", "principal", "title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleId"]) -> MetaOapg.properties.roleId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["roleId", "resource", "principal", "title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - principal: typing.Union[MetaOapg.properties.principal, str, ], - resource: typing.Union[MetaOapg.properties.resource, str, ], - roleId: typing.Union[MetaOapg.properties.roleId, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PolicyRequestBody': - return super().__new__( - cls, - *_args, - principal=principal, - resource=resource, - roleId=roleId, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_policy_request_body.pyi b/frontier_api/model/v1beta1_policy_request_body.pyi deleted file mode 100644 index b4f3445..0000000 --- a/frontier_api/model/v1beta1_policy_request_body.pyi +++ /dev/null @@ -1,128 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PolicyRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "principal", - "resource", - "roleId", - } - - class properties: - roleId = schemas.StrSchema - resource = schemas.StrSchema - principal = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "roleId": roleId, - "resource": resource, - "principal": principal, - "title": title, - "metadata": metadata, - } - - principal: MetaOapg.properties.principal - resource: MetaOapg.properties.resource - roleId: MetaOapg.properties.roleId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleId"]) -> MetaOapg.properties.roleId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["roleId", "resource", "principal", "title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleId"]) -> MetaOapg.properties.roleId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> MetaOapg.properties.resource: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["roleId", "resource", "principal", "title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - principal: typing.Union[MetaOapg.properties.principal, str, ], - resource: typing.Union[MetaOapg.properties.resource, str, ], - roleId: typing.Union[MetaOapg.properties.roleId, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PolicyRequestBody': - return super().__new__( - cls, - *_args, - principal=principal, - resource=resource, - roleId=roleId, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_preference.py b/frontier_api/model/v1beta1_preference.py deleted file mode 100644 index 07241d2..0000000 --- a/frontier_api/model/v1beta1_preference.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Preference( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - value = schemas.StrSchema - resourceId = schemas.StrSchema - resourceType = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "value": value, - "resourceId": resourceId, - "resourceType": resourceType, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resourceId"]) -> MetaOapg.properties.resourceId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resourceType"]) -> MetaOapg.properties.resourceType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "value", "resourceId", "resourceType", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> typing.Union[MetaOapg.properties.value, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resourceId"]) -> typing.Union[MetaOapg.properties.resourceId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resourceType"]) -> typing.Union[MetaOapg.properties.resourceType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "value", "resourceId", "resourceType", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - value: typing.Union[MetaOapg.properties.value, str, schemas.Unset] = schemas.unset, - resourceId: typing.Union[MetaOapg.properties.resourceId, str, schemas.Unset] = schemas.unset, - resourceType: typing.Union[MetaOapg.properties.resourceType, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Preference': - return super().__new__( - cls, - *_args, - id=id, - name=name, - value=value, - resourceId=resourceId, - resourceType=resourceType, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_preference.pyi b/frontier_api/model/v1beta1_preference.pyi deleted file mode 100644 index 07241d2..0000000 --- a/frontier_api/model/v1beta1_preference.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Preference( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - value = schemas.StrSchema - resourceId = schemas.StrSchema - resourceType = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "value": value, - "resourceId": resourceId, - "resourceType": resourceType, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resourceId"]) -> MetaOapg.properties.resourceId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resourceType"]) -> MetaOapg.properties.resourceType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "value", "resourceId", "resourceType", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> typing.Union[MetaOapg.properties.value, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resourceId"]) -> typing.Union[MetaOapg.properties.resourceId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resourceType"]) -> typing.Union[MetaOapg.properties.resourceType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "value", "resourceId", "resourceType", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - value: typing.Union[MetaOapg.properties.value, str, schemas.Unset] = schemas.unset, - resourceId: typing.Union[MetaOapg.properties.resourceId, str, schemas.Unset] = schemas.unset, - resourceType: typing.Union[MetaOapg.properties.resourceType, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Preference': - return super().__new__( - cls, - *_args, - id=id, - name=name, - value=value, - resourceId=resourceId, - resourceType=resourceType, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_preference_request_body.py b/frontier_api/model/v1beta1_preference_request_body.py deleted file mode 100644 index 540732c..0000000 --- a/frontier_api/model/v1beta1_preference_request_body.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PreferenceRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - value = schemas.StrSchema - __annotations__ = { - "name": name, - "value": value, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "value", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> typing.Union[MetaOapg.properties.value, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "value", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - value: typing.Union[MetaOapg.properties.value, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PreferenceRequestBody': - return super().__new__( - cls, - *_args, - name=name, - value=value, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_preference_request_body.pyi b/frontier_api/model/v1beta1_preference_request_body.pyi deleted file mode 100644 index 540732c..0000000 --- a/frontier_api/model/v1beta1_preference_request_body.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PreferenceRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - value = schemas.StrSchema - __annotations__ = { - "name": name, - "value": value, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "value", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> typing.Union[MetaOapg.properties.value, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "value", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - value: typing.Union[MetaOapg.properties.value, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PreferenceRequestBody': - return super().__new__( - cls, - *_args, - name=name, - value=value, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_preference_trait.py b/frontier_api/model/v1beta1_preference_trait.py deleted file mode 100644 index 60c82a5..0000000 --- a/frontier_api/model/v1beta1_preference_trait.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PreferenceTrait( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - resourceType = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - description = schemas.StrSchema - longDescription = schemas.StrSchema - heading = schemas.StrSchema - subHeading = schemas.StrSchema - breadcrumb = schemas.StrSchema - inputHints = schemas.StrSchema - text = schemas.StrSchema - textarea = schemas.StrSchema - select = schemas.StrSchema - combobox = schemas.StrSchema - checkbox = schemas.StrSchema - multiselect = schemas.StrSchema - number = schemas.StrSchema - __annotations__ = { - "resourceType": resourceType, - "name": name, - "title": title, - "description": description, - "longDescription": longDescription, - "heading": heading, - "subHeading": subHeading, - "breadcrumb": breadcrumb, - "inputHints": inputHints, - "text": text, - "textarea": textarea, - "select": select, - "combobox": combobox, - "checkbox": checkbox, - "multiselect": multiselect, - "number": number, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resourceType"]) -> MetaOapg.properties.resourceType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["longDescription"]) -> MetaOapg.properties.longDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["heading"]) -> MetaOapg.properties.heading: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subHeading"]) -> MetaOapg.properties.subHeading: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["breadcrumb"]) -> MetaOapg.properties.breadcrumb: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputHints"]) -> MetaOapg.properties.inputHints: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["text"]) -> MetaOapg.properties.text: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["textarea"]) -> MetaOapg.properties.textarea: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["select"]) -> MetaOapg.properties.select: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["combobox"]) -> MetaOapg.properties.combobox: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["checkbox"]) -> MetaOapg.properties.checkbox: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["multiselect"]) -> MetaOapg.properties.multiselect: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resourceType", "name", "title", "description", "longDescription", "heading", "subHeading", "breadcrumb", "inputHints", "text", "textarea", "select", "combobox", "checkbox", "multiselect", "number", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resourceType"]) -> typing.Union[MetaOapg.properties.resourceType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["longDescription"]) -> typing.Union[MetaOapg.properties.longDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["heading"]) -> typing.Union[MetaOapg.properties.heading, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subHeading"]) -> typing.Union[MetaOapg.properties.subHeading, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["breadcrumb"]) -> typing.Union[MetaOapg.properties.breadcrumb, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputHints"]) -> typing.Union[MetaOapg.properties.inputHints, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["text"]) -> typing.Union[MetaOapg.properties.text, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["textarea"]) -> typing.Union[MetaOapg.properties.textarea, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["select"]) -> typing.Union[MetaOapg.properties.select, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["combobox"]) -> typing.Union[MetaOapg.properties.combobox, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["checkbox"]) -> typing.Union[MetaOapg.properties.checkbox, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["multiselect"]) -> typing.Union[MetaOapg.properties.multiselect, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resourceType", "name", "title", "description", "longDescription", "heading", "subHeading", "breadcrumb", "inputHints", "text", "textarea", "select", "combobox", "checkbox", "multiselect", "number", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resourceType: typing.Union[MetaOapg.properties.resourceType, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - longDescription: typing.Union[MetaOapg.properties.longDescription, str, schemas.Unset] = schemas.unset, - heading: typing.Union[MetaOapg.properties.heading, str, schemas.Unset] = schemas.unset, - subHeading: typing.Union[MetaOapg.properties.subHeading, str, schemas.Unset] = schemas.unset, - breadcrumb: typing.Union[MetaOapg.properties.breadcrumb, str, schemas.Unset] = schemas.unset, - inputHints: typing.Union[MetaOapg.properties.inputHints, str, schemas.Unset] = schemas.unset, - text: typing.Union[MetaOapg.properties.text, str, schemas.Unset] = schemas.unset, - textarea: typing.Union[MetaOapg.properties.textarea, str, schemas.Unset] = schemas.unset, - select: typing.Union[MetaOapg.properties.select, str, schemas.Unset] = schemas.unset, - combobox: typing.Union[MetaOapg.properties.combobox, str, schemas.Unset] = schemas.unset, - checkbox: typing.Union[MetaOapg.properties.checkbox, str, schemas.Unset] = schemas.unset, - multiselect: typing.Union[MetaOapg.properties.multiselect, str, schemas.Unset] = schemas.unset, - number: typing.Union[MetaOapg.properties.number, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PreferenceTrait': - return super().__new__( - cls, - *_args, - resourceType=resourceType, - name=name, - title=title, - description=description, - longDescription=longDescription, - heading=heading, - subHeading=subHeading, - breadcrumb=breadcrumb, - inputHints=inputHints, - text=text, - textarea=textarea, - select=select, - combobox=combobox, - checkbox=checkbox, - multiselect=multiselect, - number=number, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_preference_trait.pyi b/frontier_api/model/v1beta1_preference_trait.pyi deleted file mode 100644 index 60c82a5..0000000 --- a/frontier_api/model/v1beta1_preference_trait.pyi +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1PreferenceTrait( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - resourceType = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - description = schemas.StrSchema - longDescription = schemas.StrSchema - heading = schemas.StrSchema - subHeading = schemas.StrSchema - breadcrumb = schemas.StrSchema - inputHints = schemas.StrSchema - text = schemas.StrSchema - textarea = schemas.StrSchema - select = schemas.StrSchema - combobox = schemas.StrSchema - checkbox = schemas.StrSchema - multiselect = schemas.StrSchema - number = schemas.StrSchema - __annotations__ = { - "resourceType": resourceType, - "name": name, - "title": title, - "description": description, - "longDescription": longDescription, - "heading": heading, - "subHeading": subHeading, - "breadcrumb": breadcrumb, - "inputHints": inputHints, - "text": text, - "textarea": textarea, - "select": select, - "combobox": combobox, - "checkbox": checkbox, - "multiselect": multiselect, - "number": number, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resourceType"]) -> MetaOapg.properties.resourceType: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["description"]) -> MetaOapg.properties.description: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["longDescription"]) -> MetaOapg.properties.longDescription: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["heading"]) -> MetaOapg.properties.heading: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subHeading"]) -> MetaOapg.properties.subHeading: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["breadcrumb"]) -> MetaOapg.properties.breadcrumb: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["inputHints"]) -> MetaOapg.properties.inputHints: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["text"]) -> MetaOapg.properties.text: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["textarea"]) -> MetaOapg.properties.textarea: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["select"]) -> MetaOapg.properties.select: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["combobox"]) -> MetaOapg.properties.combobox: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["checkbox"]) -> MetaOapg.properties.checkbox: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["multiselect"]) -> MetaOapg.properties.multiselect: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resourceType", "name", "title", "description", "longDescription", "heading", "subHeading", "breadcrumb", "inputHints", "text", "textarea", "select", "combobox", "checkbox", "multiselect", "number", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resourceType"]) -> typing.Union[MetaOapg.properties.resourceType, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["description"]) -> typing.Union[MetaOapg.properties.description, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["longDescription"]) -> typing.Union[MetaOapg.properties.longDescription, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["heading"]) -> typing.Union[MetaOapg.properties.heading, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subHeading"]) -> typing.Union[MetaOapg.properties.subHeading, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["breadcrumb"]) -> typing.Union[MetaOapg.properties.breadcrumb, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["inputHints"]) -> typing.Union[MetaOapg.properties.inputHints, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["text"]) -> typing.Union[MetaOapg.properties.text, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["textarea"]) -> typing.Union[MetaOapg.properties.textarea, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["select"]) -> typing.Union[MetaOapg.properties.select, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["combobox"]) -> typing.Union[MetaOapg.properties.combobox, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["checkbox"]) -> typing.Union[MetaOapg.properties.checkbox, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["multiselect"]) -> typing.Union[MetaOapg.properties.multiselect, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resourceType", "name", "title", "description", "longDescription", "heading", "subHeading", "breadcrumb", "inputHints", "text", "textarea", "select", "combobox", "checkbox", "multiselect", "number", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resourceType: typing.Union[MetaOapg.properties.resourceType, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - description: typing.Union[MetaOapg.properties.description, str, schemas.Unset] = schemas.unset, - longDescription: typing.Union[MetaOapg.properties.longDescription, str, schemas.Unset] = schemas.unset, - heading: typing.Union[MetaOapg.properties.heading, str, schemas.Unset] = schemas.unset, - subHeading: typing.Union[MetaOapg.properties.subHeading, str, schemas.Unset] = schemas.unset, - breadcrumb: typing.Union[MetaOapg.properties.breadcrumb, str, schemas.Unset] = schemas.unset, - inputHints: typing.Union[MetaOapg.properties.inputHints, str, schemas.Unset] = schemas.unset, - text: typing.Union[MetaOapg.properties.text, str, schemas.Unset] = schemas.unset, - textarea: typing.Union[MetaOapg.properties.textarea, str, schemas.Unset] = schemas.unset, - select: typing.Union[MetaOapg.properties.select, str, schemas.Unset] = schemas.unset, - combobox: typing.Union[MetaOapg.properties.combobox, str, schemas.Unset] = schemas.unset, - checkbox: typing.Union[MetaOapg.properties.checkbox, str, schemas.Unset] = schemas.unset, - multiselect: typing.Union[MetaOapg.properties.multiselect, str, schemas.Unset] = schemas.unset, - number: typing.Union[MetaOapg.properties.number, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1PreferenceTrait': - return super().__new__( - cls, - *_args, - resourceType=resourceType, - name=name, - title=title, - description=description, - longDescription=longDescription, - heading=heading, - subHeading=subHeading, - breadcrumb=breadcrumb, - inputHints=inputHints, - text=text, - textarea=textarea, - select=select, - combobox=combobox, - checkbox=checkbox, - multiselect=multiselect, - number=number, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_project.py b/frontier_api/model/v1beta1_project.py deleted file mode 100644 index e65272f..0000000 --- a/frontier_api/model/v1beta1_project.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Project( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - orgId = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "orgId": orgId, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Project': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - orgId=orgId, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_project.pyi b/frontier_api/model/v1beta1_project.pyi deleted file mode 100644 index e65272f..0000000 --- a/frontier_api/model/v1beta1_project.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Project( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - orgId = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "orgId": orgId, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Project': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - orgId=orgId, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_project_request_body.py b/frontier_api/model/v1beta1_project_request_body.py deleted file mode 100644 index 6d513f0..0000000 --- a/frontier_api/model/v1beta1_project_request_body.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ProjectRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "orgId", - } - - class properties: - name = schemas.StrSchema - orgId = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "name": name, - "orgId": orgId, - "title": title, - "metadata": metadata, - } - - name: MetaOapg.properties.name - orgId: MetaOapg.properties.orgId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "orgId", "title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "orgId", "title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - orgId: typing.Union[MetaOapg.properties.orgId, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ProjectRequestBody': - return super().__new__( - cls, - *_args, - name=name, - orgId=orgId, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_project_request_body.pyi b/frontier_api/model/v1beta1_project_request_body.pyi deleted file mode 100644 index 6d513f0..0000000 --- a/frontier_api/model/v1beta1_project_request_body.pyi +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ProjectRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "orgId", - } - - class properties: - name = schemas.StrSchema - orgId = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "name": name, - "orgId": orgId, - "title": title, - "metadata": metadata, - } - - name: MetaOapg.properties.name - orgId: MetaOapg.properties.orgId - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "orgId", "title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "orgId", "title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - orgId: typing.Union[MetaOapg.properties.orgId, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ProjectRequestBody': - return super().__new__( - cls, - *_args, - name=name, - orgId=orgId, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_relation.py b/frontier_api/model/v1beta1_relation.py deleted file mode 100644 index 35ed013..0000000 --- a/frontier_api/model/v1beta1_relation.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Relation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - subjectSubRelation = schemas.StrSchema - relation = schemas.StrSchema - object = schemas.StrSchema - subject = schemas.StrSchema - __annotations__ = { - "id": id, - "createdAt": createdAt, - "updatedAt": updatedAt, - "subjectSubRelation": subjectSubRelation, - "relation": relation, - "object": object, - "subject": subject, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subjectSubRelation"]) -> MetaOapg.properties.subjectSubRelation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> MetaOapg.properties.relation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object"]) -> MetaOapg.properties.object: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subject"]) -> MetaOapg.properties.subject: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "subjectSubRelation", "relation", "object", "subject", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subjectSubRelation"]) -> typing.Union[MetaOapg.properties.subjectSubRelation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union[MetaOapg.properties.relation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object"]) -> typing.Union[MetaOapg.properties.object, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subject"]) -> typing.Union[MetaOapg.properties.subject, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "subjectSubRelation", "relation", "object", "subject", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - subjectSubRelation: typing.Union[MetaOapg.properties.subjectSubRelation, str, schemas.Unset] = schemas.unset, - relation: typing.Union[MetaOapg.properties.relation, str, schemas.Unset] = schemas.unset, - object: typing.Union[MetaOapg.properties.object, str, schemas.Unset] = schemas.unset, - subject: typing.Union[MetaOapg.properties.subject, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Relation': - return super().__new__( - cls, - *_args, - id=id, - createdAt=createdAt, - updatedAt=updatedAt, - subjectSubRelation=subjectSubRelation, - relation=relation, - object=object, - subject=subject, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_relation.pyi b/frontier_api/model/v1beta1_relation.pyi deleted file mode 100644 index 35ed013..0000000 --- a/frontier_api/model/v1beta1_relation.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Relation( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - subjectSubRelation = schemas.StrSchema - relation = schemas.StrSchema - object = schemas.StrSchema - subject = schemas.StrSchema - __annotations__ = { - "id": id, - "createdAt": createdAt, - "updatedAt": updatedAt, - "subjectSubRelation": subjectSubRelation, - "relation": relation, - "object": object, - "subject": subject, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subjectSubRelation"]) -> MetaOapg.properties.subjectSubRelation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> MetaOapg.properties.relation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object"]) -> MetaOapg.properties.object: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subject"]) -> MetaOapg.properties.subject: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "subjectSubRelation", "relation", "object", "subject", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subjectSubRelation"]) -> typing.Union[MetaOapg.properties.subjectSubRelation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union[MetaOapg.properties.relation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object"]) -> typing.Union[MetaOapg.properties.object, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subject"]) -> typing.Union[MetaOapg.properties.subject, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "createdAt", "updatedAt", "subjectSubRelation", "relation", "object", "subject", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - subjectSubRelation: typing.Union[MetaOapg.properties.subjectSubRelation, str, schemas.Unset] = schemas.unset, - relation: typing.Union[MetaOapg.properties.relation, str, schemas.Unset] = schemas.unset, - object: typing.Union[MetaOapg.properties.object, str, schemas.Unset] = schemas.unset, - subject: typing.Union[MetaOapg.properties.subject, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Relation': - return super().__new__( - cls, - *_args, - id=id, - createdAt=createdAt, - updatedAt=updatedAt, - subjectSubRelation=subjectSubRelation, - relation=relation, - object=object, - subject=subject, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_relation_request_body.py b/frontier_api/model/v1beta1_relation_request_body.py deleted file mode 100644 index bb82067..0000000 --- a/frontier_api/model/v1beta1_relation_request_body.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1RelationRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - object = schemas.StrSchema - subject = schemas.StrSchema - relation = schemas.StrSchema - subjectSubRelation = schemas.StrSchema - __annotations__ = { - "object": object, - "subject": subject, - "relation": relation, - "subjectSubRelation": subjectSubRelation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object"]) -> MetaOapg.properties.object: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subject"]) -> MetaOapg.properties.subject: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> MetaOapg.properties.relation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subjectSubRelation"]) -> MetaOapg.properties.subjectSubRelation: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["object", "subject", "relation", "subjectSubRelation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object"]) -> typing.Union[MetaOapg.properties.object, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subject"]) -> typing.Union[MetaOapg.properties.subject, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union[MetaOapg.properties.relation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subjectSubRelation"]) -> typing.Union[MetaOapg.properties.subjectSubRelation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["object", "subject", "relation", "subjectSubRelation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - object: typing.Union[MetaOapg.properties.object, str, schemas.Unset] = schemas.unset, - subject: typing.Union[MetaOapg.properties.subject, str, schemas.Unset] = schemas.unset, - relation: typing.Union[MetaOapg.properties.relation, str, schemas.Unset] = schemas.unset, - subjectSubRelation: typing.Union[MetaOapg.properties.subjectSubRelation, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1RelationRequestBody': - return super().__new__( - cls, - *_args, - object=object, - subject=subject, - relation=relation, - subjectSubRelation=subjectSubRelation, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_relation_request_body.pyi b/frontier_api/model/v1beta1_relation_request_body.pyi deleted file mode 100644 index bb82067..0000000 --- a/frontier_api/model/v1beta1_relation_request_body.pyi +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1RelationRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - object = schemas.StrSchema - subject = schemas.StrSchema - relation = schemas.StrSchema - subjectSubRelation = schemas.StrSchema - __annotations__ = { - "object": object, - "subject": subject, - "relation": relation, - "subjectSubRelation": subjectSubRelation, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["object"]) -> MetaOapg.properties.object: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subject"]) -> MetaOapg.properties.subject: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["relation"]) -> MetaOapg.properties.relation: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["subjectSubRelation"]) -> MetaOapg.properties.subjectSubRelation: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["object", "subject", "relation", "subjectSubRelation", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["object"]) -> typing.Union[MetaOapg.properties.object, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subject"]) -> typing.Union[MetaOapg.properties.subject, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["relation"]) -> typing.Union[MetaOapg.properties.relation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["subjectSubRelation"]) -> typing.Union[MetaOapg.properties.subjectSubRelation, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["object", "subject", "relation", "subjectSubRelation", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - object: typing.Union[MetaOapg.properties.object, str, schemas.Unset] = schemas.unset, - subject: typing.Union[MetaOapg.properties.subject, str, schemas.Unset] = schemas.unset, - relation: typing.Union[MetaOapg.properties.relation, str, schemas.Unset] = schemas.unset, - subjectSubRelation: typing.Union[MetaOapg.properties.subjectSubRelation, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1RelationRequestBody': - return super().__new__( - cls, - *_args, - object=object, - subject=subject, - relation=relation, - subjectSubRelation=subjectSubRelation, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_resource.py b/frontier_api/model/v1beta1_resource.py deleted file mode 100644 index 10d2f00..0000000 --- a/frontier_api/model/v1beta1_resource.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Resource( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - urn = schemas.StrSchema - projectId = schemas.StrSchema - namespace = schemas.StrSchema - principal = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "id": id, - "name": name, - "createdAt": createdAt, - "updatedAt": updatedAt, - "urn": urn, - "projectId": projectId, - "namespace": namespace, - "principal": principal, - "metadata": metadata, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["urn"]) -> MetaOapg.properties.urn: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projectId"]) -> MetaOapg.properties.projectId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "createdAt", "updatedAt", "urn", "projectId", "namespace", "principal", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["urn"]) -> typing.Union[MetaOapg.properties.urn, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projectId"]) -> typing.Union[MetaOapg.properties.projectId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union[MetaOapg.properties.namespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> typing.Union[MetaOapg.properties.principal, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "createdAt", "updatedAt", "urn", "projectId", "namespace", "principal", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - urn: typing.Union[MetaOapg.properties.urn, str, schemas.Unset] = schemas.unset, - projectId: typing.Union[MetaOapg.properties.projectId, str, schemas.Unset] = schemas.unset, - namespace: typing.Union[MetaOapg.properties.namespace, str, schemas.Unset] = schemas.unset, - principal: typing.Union[MetaOapg.properties.principal, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Resource': - return super().__new__( - cls, - *_args, - id=id, - name=name, - createdAt=createdAt, - updatedAt=updatedAt, - urn=urn, - projectId=projectId, - namespace=namespace, - principal=principal, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_resource.pyi b/frontier_api/model/v1beta1_resource.pyi deleted file mode 100644 index 10d2f00..0000000 --- a/frontier_api/model/v1beta1_resource.pyi +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Resource( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - urn = schemas.StrSchema - projectId = schemas.StrSchema - namespace = schemas.StrSchema - principal = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "id": id, - "name": name, - "createdAt": createdAt, - "updatedAt": updatedAt, - "urn": urn, - "projectId": projectId, - "namespace": namespace, - "principal": principal, - "metadata": metadata, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["urn"]) -> MetaOapg.properties.urn: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["projectId"]) -> MetaOapg.properties.projectId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "createdAt", "updatedAt", "urn", "projectId", "namespace", "principal", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["urn"]) -> typing.Union[MetaOapg.properties.urn, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["projectId"]) -> typing.Union[MetaOapg.properties.projectId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> typing.Union[MetaOapg.properties.namespace, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> typing.Union[MetaOapg.properties.principal, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "createdAt", "updatedAt", "urn", "projectId", "namespace", "principal", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - urn: typing.Union[MetaOapg.properties.urn, str, schemas.Unset] = schemas.unset, - projectId: typing.Union[MetaOapg.properties.projectId, str, schemas.Unset] = schemas.unset, - namespace: typing.Union[MetaOapg.properties.namespace, str, schemas.Unset] = schemas.unset, - principal: typing.Union[MetaOapg.properties.principal, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Resource': - return super().__new__( - cls, - *_args, - id=id, - name=name, - createdAt=createdAt, - updatedAt=updatedAt, - urn=urn, - projectId=projectId, - namespace=namespace, - principal=principal, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_resource_request_body.py b/frontier_api/model/v1beta1_resource_request_body.py deleted file mode 100644 index d86379e..0000000 --- a/frontier_api/model/v1beta1_resource_request_body.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ResourceRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "namespace", - } - - class properties: - name = schemas.StrSchema - namespace = schemas.StrSchema - title = schemas.StrSchema - principal = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "name": name, - "namespace": namespace, - "title": title, - "principal": principal, - "metadata": metadata, - } - - name: MetaOapg.properties.name - namespace: MetaOapg.properties.namespace - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "title", "principal", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> typing.Union[MetaOapg.properties.principal, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "title", "principal", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - namespace: typing.Union[MetaOapg.properties.namespace, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - principal: typing.Union[MetaOapg.properties.principal, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ResourceRequestBody': - return super().__new__( - cls, - *_args, - name=name, - namespace=namespace, - title=title, - principal=principal, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_resource_request_body.pyi b/frontier_api/model/v1beta1_resource_request_body.pyi deleted file mode 100644 index d86379e..0000000 --- a/frontier_api/model/v1beta1_resource_request_body.pyi +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ResourceRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "name", - "namespace", - } - - class properties: - name = schemas.StrSchema - namespace = schemas.StrSchema - title = schemas.StrSchema - principal = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "name": name, - "namespace": namespace, - "title": title, - "principal": principal, - "metadata": metadata, - } - - name: MetaOapg.properties.name - namespace: MetaOapg.properties.namespace - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principal"]) -> MetaOapg.properties.principal: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "title", "principal", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["namespace"]) -> MetaOapg.properties.namespace: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principal"]) -> typing.Union[MetaOapg.properties.principal, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "namespace", "title", "principal", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, ], - namespace: typing.Union[MetaOapg.properties.namespace, str, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - principal: typing.Union[MetaOapg.properties.principal, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ResourceRequestBody': - return super().__new__( - cls, - *_args, - name=name, - namespace=namespace, - title=title, - principal=principal, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_role.py b/frontier_api/model/v1beta1_role.py deleted file mode 100644 index 8b2b441..0000000 --- a/frontier_api/model/v1beta1_role.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Role( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - title = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - orgId = schemas.StrSchema - state = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "permissions": permissions, - "title": title, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "orgId": orgId, - "state": state, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "permissions", "title", "metadata", "createdAt", "updatedAt", "orgId", "state", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "permissions", "title", "metadata", "createdAt", "updatedAt", "orgId", "state", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Role': - return super().__new__( - cls, - *_args, - id=id, - name=name, - permissions=permissions, - title=title, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - orgId=orgId, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_role.pyi b/frontier_api/model/v1beta1_role.pyi deleted file mode 100644 index 8b2b441..0000000 --- a/frontier_api/model/v1beta1_role.pyi +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1Role( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - title = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - orgId = schemas.StrSchema - state = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "permissions": permissions, - "title": title, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "orgId": orgId, - "state": state, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "permissions", "title", "metadata", "createdAt", "updatedAt", "orgId", "state", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "permissions", "title", "metadata", "createdAt", "updatedAt", "orgId", "state", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1Role': - return super().__new__( - cls, - *_args, - id=id, - name=name, - permissions=permissions, - title=title, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - orgId=orgId, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_role_request_body.py b/frontier_api/model/v1beta1_role_request_body.py deleted file mode 100644 index cfe81ea..0000000 --- a/frontier_api/model/v1beta1_role_request_body.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1RoleRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - metadata = schemas.DictSchema - title = schemas.StrSchema - __annotations__ = { - "name": name, - "permissions": permissions, - "metadata": metadata, - "title": title, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "permissions", "metadata", "title", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "permissions", "metadata", "title", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1RoleRequestBody': - return super().__new__( - cls, - *_args, - name=name, - permissions=permissions, - metadata=metadata, - title=title, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_role_request_body.pyi b/frontier_api/model/v1beta1_role_request_body.pyi deleted file mode 100644 index cfe81ea..0000000 --- a/frontier_api/model/v1beta1_role_request_body.pyi +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1RoleRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - name = schemas.StrSchema - - - class permissions( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'permissions': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - metadata = schemas.DictSchema - title = schemas.StrSchema - __annotations__ = { - "name": name, - "permissions": permissions, - "metadata": metadata, - "title": title, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permissions"]) -> MetaOapg.properties.permissions: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "permissions", "metadata", "title", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permissions"]) -> typing.Union[MetaOapg.properties.permissions, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "permissions", "metadata", "title", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - permissions: typing.Union[MetaOapg.properties.permissions, list, tuple, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1RoleRequestBody': - return super().__new__( - cls, - *_args, - name=name, - permissions=permissions, - metadata=metadata, - title=title, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_secret_credential.py b/frontier_api/model/v1beta1_secret_credential.py deleted file mode 100644 index 2077636..0000000 --- a/frontier_api/model/v1beta1_secret_credential.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1SecretCredential( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - secret = schemas.StrSchema - createdAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "title": title, - "secret": secret, - "createdAt": createdAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["secret"]) -> MetaOapg.properties.secret: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "secret", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["secret"]) -> typing.Union[MetaOapg.properties.secret, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "secret", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - secret: typing.Union[MetaOapg.properties.secret, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1SecretCredential': - return super().__new__( - cls, - *_args, - id=id, - title=title, - secret=secret, - createdAt=createdAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_secret_credential.pyi b/frontier_api/model/v1beta1_secret_credential.pyi deleted file mode 100644 index 2077636..0000000 --- a/frontier_api/model/v1beta1_secret_credential.pyi +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1SecretCredential( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - secret = schemas.StrSchema - createdAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "title": title, - "secret": secret, - "createdAt": createdAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["secret"]) -> MetaOapg.properties.secret: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "secret", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["secret"]) -> typing.Union[MetaOapg.properties.secret, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "secret", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - secret: typing.Union[MetaOapg.properties.secret, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1SecretCredential': - return super().__new__( - cls, - *_args, - id=id, - title=title, - secret=secret, - createdAt=createdAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_service_user.py b/frontier_api/model/v1beta1_service_user.py deleted file mode 100644 index 2e60908..0000000 --- a/frontier_api/model/v1beta1_service_user.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ServiceUser( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - state = schemas.StrSchema - orgId = schemas.StrSchema - __annotations__ = { - "id": id, - "title": title, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "state": state, - "orgId": orgId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "metadata", "createdAt", "updatedAt", "state", "orgId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "metadata", "createdAt", "updatedAt", "state", "orgId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ServiceUser': - return super().__new__( - cls, - *_args, - id=id, - title=title, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - state=state, - orgId=orgId, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_service_user.pyi b/frontier_api/model/v1beta1_service_user.pyi deleted file mode 100644 index 2e60908..0000000 --- a/frontier_api/model/v1beta1_service_user.pyi +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ServiceUser( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - state = schemas.StrSchema - orgId = schemas.StrSchema - __annotations__ = { - "id": id, - "title": title, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "state": state, - "orgId": orgId, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "metadata", "createdAt", "updatedAt", "state", "orgId", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "metadata", "createdAt", "updatedAt", "state", "orgId", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ServiceUser': - return super().__new__( - cls, - *_args, - id=id, - title=title, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - state=state, - orgId=orgId, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_service_user_key.py b/frontier_api/model/v1beta1_service_user_key.py deleted file mode 100644 index 2abfb33..0000000 --- a/frontier_api/model/v1beta1_service_user_key.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ServiceUserKey( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - principalId = schemas.StrSchema - publicKey = schemas.StrSchema - createdAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "title": title, - "principalId": principalId, - "publicKey": publicKey, - "createdAt": createdAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principalId"]) -> MetaOapg.properties.principalId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publicKey"]) -> MetaOapg.properties.publicKey: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "principalId", "publicKey", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principalId"]) -> typing.Union[MetaOapg.properties.principalId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publicKey"]) -> typing.Union[MetaOapg.properties.publicKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "principalId", "publicKey", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - principalId: typing.Union[MetaOapg.properties.principalId, str, schemas.Unset] = schemas.unset, - publicKey: typing.Union[MetaOapg.properties.publicKey, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ServiceUserKey': - return super().__new__( - cls, - *_args, - id=id, - title=title, - principalId=principalId, - publicKey=publicKey, - createdAt=createdAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_service_user_key.pyi b/frontier_api/model/v1beta1_service_user_key.pyi deleted file mode 100644 index 2abfb33..0000000 --- a/frontier_api/model/v1beta1_service_user_key.pyi +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ServiceUserKey( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - title = schemas.StrSchema - principalId = schemas.StrSchema - publicKey = schemas.StrSchema - createdAt = schemas.DateTimeSchema - __annotations__ = { - "id": id, - "title": title, - "principalId": principalId, - "publicKey": publicKey, - "createdAt": createdAt, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["principalId"]) -> MetaOapg.properties.principalId: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["publicKey"]) -> MetaOapg.properties.publicKey: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "title", "principalId", "publicKey", "createdAt", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["principalId"]) -> typing.Union[MetaOapg.properties.principalId, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["publicKey"]) -> typing.Union[MetaOapg.properties.publicKey, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "title", "principalId", "publicKey", "createdAt", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - principalId: typing.Union[MetaOapg.properties.principalId, str, schemas.Unset] = schemas.unset, - publicKey: typing.Union[MetaOapg.properties.publicKey, str, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ServiceUserKey': - return super().__new__( - cls, - *_args, - id=id, - title=title, - principalId=principalId, - publicKey=publicKey, - createdAt=createdAt, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_service_user_request_body.py b/frontier_api/model/v1beta1_service_user_request_body.py deleted file mode 100644 index 97664f8..0000000 --- a/frontier_api/model/v1beta1_service_user_request_body.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ServiceUserRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "title": title, - "metadata": metadata, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ServiceUserRequestBody': - return super().__new__( - cls, - *_args, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_service_user_request_body.pyi b/frontier_api/model/v1beta1_service_user_request_body.pyi deleted file mode 100644 index 97664f8..0000000 --- a/frontier_api/model/v1beta1_service_user_request_body.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1ServiceUserRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - title = schemas.StrSchema - metadata = schemas.DictSchema - __annotations__ = { - "title": title, - "metadata": metadata, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["title", "metadata", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["title", "metadata", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1ServiceUserRequestBody': - return super().__new__( - cls, - *_args, - title=title, - metadata=metadata, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_update_current_user_response.py b/frontier_api/model/v1beta1_update_current_user_response.py deleted file mode 100644 index 1bd5028..0000000 --- a/frontier_api/model/v1beta1_update_current_user_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateCurrentUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_update_current_user_response.pyi b/frontier_api/model/v1beta1_update_current_user_response.pyi deleted file mode 100644 index 1bd5028..0000000 --- a/frontier_api/model/v1beta1_update_current_user_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateCurrentUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateCurrentUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_update_group_response.py b/frontier_api/model/v1beta1_update_group_response.py deleted file mode 100644 index bb22d80..0000000 --- a/frontier_api/model/v1beta1_update_group_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def group() -> typing.Type['V1beta1Group']: - return V1beta1Group - __annotations__ = { - "group": group, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["group"]) -> 'V1beta1Group': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["group"]) -> typing.Union['V1beta1Group', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - group: typing.Union['V1beta1Group', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateGroupResponse': - return super().__new__( - cls, - *_args, - group=group, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_update_group_response.pyi b/frontier_api/model/v1beta1_update_group_response.pyi deleted file mode 100644 index bb22d80..0000000 --- a/frontier_api/model/v1beta1_update_group_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateGroupResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def group() -> typing.Type['V1beta1Group']: - return V1beta1Group - __annotations__ = { - "group": group, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["group"]) -> 'V1beta1Group': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["group"]) -> typing.Union['V1beta1Group', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["group", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - group: typing.Union['V1beta1Group', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateGroupResponse': - return super().__new__( - cls, - *_args, - group=group, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_group import V1beta1Group diff --git a/frontier_api/model/v1beta1_update_meta_schema_response.py b/frontier_api/model/v1beta1_update_meta_schema_response.py deleted file mode 100644 index 57b4fcb..0000000 --- a/frontier_api/model/v1beta1_update_meta_schema_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateMetaSchemaResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def metaschema() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - __annotations__ = { - "metaschema": metaschema, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschema"]) -> 'V1beta1MetaSchema': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschema"]) -> typing.Union['V1beta1MetaSchema', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschema: typing.Union['V1beta1MetaSchema', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateMetaSchemaResponse': - return super().__new__( - cls, - *_args, - metaschema=metaschema, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_update_meta_schema_response.pyi b/frontier_api/model/v1beta1_update_meta_schema_response.pyi deleted file mode 100644 index 57b4fcb..0000000 --- a/frontier_api/model/v1beta1_update_meta_schema_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateMetaSchemaResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def metaschema() -> typing.Type['V1beta1MetaSchema']: - return V1beta1MetaSchema - __annotations__ = { - "metaschema": metaschema, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metaschema"]) -> 'V1beta1MetaSchema': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metaschema"]) -> typing.Union['V1beta1MetaSchema', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["metaschema", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - metaschema: typing.Union['V1beta1MetaSchema', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateMetaSchemaResponse': - return super().__new__( - cls, - *_args, - metaschema=metaschema, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema diff --git a/frontier_api/model/v1beta1_update_organization_response.py b/frontier_api/model/v1beta1_update_organization_response.py deleted file mode 100644 index e7ffd63..0000000 --- a/frontier_api/model/v1beta1_update_organization_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateOrganizationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def organization() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - __annotations__ = { - "organization": organization, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organization"]) -> 'V1beta1Organization': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organization"]) -> typing.Union['V1beta1Organization', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organization: typing.Union['V1beta1Organization', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateOrganizationResponse': - return super().__new__( - cls, - *_args, - organization=organization, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_update_organization_response.pyi b/frontier_api/model/v1beta1_update_organization_response.pyi deleted file mode 100644 index e7ffd63..0000000 --- a/frontier_api/model/v1beta1_update_organization_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateOrganizationResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def organization() -> typing.Type['V1beta1Organization']: - return V1beta1Organization - __annotations__ = { - "organization": organization, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["organization"]) -> 'V1beta1Organization': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["organization"]) -> typing.Union['V1beta1Organization', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["organization", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - organization: typing.Union['V1beta1Organization', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateOrganizationResponse': - return super().__new__( - cls, - *_args, - organization=organization, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_organization import V1beta1Organization diff --git a/frontier_api/model/v1beta1_update_organization_role_response.py b/frontier_api/model/v1beta1_update_organization_role_response.py deleted file mode 100644 index ee44df3..0000000 --- a/frontier_api/model/v1beta1_update_organization_role_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateOrganizationRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateOrganizationRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_update_organization_role_response.pyi b/frontier_api/model/v1beta1_update_organization_role_response.pyi deleted file mode 100644 index ee44df3..0000000 --- a/frontier_api/model/v1beta1_update_organization_role_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateOrganizationRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateOrganizationRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_update_permission_response.py b/frontier_api/model/v1beta1_update_permission_response.py deleted file mode 100644 index 0726adc..0000000 --- a/frontier_api/model/v1beta1_update_permission_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdatePermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def permission() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - __annotations__ = { - "permission": permission, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> 'V1beta1Permission': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> typing.Union['V1beta1Permission', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union['V1beta1Permission', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdatePermissionResponse': - return super().__new__( - cls, - *_args, - permission=permission, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_update_permission_response.pyi b/frontier_api/model/v1beta1_update_permission_response.pyi deleted file mode 100644 index 0726adc..0000000 --- a/frontier_api/model/v1beta1_update_permission_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdatePermissionResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def permission() -> typing.Type['V1beta1Permission']: - return V1beta1Permission - __annotations__ = { - "permission": permission, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["permission"]) -> 'V1beta1Permission': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["permission"]) -> typing.Union['V1beta1Permission', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["permission", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - permission: typing.Union['V1beta1Permission', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdatePermissionResponse': - return super().__new__( - cls, - *_args, - permission=permission, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_permission import V1beta1Permission diff --git a/frontier_api/model/v1beta1_update_policy_response.py b/frontier_api/model/v1beta1_update_policy_response.py deleted file mode 100644 index 309890e..0000000 --- a/frontier_api/model/v1beta1_update_policy_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdatePolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class policies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Policy'], typing.List['V1beta1Policy']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'policies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Policy': - return super().__getitem__(i) - __annotations__ = { - "policies": policies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policies"]) -> MetaOapg.properties.policies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policies"]) -> typing.Union[MetaOapg.properties.policies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policies: typing.Union[MetaOapg.properties.policies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdatePolicyResponse': - return super().__new__( - cls, - *_args, - policies=policies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_update_policy_response.pyi b/frontier_api/model/v1beta1_update_policy_response.pyi deleted file mode 100644 index 309890e..0000000 --- a/frontier_api/model/v1beta1_update_policy_response.pyi +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdatePolicyResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - - class policies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1Policy']: - return V1beta1Policy - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1Policy'], typing.List['V1beta1Policy']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'policies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1Policy': - return super().__getitem__(i) - __annotations__ = { - "policies": policies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["policies"]) -> MetaOapg.properties.policies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["policies"]) -> typing.Union[MetaOapg.properties.policies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["policies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - policies: typing.Union[MetaOapg.properties.policies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdatePolicyResponse': - return super().__new__( - cls, - *_args, - policies=policies, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_policy import V1beta1Policy diff --git a/frontier_api/model/v1beta1_update_project_resource_response.py b/frontier_api/model/v1beta1_update_project_resource_response.py deleted file mode 100644 index 953d092..0000000 --- a/frontier_api/model/v1beta1_update_project_resource_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateProjectResourceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def resource() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - __annotations__ = { - "resource": resource, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> 'V1beta1Resource': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union['V1beta1Resource', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resource: typing.Union['V1beta1Resource', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateProjectResourceResponse': - return super().__new__( - cls, - *_args, - resource=resource, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_update_project_resource_response.pyi b/frontier_api/model/v1beta1_update_project_resource_response.pyi deleted file mode 100644 index 953d092..0000000 --- a/frontier_api/model/v1beta1_update_project_resource_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateProjectResourceResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def resource() -> typing.Type['V1beta1Resource']: - return V1beta1Resource - __annotations__ = { - "resource": resource, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["resource"]) -> 'V1beta1Resource': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["resource"]) -> typing.Union['V1beta1Resource', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["resource", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - resource: typing.Union['V1beta1Resource', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateProjectResourceResponse': - return super().__new__( - cls, - *_args, - resource=resource, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_resource import V1beta1Resource diff --git a/frontier_api/model/v1beta1_update_project_response.py b/frontier_api/model/v1beta1_update_project_response.py deleted file mode 100644 index 39d3789..0000000 --- a/frontier_api/model/v1beta1_update_project_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateProjectResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def project() -> typing.Type['V1beta1Project']: - return V1beta1Project - __annotations__ = { - "project": project, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["project"]) -> 'V1beta1Project': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["project"]) -> typing.Union['V1beta1Project', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - project: typing.Union['V1beta1Project', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateProjectResponse': - return super().__new__( - cls, - *_args, - project=project, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_update_project_response.pyi b/frontier_api/model/v1beta1_update_project_response.pyi deleted file mode 100644 index 39d3789..0000000 --- a/frontier_api/model/v1beta1_update_project_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateProjectResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def project() -> typing.Type['V1beta1Project']: - return V1beta1Project - __annotations__ = { - "project": project, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["project"]) -> 'V1beta1Project': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["project"]) -> typing.Union['V1beta1Project', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["project", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - project: typing.Union['V1beta1Project', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateProjectResponse': - return super().__new__( - cls, - *_args, - project=project, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_project import V1beta1Project diff --git a/frontier_api/model/v1beta1_update_role_response.py b/frontier_api/model/v1beta1_update_role_response.py deleted file mode 100644 index 8b0a35b..0000000 --- a/frontier_api/model/v1beta1_update_role_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_update_role_response.pyi b/frontier_api/model/v1beta1_update_role_response.pyi deleted file mode 100644 index 8b0a35b..0000000 --- a/frontier_api/model/v1beta1_update_role_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateRoleResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def role() -> typing.Type['V1beta1Role']: - return V1beta1Role - __annotations__ = { - "role": role, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["role"]) -> 'V1beta1Role': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["role"]) -> typing.Union['V1beta1Role', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["role", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - role: typing.Union['V1beta1Role', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateRoleResponse': - return super().__new__( - cls, - *_args, - role=role, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_role import V1beta1Role diff --git a/frontier_api/model/v1beta1_update_user_response.py b/frontier_api/model/v1beta1_update_user_response.py deleted file mode 100644 index 1ae4b0e..0000000 --- a/frontier_api/model/v1beta1_update_user_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_update_user_response.pyi b/frontier_api/model/v1beta1_update_user_response.pyi deleted file mode 100644 index 1ae4b0e..0000000 --- a/frontier_api/model/v1beta1_update_user_response.pyi +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UpdateUserResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - - @staticmethod - def user() -> typing.Type['V1beta1User']: - return V1beta1User - __annotations__ = { - "user": user, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["user"]) -> 'V1beta1User': ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["user"]) -> typing.Union['V1beta1User', schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["user", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - user: typing.Union['V1beta1User', schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UpdateUserResponse': - return super().__new__( - cls, - *_args, - user=user, - _configuration=_configuration, - **kwargs, - ) - -from frontier_api.model.v1beta1_user import V1beta1User diff --git a/frontier_api/model/v1beta1_user.py b/frontier_api/model/v1beta1_user.py deleted file mode 100644 index fbd2196..0000000 --- a/frontier_api/model/v1beta1_user.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1User( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - email = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - state = schemas.StrSchema - avatar = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "email": email, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "state": state, - "avatar": avatar, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "email", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "email", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1User': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - email=email, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - state=state, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_user.pyi b/frontier_api/model/v1beta1_user.pyi deleted file mode 100644 index fbd2196..0000000 --- a/frontier_api/model/v1beta1_user.pyi +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1User( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - id = schemas.StrSchema - name = schemas.StrSchema - title = schemas.StrSchema - email = schemas.StrSchema - metadata = schemas.DictSchema - createdAt = schemas.DateTimeSchema - updatedAt = schemas.DateTimeSchema - state = schemas.StrSchema - avatar = schemas.StrSchema - __annotations__ = { - "id": id, - "name": name, - "title": title, - "email": email, - "metadata": metadata, - "createdAt": createdAt, - "updatedAt": updatedAt, - "state": state, - "avatar": avatar, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["createdAt"]) -> MetaOapg.properties.createdAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["updatedAt"]) -> MetaOapg.properties.updatedAt: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "email", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["createdAt"]) -> typing.Union[MetaOapg.properties.createdAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["updatedAt"]) -> typing.Union[MetaOapg.properties.updatedAt, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", "title", "email", "metadata", "createdAt", "updatedAt", "state", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - id: typing.Union[MetaOapg.properties.id, str, schemas.Unset] = schemas.unset, - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - createdAt: typing.Union[MetaOapg.properties.createdAt, str, datetime, schemas.Unset] = schemas.unset, - updatedAt: typing.Union[MetaOapg.properties.updatedAt, str, datetime, schemas.Unset] = schemas.unset, - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1User': - return super().__new__( - cls, - *_args, - id=id, - name=name, - title=title, - email=email, - metadata=metadata, - createdAt=createdAt, - updatedAt=updatedAt, - state=state, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_user_request_body.py b/frontier_api/model/v1beta1_user_request_body.py deleted file mode 100644 index f7b7972..0000000 --- a/frontier_api/model/v1beta1_user_request_body.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UserRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "email", - } - - class properties: - email = schemas.StrSchema - name = schemas.StrSchema - metadata = schemas.DictSchema - title = schemas.StrSchema - avatar = schemas.StrSchema - __annotations__ = { - "email": email, - "name": name, - "metadata": metadata, - "title": title, - "avatar": avatar, - } - - email: MetaOapg.properties.email - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["email", "name", "metadata", "title", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["email", "name", "metadata", "title", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - email: typing.Union[MetaOapg.properties.email, str, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UserRequestBody': - return super().__new__( - cls, - *_args, - email=email, - name=name, - metadata=metadata, - title=title, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_user_request_body.pyi b/frontier_api/model/v1beta1_user_request_body.pyi deleted file mode 100644 index f7b7972..0000000 --- a/frontier_api/model/v1beta1_user_request_body.pyi +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1UserRequestBody( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - required = { - "email", - } - - class properties: - email = schemas.StrSchema - name = schemas.StrSchema - metadata = schemas.DictSchema - title = schemas.StrSchema - avatar = schemas.StrSchema - __annotations__ = { - "email": email, - "name": name, - "metadata": metadata, - "title": title, - "avatar": avatar, - } - - email: MetaOapg.properties.email - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["metadata"]) -> MetaOapg.properties.metadata: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["avatar"]) -> MetaOapg.properties.avatar: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["email", "name", "metadata", "title", "avatar", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["metadata"]) -> typing.Union[MetaOapg.properties.metadata, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["avatar"]) -> typing.Union[MetaOapg.properties.avatar, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["email", "name", "metadata", "title", "avatar", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - email: typing.Union[MetaOapg.properties.email, str, ], - name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset, - metadata: typing.Union[MetaOapg.properties.metadata, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - avatar: typing.Union[MetaOapg.properties.avatar, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1UserRequestBody': - return super().__new__( - cls, - *_args, - email=email, - name=name, - metadata=metadata, - title=title, - avatar=avatar, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_verify_organization_domain_response.py b/frontier_api/model/v1beta1_verify_organization_domain_response.py deleted file mode 100644 index 8a54919..0000000 --- a/frontier_api/model/v1beta1_verify_organization_domain_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1VerifyOrganizationDomainResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - state = schemas.StrSchema - __annotations__ = { - "state": state, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["state", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["state", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1VerifyOrganizationDomainResponse': - return super().__new__( - cls, - *_args, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/model/v1beta1_verify_organization_domain_response.pyi b/frontier_api/model/v1beta1_verify_organization_domain_response.pyi deleted file mode 100644 index 8a54919..0000000 --- a/frontier_api/model/v1beta1_verify_organization_domain_response.pyi +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - - -class V1beta1VerifyOrganizationDomainResponse( - schemas.DictSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - - class MetaOapg: - - class properties: - state = schemas.StrSchema - __annotations__ = { - "state": state, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["state"]) -> MetaOapg.properties.state: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["state", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["state"]) -> typing.Union[MetaOapg.properties.state, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["state", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - state: typing.Union[MetaOapg.properties.state, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'V1beta1VerifyOrganizationDomainResponse': - return super().__new__( - cls, - *_args, - state=state, - _configuration=_configuration, - **kwargs, - ) diff --git a/frontier_api/models/__init__.py b/frontier_api/models/__init__.py index 1585062..4f3e8e2 100644 --- a/frontier_api/models/__init__.py +++ b/frontier_api/models/__init__.py @@ -1,168 +1,231 @@ # coding: utf-8 # flake8: noqa +""" + Frontier Administration API -# import all models into this package -# if you have many models here with many references from one model to another this may -# raise a RecursionError -# to avoid this, import only the models that you directly need like: -# from frontier_api.model.pet import Pet -# or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. -from frontier_api.model.protobuf_any import ProtobufAny -from frontier_api.model.protobuf_null_value import ProtobufNullValue -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog -from frontier_api.model.v1beta1_audit_log_actor import V1beta1AuditLogActor -from frontier_api.model.v1beta1_audit_log_target import V1beta1AuditLogTarget -from frontier_api.model.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest -from frontier_api.model.v1beta1_auth_strategy import V1beta1AuthStrategy -from frontier_api.model.v1beta1_auth_token_request import V1beta1AuthTokenRequest -from frontier_api.model.v1beta1_auth_token_response import V1beta1AuthTokenResponse -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse -from frontier_api.model.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody -from frontier_api.model.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest -from frontier_api.model.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse -from frontier_api.model.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair -from frontier_api.model.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest -from frontier_api.model.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse -from frontier_api.model.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest -from frontier_api.model.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse -from frontier_api.model.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse -from frontier_api.model.v1beta1_create_group_response import V1beta1CreateGroupResponse -from frontier_api.model.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse -from frontier_api.model.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse -from frontier_api.model.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse -from frontier_api.model.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse -from frontier_api.model.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse -from frontier_api.model.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse -from frontier_api.model.v1beta1_create_permission_request import V1beta1CreatePermissionRequest -from frontier_api.model.v1beta1_create_permission_response import V1beta1CreatePermissionResponse -from frontier_api.model.v1beta1_create_policy_response import V1beta1CreatePolicyResponse -from frontier_api.model.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest -from frontier_api.model.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse -from frontier_api.model.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse -from frontier_api.model.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse -from frontier_api.model.v1beta1_create_project_response import V1beta1CreateProjectResponse -from frontier_api.model.v1beta1_create_relation_response import V1beta1CreateRelationResponse -from frontier_api.model.v1beta1_create_role_response import V1beta1CreateRoleResponse -from frontier_api.model.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse -from frontier_api.model.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest -from frontier_api.model.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse -from frontier_api.model.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse -from frontier_api.model.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse -from frontier_api.model.v1beta1_create_user_response import V1beta1CreateUserResponse -from frontier_api.model.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse -from frontier_api.model.v1beta1_domain import V1beta1Domain -from frontier_api.model.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse -from frontier_api.model.v1beta1_get_group_response import V1beta1GetGroupResponse -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse -from frontier_api.model.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse -from frontier_api.model.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse -from frontier_api.model.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse -from frontier_api.model.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse -from frontier_api.model.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse -from frontier_api.model.v1beta1_get_organization_response import V1beta1GetOrganizationResponse -from frontier_api.model.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse -from frontier_api.model.v1beta1_get_permission_response import V1beta1GetPermissionResponse -from frontier_api.model.v1beta1_get_policy_response import V1beta1GetPolicyResponse -from frontier_api.model.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse -from frontier_api.model.v1beta1_get_project_response import V1beta1GetProjectResponse -from frontier_api.model.v1beta1_get_relation_response import V1beta1GetRelationResponse -from frontier_api.model.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse -from frontier_api.model.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse -from frontier_api.model.v1beta1_get_user_response import V1beta1GetUserResponse -from frontier_api.model.v1beta1_group import V1beta1Group -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_invitation import V1beta1Invitation -from frontier_api.model.v1beta1_json_web_key import V1beta1JSONWebKey -from frontier_api.model.v1beta1_key_credential import V1beta1KeyCredential -from frontier_api.model.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse -from frontier_api.model.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse -from frontier_api.model.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse -from frontier_api.model.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse -from frontier_api.model.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair -from frontier_api.model.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse -from frontier_api.model.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse -from frontier_api.model.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse -from frontier_api.model.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair -from frontier_api.model.v1beta1_list_groups_response import V1beta1ListGroupsResponse -from frontier_api.model.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse -from frontier_api.model.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse -from frontier_api.model.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse -from frontier_api.model.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse -from frontier_api.model.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse -from frontier_api.model.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse -from frontier_api.model.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse -from frontier_api.model.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse -from frontier_api.model.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse -from frontier_api.model.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse -from frontier_api.model.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse -from frontier_api.model.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse -from frontier_api.model.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse -from frontier_api.model.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse -from frontier_api.model.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse -from frontier_api.model.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse -from frontier_api.model.v1beta1_list_policies_response import V1beta1ListPoliciesResponse -from frontier_api.model.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse -from frontier_api.model.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse -from frontier_api.model.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse -from frontier_api.model.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse -from frontier_api.model.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse -from frontier_api.model.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair -from frontier_api.model.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse -from frontier_api.model.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair -from frontier_api.model.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse -from frontier_api.model.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair -from frontier_api.model.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse -from frontier_api.model.v1beta1_list_projects_response import V1beta1ListProjectsResponse -from frontier_api.model.v1beta1_list_relations_response import V1beta1ListRelationsResponse -from frontier_api.model.v1beta1_list_resources_response import V1beta1ListResourcesResponse -from frontier_api.model.v1beta1_list_roles_response import V1beta1ListRolesResponse -from frontier_api.model.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse -from frontier_api.model.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse -from frontier_api.model.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse -from frontier_api.model.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse -from frontier_api.model.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse -from frontier_api.model.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse -from frontier_api.model.v1beta1_list_users_response import V1beta1ListUsersResponse -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody -from frontier_api.model.v1beta1_namespace import V1beta1Namespace -from frontier_api.model.v1beta1_organization import V1beta1Organization -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody -from frontier_api.model.v1beta1_permission import V1beta1Permission -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody -from frontier_api.model.v1beta1_policy import V1beta1Policy -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_preference import V1beta1Preference -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_preference_trait import V1beta1PreferenceTrait -from frontier_api.model.v1beta1_project import V1beta1Project -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody -from frontier_api.model.v1beta1_relation import V1beta1Relation -from frontier_api.model.v1beta1_relation_request_body import V1beta1RelationRequestBody -from frontier_api.model.v1beta1_resource import V1beta1Resource -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody -from frontier_api.model.v1beta1_role import V1beta1Role -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody -from frontier_api.model.v1beta1_secret_credential import V1beta1SecretCredential -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser -from frontier_api.model.v1beta1_service_user_key import V1beta1ServiceUserKey -from frontier_api.model.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody -from frontier_api.model.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse -from frontier_api.model.v1beta1_update_group_response import V1beta1UpdateGroupResponse -from frontier_api.model.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse -from frontier_api.model.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse -from frontier_api.model.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse -from frontier_api.model.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse -from frontier_api.model.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse -from frontier_api.model.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse -from frontier_api.model.v1beta1_update_project_response import V1beta1UpdateProjectResponse -from frontier_api.model.v1beta1_update_role_response import V1beta1UpdateRoleResponse -from frontier_api.model.v1beta1_update_user_response import V1beta1UpdateUserResponse -from frontier_api.model.v1beta1_user import V1beta1User -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody -from frontier_api.model.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +# import models into model package +from frontier_api.models.billing_account_address import BillingAccountAddress +from frontier_api.models.billing_account_balance import BillingAccountBalance +from frontier_api.models.frontier_service_add_group_users_request import FrontierServiceAddGroupUsersRequest +from frontier_api.models.frontier_service_add_organization_users_request import FrontierServiceAddOrganizationUsersRequest +from frontier_api.models.frontier_service_authenticate2_request import FrontierServiceAuthenticate2Request +from frontier_api.models.frontier_service_check_feature_entitlement_request import FrontierServiceCheckFeatureEntitlementRequest +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest +from frontier_api.models.frontier_service_create_billing_usage_request import FrontierServiceCreateBillingUsageRequest +from frontier_api.models.frontier_service_create_checkout_request import FrontierServiceCreateCheckoutRequest +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest +from frontier_api.models.frontier_service_create_organization_audit_logs_request import FrontierServiceCreateOrganizationAuditLogsRequest +from frontier_api.models.frontier_service_create_organization_domain_request import FrontierServiceCreateOrganizationDomainRequest +from frontier_api.models.frontier_service_create_organization_invitation_request import FrontierServiceCreateOrganizationInvitationRequest +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest +from frontier_api.models.frontier_service_update_feature_request import FrontierServiceUpdateFeatureRequest +from frontier_api.models.frontier_service_update_plan_request import FrontierServiceUpdatePlanRequest +from frontier_api.models.frontier_service_update_subscription_request import FrontierServiceUpdateSubscriptionRequest +from frontier_api.models.protobuf_any import ProtobufAny +from frontier_api.models.protobuf_null_value import ProtobufNullValue +from frontier_api.models.rpc_status import RpcStatus +from frontier_api.models.v1beta1_add_platform_user_request import V1beta1AddPlatformUserRequest +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog +from frontier_api.models.v1beta1_audit_log_actor import V1beta1AuditLogActor +from frontier_api.models.v1beta1_audit_log_target import V1beta1AuditLogTarget +from frontier_api.models.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest +from frontier_api.models.v1beta1_auth_strategy import V1beta1AuthStrategy +from frontier_api.models.v1beta1_auth_token_request import V1beta1AuthTokenRequest +from frontier_api.models.v1beta1_auth_token_response import V1beta1AuthTokenResponse +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse +from frontier_api.models.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody +from frontier_api.models.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest +from frontier_api.models.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse +from frontier_api.models.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount +from frontier_api.models.v1beta1_billing_account_request_body import V1beta1BillingAccountRequestBody +from frontier_api.models.v1beta1_billing_transaction import V1beta1BillingTransaction +from frontier_api.models.v1beta1_check_feature_entitlement_response import V1beta1CheckFeatureEntitlementResponse +from frontier_api.models.v1beta1_check_federated_resource_permission_request import V1beta1CheckFederatedResourcePermissionRequest +from frontier_api.models.v1beta1_check_federated_resource_permission_response import V1beta1CheckFederatedResourcePermissionResponse +from frontier_api.models.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest +from frontier_api.models.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse +from frontier_api.models.v1beta1_checkout_feature_body import V1beta1CheckoutFeatureBody +from frontier_api.models.v1beta1_checkout_session import V1beta1CheckoutSession +from frontier_api.models.v1beta1_checkout_subscription_body import V1beta1CheckoutSubscriptionBody +from frontier_api.models.v1beta1_create_billing_account_response import V1beta1CreateBillingAccountResponse +from frontier_api.models.v1beta1_create_checkout_response import V1beta1CreateCheckoutResponse +from frontier_api.models.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest +from frontier_api.models.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse +from frontier_api.models.v1beta1_create_feature_request import V1beta1CreateFeatureRequest +from frontier_api.models.v1beta1_create_feature_response import V1beta1CreateFeatureResponse +from frontier_api.models.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse +from frontier_api.models.v1beta1_create_group_response import V1beta1CreateGroupResponse +from frontier_api.models.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse +from frontier_api.models.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse +from frontier_api.models.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse +from frontier_api.models.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse +from frontier_api.models.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse +from frontier_api.models.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse +from frontier_api.models.v1beta1_create_permission_request import V1beta1CreatePermissionRequest +from frontier_api.models.v1beta1_create_permission_response import V1beta1CreatePermissionResponse +from frontier_api.models.v1beta1_create_plan_request import V1beta1CreatePlanRequest +from frontier_api.models.v1beta1_create_plan_response import V1beta1CreatePlanResponse +from frontier_api.models.v1beta1_create_policy_response import V1beta1CreatePolicyResponse +from frontier_api.models.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest +from frontier_api.models.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse +from frontier_api.models.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse +from frontier_api.models.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse +from frontier_api.models.v1beta1_create_project_response import V1beta1CreateProjectResponse +from frontier_api.models.v1beta1_create_relation_response import V1beta1CreateRelationResponse +from frontier_api.models.v1beta1_create_role_response import V1beta1CreateRoleResponse +from frontier_api.models.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse +from frontier_api.models.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest +from frontier_api.models.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse +from frontier_api.models.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse +from frontier_api.models.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse +from frontier_api.models.v1beta1_create_user_response import V1beta1CreateUserResponse +from frontier_api.models.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse +from frontier_api.models.v1beta1_domain import V1beta1Domain +from frontier_api.models.v1beta1_feature import V1beta1Feature +from frontier_api.models.v1beta1_feature_request_body import V1beta1FeatureRequestBody +from frontier_api.models.v1beta1_get_billing_account_response import V1beta1GetBillingAccountResponse +from frontier_api.models.v1beta1_get_billing_balance_response import V1beta1GetBillingBalanceResponse +from frontier_api.models.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse +from frontier_api.models.v1beta1_get_feature_response import V1beta1GetFeatureResponse +from frontier_api.models.v1beta1_get_group_response import V1beta1GetGroupResponse +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse +from frontier_api.models.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse +from frontier_api.models.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse +from frontier_api.models.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse +from frontier_api.models.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse +from frontier_api.models.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse +from frontier_api.models.v1beta1_get_organization_response import V1beta1GetOrganizationResponse +from frontier_api.models.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse +from frontier_api.models.v1beta1_get_permission_response import V1beta1GetPermissionResponse +from frontier_api.models.v1beta1_get_plan_response import V1beta1GetPlanResponse +from frontier_api.models.v1beta1_get_policy_response import V1beta1GetPolicyResponse +from frontier_api.models.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse +from frontier_api.models.v1beta1_get_project_response import V1beta1GetProjectResponse +from frontier_api.models.v1beta1_get_relation_response import V1beta1GetRelationResponse +from frontier_api.models.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse +from frontier_api.models.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse +from frontier_api.models.v1beta1_get_subscription_response import V1beta1GetSubscriptionResponse +from frontier_api.models.v1beta1_get_user_response import V1beta1GetUserResponse +from frontier_api.models.v1beta1_group import V1beta1Group +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +from frontier_api.models.v1beta1_json_web_key import V1beta1JSONWebKey +from frontier_api.models.v1beta1_key_credential import V1beta1KeyCredential +from frontier_api.models.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse +from frontier_api.models.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse +from frontier_api.models.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse +from frontier_api.models.v1beta1_list_billing_accounts_response import V1beta1ListBillingAccountsResponse +from frontier_api.models.v1beta1_list_billing_transactions_response import V1beta1ListBillingTransactionsResponse +from frontier_api.models.v1beta1_list_checkouts_response import V1beta1ListCheckoutsResponse +from frontier_api.models.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse +from frontier_api.models.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair +from frontier_api.models.v1beta1_list_current_user_invitations_response import V1beta1ListCurrentUserInvitationsResponse +from frontier_api.models.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse +from frontier_api.models.v1beta1_list_features_response import V1beta1ListFeaturesResponse +from frontier_api.models.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse +from frontier_api.models.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse +from frontier_api.models.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair +from frontier_api.models.v1beta1_list_groups_response import V1beta1ListGroupsResponse +from frontier_api.models.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse +from frontier_api.models.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse +from frontier_api.models.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse +from frontier_api.models.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse +from frontier_api.models.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse +from frontier_api.models.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse +from frontier_api.models.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse +from frontier_api.models.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse +from frontier_api.models.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse +from frontier_api.models.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse +from frontier_api.models.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse +from frontier_api.models.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse +from frontier_api.models.v1beta1_list_organization_users_response_role_pair import V1beta1ListOrganizationUsersResponseRolePair +from frontier_api.models.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse +from frontier_api.models.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse +from frontier_api.models.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse +from frontier_api.models.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse +from frontier_api.models.v1beta1_list_plans_response import V1beta1ListPlansResponse +from frontier_api.models.v1beta1_list_policies_response import V1beta1ListPoliciesResponse +from frontier_api.models.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse +from frontier_api.models.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse +from frontier_api.models.v1beta1_list_project_groups_response import V1beta1ListProjectGroupsResponse +from frontier_api.models.v1beta1_list_project_groups_response_role_pair import V1beta1ListProjectGroupsResponseRolePair +from frontier_api.models.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse +from frontier_api.models.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse +from frontier_api.models.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse +from frontier_api.models.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair +from frontier_api.models.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse +from frontier_api.models.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair +from frontier_api.models.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse +from frontier_api.models.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair +from frontier_api.models.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse +from frontier_api.models.v1beta1_list_projects_response import V1beta1ListProjectsResponse +from frontier_api.models.v1beta1_list_relations_response import V1beta1ListRelationsResponse +from frontier_api.models.v1beta1_list_resources_response import V1beta1ListResourcesResponse +from frontier_api.models.v1beta1_list_roles_response import V1beta1ListRolesResponse +from frontier_api.models.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse +from frontier_api.models.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse +from frontier_api.models.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse +from frontier_api.models.v1beta1_list_subscriptions_response import V1beta1ListSubscriptionsResponse +from frontier_api.models.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse +from frontier_api.models.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse +from frontier_api.models.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse +from frontier_api.models.v1beta1_list_users_response import V1beta1ListUsersResponse +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody +from frontier_api.models.v1beta1_namespace import V1beta1Namespace +from frontier_api.models.v1beta1_organization import V1beta1Organization +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody +from frontier_api.models.v1beta1_permission import V1beta1Permission +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody +from frontier_api.models.v1beta1_plan import V1beta1Plan +from frontier_api.models.v1beta1_plan_request_body import V1beta1PlanRequestBody +from frontier_api.models.v1beta1_policy import V1beta1Policy +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody +from frontier_api.models.v1beta1_preference import V1beta1Preference +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody +from frontier_api.models.v1beta1_preference_trait import V1beta1PreferenceTrait +from frontier_api.models.v1beta1_price import V1beta1Price +from frontier_api.models.v1beta1_project import V1beta1Project +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody +from frontier_api.models.v1beta1_relation import V1beta1Relation +from frontier_api.models.v1beta1_relation_request_body import V1beta1RelationRequestBody +from frontier_api.models.v1beta1_resource import V1beta1Resource +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody +from frontier_api.models.v1beta1_role import V1beta1Role +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody +from frontier_api.models.v1beta1_secret_credential import V1beta1SecretCredential +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +from frontier_api.models.v1beta1_service_user_key import V1beta1ServiceUserKey +from frontier_api.models.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody +from frontier_api.models.v1beta1_subscription import V1beta1Subscription +from frontier_api.models.v1beta1_update_billing_account_response import V1beta1UpdateBillingAccountResponse +from frontier_api.models.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse +from frontier_api.models.v1beta1_update_feature_response import V1beta1UpdateFeatureResponse +from frontier_api.models.v1beta1_update_group_response import V1beta1UpdateGroupResponse +from frontier_api.models.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse +from frontier_api.models.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse +from frontier_api.models.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse +from frontier_api.models.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse +from frontier_api.models.v1beta1_update_plan_response import V1beta1UpdatePlanResponse +from frontier_api.models.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse +from frontier_api.models.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse +from frontier_api.models.v1beta1_update_project_response import V1beta1UpdateProjectResponse +from frontier_api.models.v1beta1_update_role_response import V1beta1UpdateRoleResponse +from frontier_api.models.v1beta1_update_subscription_response import V1beta1UpdateSubscriptionResponse +from frontier_api.models.v1beta1_update_user_response import V1beta1UpdateUserResponse +from frontier_api.models.v1beta1_usage import V1beta1Usage +from frontier_api.models.v1beta1_user import V1beta1User +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody +from frontier_api.models.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse diff --git a/frontier_api/models/billing_account_address.py b/frontier_api/models/billing_account_address.py new file mode 100644 index 0000000..6d8c668 --- /dev/null +++ b/frontier_api/models/billing_account_address.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class BillingAccountAddress(BaseModel): + """ + BillingAccountAddress + """ # noqa: E501 + line1: Optional[StrictStr] = None + line2: Optional[StrictStr] = None + city: Optional[StrictStr] = None + state: Optional[StrictStr] = None + postal_code: Optional[StrictStr] = Field(default=None, alias="postalCode") + country: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["line1", "line2", "city", "state", "postalCode", "country"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of BillingAccountAddress from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of BillingAccountAddress from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "line1": obj.get("line1"), + "line2": obj.get("line2"), + "city": obj.get("city"), + "state": obj.get("state"), + "postalCode": obj.get("postalCode"), + "country": obj.get("country") + }) + return _obj + + diff --git a/frontier_api/models/billing_account_balance.py b/frontier_api/models/billing_account_balance.py new file mode 100644 index 0000000..3161b03 --- /dev/null +++ b/frontier_api/models/billing_account_balance.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class BillingAccountBalance(BaseModel): + """ + BillingAccountBalance + """ # noqa: E501 + amount: Optional[StrictStr] = None + currency: Optional[StrictStr] = None + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["amount", "currency", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of BillingAccountBalance from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of BillingAccountBalance from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "amount": obj.get("amount"), + "currency": obj.get("currency"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_add_group_users_request.py b/frontier_api/models/frontier_service_add_group_users_request.py new file mode 100644 index 0000000..a135e41 --- /dev/null +++ b/frontier_api/models/frontier_service_add_group_users_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceAddGroupUsersRequest(BaseModel): + """ + FrontierServiceAddGroupUsersRequest + """ # noqa: E501 + user_ids: Optional[List[StrictStr]] = Field(default=None, alias="userIds") + __properties: ClassVar[List[str]] = ["userIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceAddGroupUsersRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceAddGroupUsersRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userIds": obj.get("userIds") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_add_organization_users_request.py b/frontier_api/models/frontier_service_add_organization_users_request.py new file mode 100644 index 0000000..bab2865 --- /dev/null +++ b/frontier_api/models/frontier_service_add_organization_users_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceAddOrganizationUsersRequest(BaseModel): + """ + FrontierServiceAddOrganizationUsersRequest + """ # noqa: E501 + user_ids: Optional[List[StrictStr]] = Field(default=None, description="List of user IDs to be added to the organization.", alias="userIds") + __properties: ClassVar[List[str]] = ["userIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceAddOrganizationUsersRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceAddOrganizationUsersRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userIds": obj.get("userIds") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_authenticate2_request.py b/frontier_api/models/frontier_service_authenticate2_request.py new file mode 100644 index 0000000..d6b95ad --- /dev/null +++ b/frontier_api/models/frontier_service_authenticate2_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictBool, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceAuthenticate2Request(BaseModel): + """ + FrontierServiceAuthenticate2Request + """ # noqa: E501 + redirect_onstart: Optional[StrictBool] = Field(default=None, description="If set to true, location header will be set for redirect to start auth flow", alias="redirectOnstart") + return_to: Optional[StrictStr] = Field(default=None, description="URL to redirect after successful authentication.
*Example:*`\"https://frontier.example.com\"`", alias="returnTo") + email: Optional[StrictStr] = Field(default=None, description="Email of the user to authenticate. Used for magic links.
*Example:*`example@acme.org`") + callback_url: Optional[StrictStr] = Field(default=None, description="Host which should handle the call to finish authentication flow, for most cases it could be host of frontier but in case of proxies, this will be proxy public endpoint.
*Example:*`https://frontier.example.com/v1beta1/auth/callback`", alias="callbackUrl") + __properties: ClassVar[List[str]] = ["redirectOnstart", "returnTo", "email", "callbackUrl"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceAuthenticate2Request from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceAuthenticate2Request from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "redirectOnstart": obj.get("redirectOnstart"), + "returnTo": obj.get("returnTo"), + "email": obj.get("email"), + "callbackUrl": obj.get("callbackUrl") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_check_feature_entitlement_request.py b/frontier_api/models/frontier_service_check_feature_entitlement_request.py new file mode 100644 index 0000000..53e6202 --- /dev/null +++ b/frontier_api/models/frontier_service_check_feature_entitlement_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCheckFeatureEntitlementRequest(BaseModel): + """ + FrontierServiceCheckFeatureEntitlementRequest + """ # noqa: E501 + feature: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["feature"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCheckFeatureEntitlementRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCheckFeatureEntitlementRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feature": obj.get("feature") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_billing_account_request.py b/frontier_api/models/frontier_service_create_billing_account_request.py new file mode 100644 index 0000000..06c08bc --- /dev/null +++ b/frontier_api/models/frontier_service_create_billing_account_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_billing_account_request_body import V1beta1BillingAccountRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateBillingAccountRequest(BaseModel): + """ + FrontierServiceCreateBillingAccountRequest + """ # noqa: E501 + body: Optional[V1beta1BillingAccountRequestBody] = None + __properties: ClassVar[List[str]] = ["body"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateBillingAccountRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateBillingAccountRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1BillingAccountRequestBody.from_dict(obj.get("body")) if obj.get("body") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_billing_usage_request.py b/frontier_api/models/frontier_service_create_billing_usage_request.py new file mode 100644 index 0000000..6d1bde1 --- /dev/null +++ b/frontier_api/models/frontier_service_create_billing_usage_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_usage import V1beta1Usage +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateBillingUsageRequest(BaseModel): + """ + FrontierServiceCreateBillingUsageRequest + """ # noqa: E501 + usages: Optional[List[V1beta1Usage]] = None + __properties: ClassVar[List[str]] = ["usages"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateBillingUsageRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in usages (list) + _items = [] + if self.usages: + for _item in self.usages: + if _item: + _items.append(_item.to_dict()) + _dict['usages'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateBillingUsageRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "usages": [V1beta1Usage.from_dict(_item) for _item in obj.get("usages")] if obj.get("usages") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_checkout_request.py b/frontier_api/models/frontier_service_create_checkout_request.py new file mode 100644 index 0000000..8e8bdd5 --- /dev/null +++ b/frontier_api/models/frontier_service_create_checkout_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_checkout_feature_body import V1beta1CheckoutFeatureBody +from frontier_api.models.v1beta1_checkout_subscription_body import V1beta1CheckoutSubscriptionBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateCheckoutRequest(BaseModel): + """ + FrontierServiceCreateCheckoutRequest + """ # noqa: E501 + success_url: Optional[StrictStr] = Field(default=None, alias="successUrl") + cancel_url: Optional[StrictStr] = Field(default=None, alias="cancelUrl") + subscription_body: Optional[V1beta1CheckoutSubscriptionBody] = Field(default=None, alias="subscriptionBody") + feature_body: Optional[V1beta1CheckoutFeatureBody] = Field(default=None, alias="featureBody") + __properties: ClassVar[List[str]] = ["successUrl", "cancelUrl", "subscriptionBody", "featureBody"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateCheckoutRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of subscription_body + if self.subscription_body: + _dict['subscriptionBody'] = self.subscription_body.to_dict() + # override the default output from pydantic by calling `to_dict()` of feature_body + if self.feature_body: + _dict['featureBody'] = self.feature_body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateCheckoutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "successUrl": obj.get("successUrl"), + "cancelUrl": obj.get("cancelUrl"), + "subscriptionBody": V1beta1CheckoutSubscriptionBody.from_dict(obj.get("subscriptionBody")) if obj.get("subscriptionBody") is not None else None, + "featureBody": V1beta1CheckoutFeatureBody.from_dict(obj.get("featureBody")) if obj.get("featureBody") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_group_preferences_request.py b/frontier_api/models/frontier_service_create_group_preferences_request.py new file mode 100644 index 0000000..00c3865 --- /dev/null +++ b/frontier_api/models/frontier_service_create_group_preferences_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateGroupPreferencesRequest(BaseModel): + """ + FrontierServiceCreateGroupPreferencesRequest + """ # noqa: E501 + bodies: Optional[List[V1beta1PreferenceRequestBody]] = None + __properties: ClassVar[List[str]] = ["bodies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateGroupPreferencesRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bodies (list) + _items = [] + if self.bodies: + for _item in self.bodies: + if _item: + _items.append(_item.to_dict()) + _dict['bodies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateGroupPreferencesRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bodies": [V1beta1PreferenceRequestBody.from_dict(_item) for _item in obj.get("bodies")] if obj.get("bodies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_organization_audit_logs_request.py b/frontier_api/models/frontier_service_create_organization_audit_logs_request.py new file mode 100644 index 0000000..fe4c144 --- /dev/null +++ b/frontier_api/models/frontier_service_create_organization_audit_logs_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateOrganizationAuditLogsRequest(BaseModel): + """ + FrontierServiceCreateOrganizationAuditLogsRequest + """ # noqa: E501 + logs: Optional[List[V1beta1AuditLog]] = None + __properties: ClassVar[List[str]] = ["logs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateOrganizationAuditLogsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in logs (list) + _items = [] + if self.logs: + for _item in self.logs: + if _item: + _items.append(_item.to_dict()) + _dict['logs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateOrganizationAuditLogsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "logs": [V1beta1AuditLog.from_dict(_item) for _item in obj.get("logs")] if obj.get("logs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_organization_domain_request.py b/frontier_api/models/frontier_service_create_organization_domain_request.py new file mode 100644 index 0000000..8ffffa4 --- /dev/null +++ b/frontier_api/models/frontier_service_create_organization_domain_request.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateOrganizationDomainRequest(BaseModel): + """ + FrontierServiceCreateOrganizationDomainRequest + """ # noqa: E501 + domain: StrictStr = Field(description="domain name to be added to the trusted domain list") + __properties: ClassVar[List[str]] = ["domain"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateOrganizationDomainRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateOrganizationDomainRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domain": obj.get("domain") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_organization_invitation_request.py b/frontier_api/models/frontier_service_create_organization_invitation_request.py new file mode 100644 index 0000000..37ede35 --- /dev/null +++ b/frontier_api/models/frontier_service_create_organization_invitation_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateOrganizationInvitationRequest(BaseModel): + """ + FrontierServiceCreateOrganizationInvitationRequest + """ # noqa: E501 + user_ids: List[StrictStr] = Field(description="user_id is email id of user who are invited inside the organization. If user is not registered on the platform, it will be notified", alias="userIds") + group_ids: Optional[List[StrictStr]] = Field(default=None, description="list of group ids to which user needs to be added as a member.", alias="groupIds") + role_ids: Optional[List[StrictStr]] = Field(default=None, description="list of role ids to which user needs to be added as a member. Roles are binded at organization level by default.", alias="roleIds") + __properties: ClassVar[List[str]] = ["userIds", "groupIds", "roleIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateOrganizationInvitationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateOrganizationInvitationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userIds": obj.get("userIds"), + "groupIds": obj.get("groupIds"), + "roleIds": obj.get("roleIds") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_create_service_user_key_request.py b/frontier_api/models/frontier_service_create_service_user_key_request.py new file mode 100644 index 0000000..9fea74b --- /dev/null +++ b/frontier_api/models/frontier_service_create_service_user_key_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceCreateServiceUserKeyRequest(BaseModel): + """ + FrontierServiceCreateServiceUserKeyRequest + """ # noqa: E501 + title: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["title"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceCreateServiceUserKeyRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceCreateServiceUserKeyRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "title": obj.get("title") + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_update_feature_request.py b/frontier_api/models/frontier_service_update_feature_request.py new file mode 100644 index 0000000..222d81e --- /dev/null +++ b/frontier_api/models/frontier_service_update_feature_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_feature_request_body import V1beta1FeatureRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceUpdateFeatureRequest(BaseModel): + """ + FrontierServiceUpdateFeatureRequest + """ # noqa: E501 + body: Optional[V1beta1FeatureRequestBody] = None + __properties: ClassVar[List[str]] = ["body"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceUpdateFeatureRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceUpdateFeatureRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1FeatureRequestBody.from_dict(obj.get("body")) if obj.get("body") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_update_plan_request.py b/frontier_api/models/frontier_service_update_plan_request.py new file mode 100644 index 0000000..1e3049a --- /dev/null +++ b/frontier_api/models/frontier_service_update_plan_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_plan_request_body import V1beta1PlanRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceUpdatePlanRequest(BaseModel): + """ + FrontierServiceUpdatePlanRequest + """ # noqa: E501 + body: Optional[V1beta1PlanRequestBody] = None + __properties: ClassVar[List[str]] = ["body"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceUpdatePlanRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceUpdatePlanRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1PlanRequestBody.from_dict(obj.get("body")) if obj.get("body") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/frontier_service_update_subscription_request.py b/frontier_api/models/frontier_service_update_subscription_request.py new file mode 100644 index 0000000..5993b7d --- /dev/null +++ b/frontier_api/models/frontier_service_update_subscription_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class FrontierServiceUpdateSubscriptionRequest(BaseModel): + """ + FrontierServiceUpdateSubscriptionRequest + """ # noqa: E501 + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of FrontierServiceUpdateSubscriptionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of FrontierServiceUpdateSubscriptionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/protobuf_any.py b/frontier_api/models/protobuf_any.py new file mode 100644 index 0000000..429cbcd --- /dev/null +++ b/frontier_api/models/protobuf_any.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class ProtobufAny(BaseModel): + """ + ProtobufAny + """ # noqa: E501 + type: Optional[StrictStr] = Field(default=None, alias="@type") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["@type"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ProtobufAny from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + "additional_properties", + }, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of ProtobufAny from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "@type": obj.get("@type") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/frontier_api/model/protobuf_null_value.pyi b/frontier_api/models/protobuf_null_value.py similarity index 55% rename from frontier_api/model/protobuf_null_value.pyi rename to frontier_api/models/protobuf_null_value.py index aa8e31b..ff8855a 100644 --- a/frontier_api/model/protobuf_null_value.pyi +++ b/frontier_api/models/protobuf_null_value.py @@ -3,44 +3,43 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 + Do not edit the class manually. +""" # noqa: E501 -import frozendict # noqa: F401 -from frontier_api import schemas # noqa: F401 +from __future__ import annotations +import json +import pprint +import re # noqa: F401 +from enum import Enum -class ProtobufNullValue( - schemas.EnumBase, - schemas.StrSchema -): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. +try: + from typing import Self +except ImportError: + from typing_extensions import Self - `NullValue` is a singleton enumeration to represent the null value for the -`Value` type union. - The JSON representation for `NullValue` is JSON `null`. +class ProtobufNullValue(str, Enum): + """ + `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. + """ - - NULL_VALUE: Null value. """ - - @schemas.classproperty - def NULL_VALUE(cls): - return cls("NULL_VALUE") + allowed enum values + """ + NULL_VALUE = 'NULL_VALUE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ProtobufNullValue from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/frontier_api/models/rpc_status.py b/frontier_api/models/rpc_status.py new file mode 100644 index 0000000..c36891a --- /dev/null +++ b/frontier_api/models/rpc_status.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictInt, StrictStr +from frontier_api.models.protobuf_any import ProtobufAny +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class RpcStatus(BaseModel): + """ + RpcStatus + """ # noqa: E501 + code: Optional[StrictInt] = None + message: Optional[StrictStr] = None + details: Optional[List[ProtobufAny]] = None + __properties: ClassVar[List[str]] = ["code", "message", "details"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of RpcStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item in self.details: + if _item: + _items.append(_item.to_dict()) + _dict['details'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of RpcStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "message": obj.get("message"), + "details": [ProtobufAny.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_add_platform_user_request.py b/frontier_api/models/v1beta1_add_platform_user_request.py new file mode 100644 index 0000000..d3afe22 --- /dev/null +++ b/frontier_api/models/v1beta1_add_platform_user_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AddPlatformUserRequest(BaseModel): + """ + V1beta1AddPlatformUserRequest + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, description="The user id to add to the platform.", alias="userId") + serviceuser_id: Optional[StrictStr] = Field(default=None, description="The service user id to add to the platform.", alias="serviceuserId") + relation: StrictStr = Field(description="The relation to add as in the platform. It can be admin or member.") + __properties: ClassVar[List[str]] = ["userId", "serviceuserId", "relation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AddPlatformUserRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AddPlatformUserRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "serviceuserId": obj.get("serviceuserId"), + "relation": obj.get("relation") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_audit_log.py b/frontier_api/models/v1beta1_audit_log.py new file mode 100644 index 0000000..71abcf1 --- /dev/null +++ b/frontier_api/models/v1beta1_audit_log.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_audit_log_actor import V1beta1AuditLogActor +from frontier_api.models.v1beta1_audit_log_target import V1beta1AuditLogTarget +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuditLog(BaseModel): + """ + V1beta1AuditLog + """ # noqa: E501 + id: Optional[StrictStr] = None + source: StrictStr = Field(description="The source service generating the event.") + action: StrictStr + actor: Optional[V1beta1AuditLogActor] = None + target: Optional[V1beta1AuditLogTarget] = None + context: Optional[Dict[str, StrictStr]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the log was created.", alias="createdAt") + __properties: ClassVar[List[str]] = ["id", "source", "action", "actor", "target", "context", "createdAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuditLog from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of actor + if self.actor: + _dict['actor'] = self.actor.to_dict() + # override the default output from pydantic by calling `to_dict()` of target + if self.target: + _dict['target'] = self.target.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuditLog from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "source": obj.get("source"), + "action": obj.get("action"), + "actor": V1beta1AuditLogActor.from_dict(obj.get("actor")) if obj.get("actor") is not None else None, + "target": V1beta1AuditLogTarget.from_dict(obj.get("target")) if obj.get("target") is not None else None, + "context": obj.get("context"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_audit_log_actor.py b/frontier_api/models/v1beta1_audit_log_actor.py new file mode 100644 index 0000000..ca15c25 --- /dev/null +++ b/frontier_api/models/v1beta1_audit_log_actor.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuditLogActor(BaseModel): + """ + V1beta1AuditLogActor + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[StrictStr] = None + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "type", "name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuditLogActor from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuditLogActor from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "name": obj.get("name") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_audit_log_target.py b/frontier_api/models/v1beta1_audit_log_target.py new file mode 100644 index 0000000..016fe31 --- /dev/null +++ b/frontier_api/models/v1beta1_audit_log_target.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuditLogTarget(BaseModel): + """ + V1beta1AuditLogTarget + """ # noqa: E501 + id: Optional[StrictStr] = None + type: Optional[StrictStr] = None + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "type", "name"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuditLogTarget from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuditLogTarget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "name": obj.get("name") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_auth_callback_request.py b/frontier_api/models/v1beta1_auth_callback_request.py new file mode 100644 index 0000000..c3d7de2 --- /dev/null +++ b/frontier_api/models/v1beta1_auth_callback_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuthCallbackRequest(BaseModel): + """ + V1beta1AuthCallbackRequest + """ # noqa: E501 + strategy_name: Optional[StrictStr] = Field(default=None, alias="strategyName") + state: Optional[StrictStr] = None + code: Optional[StrictStr] = None + state_options: Optional[Union[str, Any]] = Field(default=None, alias="stateOptions") + __properties: ClassVar[List[str]] = ["strategyName", "state", "code", "stateOptions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuthCallbackRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuthCallbackRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "strategyName": obj.get("strategyName"), + "state": obj.get("state"), + "code": obj.get("code"), + "stateOptions": obj.get("stateOptions") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_auth_strategy.py b/frontier_api/models/v1beta1_auth_strategy.py new file mode 100644 index 0000000..73e2512 --- /dev/null +++ b/frontier_api/models/v1beta1_auth_strategy.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuthStrategy(BaseModel): + """ + V1beta1AuthStrategy + """ # noqa: E501 + name: Optional[StrictStr] = None + params: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "params"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuthStrategy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuthStrategy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "params": obj.get("params") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_auth_token_request.py b/frontier_api/models/v1beta1_auth_token_request.py new file mode 100644 index 0000000..c6242e8 --- /dev/null +++ b/frontier_api/models/v1beta1_auth_token_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuthTokenRequest(BaseModel): + """ + V1beta1AuthTokenRequest + """ # noqa: E501 + grant_type: Optional[StrictStr] = Field(default=None, alias="grantType") + client_id: Optional[StrictStr] = Field(default=None, alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret") + assertion: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["grantType", "clientId", "clientSecret", "assertion"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuthTokenRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuthTokenRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "grantType": obj.get("grantType"), + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "assertion": obj.get("assertion") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_auth_token_response.py b/frontier_api/models/v1beta1_auth_token_response.py new file mode 100644 index 0000000..3471230 --- /dev/null +++ b/frontier_api/models/v1beta1_auth_token_response.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuthTokenResponse(BaseModel): + """ + V1beta1AuthTokenResponse + """ # noqa: E501 + access_token: Optional[StrictStr] = Field(default=None, alias="accessToken") + token_type: Optional[StrictStr] = Field(default=None, alias="tokenType") + __properties: ClassVar[List[str]] = ["accessToken", "tokenType"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuthTokenResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuthTokenResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "accessToken": obj.get("accessToken"), + "tokenType": obj.get("tokenType") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_authenticate_response.py b/frontier_api/models/v1beta1_authenticate_response.py new file mode 100644 index 0000000..7cd3bdb --- /dev/null +++ b/frontier_api/models/v1beta1_authenticate_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1AuthenticateResponse(BaseModel): + """ + V1beta1AuthenticateResponse + """ # noqa: E501 + endpoint: Optional[StrictStr] = None + state: Optional[StrictStr] = None + state_options: Optional[Union[str, Any]] = Field(default=None, alias="stateOptions") + __properties: ClassVar[List[str]] = ["endpoint", "state", "stateOptions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1AuthenticateResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1AuthenticateResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint"), + "state": obj.get("state"), + "stateOptions": obj.get("stateOptions") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_batch_check_permission_body.py b/frontier_api/models/v1beta1_batch_check_permission_body.py new file mode 100644 index 0000000..e71eed8 --- /dev/null +++ b/frontier_api/models/v1beta1_batch_check_permission_body.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BatchCheckPermissionBody(BaseModel): + """ + V1beta1BatchCheckPermissionBody + """ # noqa: E501 + permission: StrictStr = Field(description="the permission name to check.
*Example:* `get` or `list`") + resource: Optional[StrictStr] = Field(default=None, description="`namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`.
*Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825`") + __properties: ClassVar[List[str]] = ["permission", "resource"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BatchCheckPermissionBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BatchCheckPermissionBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permission": obj.get("permission"), + "resource": obj.get("resource") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_batch_check_permission_request.py b/frontier_api/models/v1beta1_batch_check_permission_request.py new file mode 100644 index 0000000..3ab91a4 --- /dev/null +++ b/frontier_api/models/v1beta1_batch_check_permission_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BatchCheckPermissionRequest(BaseModel): + """ + V1beta1BatchCheckPermissionRequest + """ # noqa: E501 + bodies: Optional[List[V1beta1BatchCheckPermissionBody]] = None + __properties: ClassVar[List[str]] = ["bodies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BatchCheckPermissionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bodies (list) + _items = [] + if self.bodies: + for _item in self.bodies: + if _item: + _items.append(_item.to_dict()) + _dict['bodies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BatchCheckPermissionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bodies": [V1beta1BatchCheckPermissionBody.from_dict(_item) for _item in obj.get("bodies")] if obj.get("bodies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_batch_check_permission_response.py b/frontier_api/models/v1beta1_batch_check_permission_response.py new file mode 100644 index 0000000..4c47221 --- /dev/null +++ b/frontier_api/models/v1beta1_batch_check_permission_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BatchCheckPermissionResponse(BaseModel): + """ + V1beta1BatchCheckPermissionResponse + """ # noqa: E501 + pairs: Optional[List[V1beta1BatchCheckPermissionResponsePair]] = None + __properties: ClassVar[List[str]] = ["pairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BatchCheckPermissionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pairs (list) + _items = [] + if self.pairs: + for _item in self.pairs: + if _item: + _items.append(_item.to_dict()) + _dict['pairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BatchCheckPermissionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pairs": [V1beta1BatchCheckPermissionResponsePair.from_dict(_item) for _item in obj.get("pairs")] if obj.get("pairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_batch_check_permission_response_pair.py b/frontier_api/models/v1beta1_batch_check_permission_response_pair.py new file mode 100644 index 0000000..5787f01 --- /dev/null +++ b/frontier_api/models/v1beta1_batch_check_permission_response_pair.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictBool +from frontier_api.models.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BatchCheckPermissionResponsePair(BaseModel): + """ + V1beta1BatchCheckPermissionResponsePair + """ # noqa: E501 + body: Optional[V1beta1BatchCheckPermissionBody] = None + status: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["body", "status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BatchCheckPermissionResponsePair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BatchCheckPermissionResponsePair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1BatchCheckPermissionBody.from_dict(obj.get("body")) if obj.get("body") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_billing_account.py b/frontier_api/models/v1beta1_billing_account.py new file mode 100644 index 0000000..90d290c --- /dev/null +++ b/frontier_api/models/v1beta1_billing_account.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.billing_account_address import BillingAccountAddress +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BillingAccount(BaseModel): + """ + V1beta1BillingAccount + """ # noqa: E501 + id: Optional[StrictStr] = None + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + name: Optional[StrictStr] = None + email: Optional[StrictStr] = None + phone: Optional[StrictStr] = None + address: Optional[BillingAccountAddress] = None + provider_id: Optional[StrictStr] = Field(default=None, alias="providerId") + provider: Optional[StrictStr] = None + currency: Optional[StrictStr] = None + state: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "orgId", "name", "email", "phone", "address", "providerId", "provider", "currency", "state", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BillingAccount from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of address + if self.address: + _dict['address'] = self.address.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BillingAccount from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "orgId": obj.get("orgId"), + "name": obj.get("name"), + "email": obj.get("email"), + "phone": obj.get("phone"), + "address": BillingAccountAddress.from_dict(obj.get("address")) if obj.get("address") is not None else None, + "providerId": obj.get("providerId"), + "provider": obj.get("provider"), + "currency": obj.get("currency"), + "state": obj.get("state"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_billing_account_request_body.py b/frontier_api/models/v1beta1_billing_account_request_body.py new file mode 100644 index 0000000..3d9be80 --- /dev/null +++ b/frontier_api/models/v1beta1_billing_account_request_body.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from frontier_api.models.billing_account_address import BillingAccountAddress +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BillingAccountRequestBody(BaseModel): + """ + V1beta1BillingAccountRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = None + email: Optional[StrictStr] = None + phone: Optional[StrictStr] = None + address: Optional[BillingAccountAddress] = None + currency: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "email", "phone", "address", "currency", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BillingAccountRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of address + if self.address: + _dict['address'] = self.address.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BillingAccountRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "email": obj.get("email"), + "phone": obj.get("phone"), + "address": BillingAccountAddress.from_dict(obj.get("address")) if obj.get("address") is not None else None, + "currency": obj.get("currency"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_billing_transaction.py b/frontier_api/models/v1beta1_billing_transaction.py new file mode 100644 index 0000000..74e1bed --- /dev/null +++ b/frontier_api/models/v1beta1_billing_transaction.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1BillingTransaction(BaseModel): + """ + V1beta1BillingTransaction + """ # noqa: E501 + id: Optional[StrictStr] = None + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + source: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + type: Optional[StrictStr] = None + description: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "customerId", "source", "amount", "type", "description", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1BillingTransaction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1BillingTransaction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "customerId": obj.get("customerId"), + "source": obj.get("source"), + "amount": obj.get("amount"), + "type": obj.get("type"), + "description": obj.get("description"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_check_feature_entitlement_response.py b/frontier_api/models/v1beta1_check_feature_entitlement_response.py new file mode 100644 index 0000000..ec7c8c1 --- /dev/null +++ b/frontier_api/models/v1beta1_check_feature_entitlement_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictBool +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckFeatureEntitlementResponse(BaseModel): + """ + V1beta1CheckFeatureEntitlementResponse + """ # noqa: E501 + status: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckFeatureEntitlementResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckFeatureEntitlementResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_check_federated_resource_permission_request.py b/frontier_api/models/v1beta1_check_federated_resource_permission_request.py new file mode 100644 index 0000000..87b391d --- /dev/null +++ b/frontier_api/models/v1beta1_check_federated_resource_permission_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckFederatedResourcePermissionRequest(BaseModel): + """ + V1beta1CheckFederatedResourcePermissionRequest + """ # noqa: E501 + subject: StrictStr = Field(description="the subject to check.
*Example:* `user:..uuidofuser..`") + resource: StrictStr = Field(description="`namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`.
*Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825`") + permission: StrictStr = Field(description="the permission name to check.
*Example:* `get`, `list`, `compute.instance.create`") + __properties: ClassVar[List[str]] = ["subject", "resource", "permission"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckFederatedResourcePermissionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckFederatedResourcePermissionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subject": obj.get("subject"), + "resource": obj.get("resource"), + "permission": obj.get("permission") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_check_federated_resource_permission_response.py b/frontier_api/models/v1beta1_check_federated_resource_permission_response.py new file mode 100644 index 0000000..5f397c0 --- /dev/null +++ b/frontier_api/models/v1beta1_check_federated_resource_permission_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictBool +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckFederatedResourcePermissionResponse(BaseModel): + """ + V1beta1CheckFederatedResourcePermissionResponse + """ # noqa: E501 + status: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckFederatedResourcePermissionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckFederatedResourcePermissionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_check_resource_permission_request.py b/frontier_api/models/v1beta1_check_resource_permission_request.py new file mode 100644 index 0000000..68a22f4 --- /dev/null +++ b/frontier_api/models/v1beta1_check_resource_permission_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckResourcePermissionRequest(BaseModel): + """ + V1beta1CheckResourcePermissionRequest + """ # noqa: E501 + object_id: Optional[StrictStr] = Field(default=None, description="Deprecated. Use `resource` field instead.", alias="objectId") + object_namespace: Optional[StrictStr] = Field(default=None, description="Deprecated. Use `resource` field instead.", alias="objectNamespace") + permission: StrictStr = Field(description="the permission name to check.
*Example:* `get`, `list`, `compute.instance.create`") + resource: Optional[StrictStr] = Field(default=None, description="`namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`.
*Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825`") + __properties: ClassVar[List[str]] = ["objectId", "objectNamespace", "permission", "resource"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckResourcePermissionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckResourcePermissionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "objectId": obj.get("objectId"), + "objectNamespace": obj.get("objectNamespace"), + "permission": obj.get("permission"), + "resource": obj.get("resource") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_check_resource_permission_response.py b/frontier_api/models/v1beta1_check_resource_permission_response.py new file mode 100644 index 0000000..4bc3abb --- /dev/null +++ b/frontier_api/models/v1beta1_check_resource_permission_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictBool +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckResourcePermissionResponse(BaseModel): + """ + V1beta1CheckResourcePermissionResponse + """ # noqa: E501 + status: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckResourcePermissionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckResourcePermissionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_checkout_feature_body.py b/frontier_api/models/v1beta1_checkout_feature_body.py new file mode 100644 index 0000000..0ea464a --- /dev/null +++ b/frontier_api/models/v1beta1_checkout_feature_body.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckoutFeatureBody(BaseModel): + """ + V1beta1CheckoutFeatureBody + """ # noqa: E501 + feature: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["feature"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckoutFeatureBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckoutFeatureBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feature": obj.get("feature") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_checkout_session.py b/frontier_api/models/v1beta1_checkout_session.py new file mode 100644 index 0000000..1845878 --- /dev/null +++ b/frontier_api/models/v1beta1_checkout_session.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckoutSession(BaseModel): + """ + V1beta1CheckoutSession + """ # noqa: E501 + id: Optional[StrictStr] = None + checkout_url: Optional[StrictStr] = Field(default=None, alias="checkoutUrl") + success_url: Optional[StrictStr] = Field(default=None, alias="successUrl") + cancel_url: Optional[StrictStr] = Field(default=None, alias="cancelUrl") + state: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + expire_at: Optional[datetime] = Field(default=None, alias="expireAt") + __properties: ClassVar[List[str]] = ["id", "checkoutUrl", "successUrl", "cancelUrl", "state", "metadata", "createdAt", "updatedAt", "expireAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckoutSession from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckoutSession from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "checkoutUrl": obj.get("checkoutUrl"), + "successUrl": obj.get("successUrl"), + "cancelUrl": obj.get("cancelUrl"), + "state": obj.get("state"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "expireAt": obj.get("expireAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_checkout_subscription_body.py b/frontier_api/models/v1beta1_checkout_subscription_body.py new file mode 100644 index 0000000..7176657 --- /dev/null +++ b/frontier_api/models/v1beta1_checkout_subscription_body.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictInt, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CheckoutSubscriptionBody(BaseModel): + """ + V1beta1CheckoutSubscriptionBody + """ # noqa: E501 + plan: Optional[StrictStr] = None + trail_days: Optional[StrictInt] = Field(default=None, alias="trailDays") + __properties: ClassVar[List[str]] = ["plan", "trailDays"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CheckoutSubscriptionBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CheckoutSubscriptionBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plan": obj.get("plan"), + "trailDays": obj.get("trailDays") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_billing_account_response.py b/frontier_api/models/v1beta1_create_billing_account_response.py new file mode 100644 index 0000000..50e299a --- /dev/null +++ b/frontier_api/models/v1beta1_create_billing_account_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateBillingAccountResponse(BaseModel): + """ + V1beta1CreateBillingAccountResponse + """ # noqa: E501 + billing_account: Optional[V1beta1BillingAccount] = Field(default=None, alias="billingAccount") + __properties: ClassVar[List[str]] = ["billingAccount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateBillingAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of billing_account + if self.billing_account: + _dict['billingAccount'] = self.billing_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateBillingAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "billingAccount": V1beta1BillingAccount.from_dict(obj.get("billingAccount")) if obj.get("billingAccount") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_checkout_response.py b/frontier_api/models/v1beta1_create_checkout_response.py new file mode 100644 index 0000000..4ec586e --- /dev/null +++ b/frontier_api/models/v1beta1_create_checkout_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_checkout_session import V1beta1CheckoutSession +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateCheckoutResponse(BaseModel): + """ + V1beta1CreateCheckoutResponse + """ # noqa: E501 + checkout_session: Optional[V1beta1CheckoutSession] = Field(default=None, alias="checkoutSession") + __properties: ClassVar[List[str]] = ["checkoutSession"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateCheckoutResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of checkout_session + if self.checkout_session: + _dict['checkoutSession'] = self.checkout_session.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateCheckoutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "checkoutSession": V1beta1CheckoutSession.from_dict(obj.get("checkoutSession")) if obj.get("checkoutSession") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_current_user_preferences_request.py b/frontier_api/models/v1beta1_create_current_user_preferences_request.py new file mode 100644 index 0000000..7400cc2 --- /dev/null +++ b/frontier_api/models/v1beta1_create_current_user_preferences_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateCurrentUserPreferencesRequest(BaseModel): + """ + V1beta1CreateCurrentUserPreferencesRequest + """ # noqa: E501 + bodies: Optional[List[V1beta1PreferenceRequestBody]] = None + __properties: ClassVar[List[str]] = ["bodies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateCurrentUserPreferencesRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bodies (list) + _items = [] + if self.bodies: + for _item in self.bodies: + if _item: + _items.append(_item.to_dict()) + _dict['bodies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateCurrentUserPreferencesRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bodies": [V1beta1PreferenceRequestBody.from_dict(_item) for _item in obj.get("bodies")] if obj.get("bodies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_current_user_preferences_response.py b/frontier_api/models/v1beta1_create_current_user_preferences_response.py new file mode 100644 index 0000000..309a129 --- /dev/null +++ b/frontier_api/models/v1beta1_create_current_user_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateCurrentUserPreferencesResponse(BaseModel): + """ + V1beta1CreateCurrentUserPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateCurrentUserPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateCurrentUserPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_feature_request.py b/frontier_api/models/v1beta1_create_feature_request.py new file mode 100644 index 0000000..b1e402b --- /dev/null +++ b/frontier_api/models/v1beta1_create_feature_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_feature_request_body import V1beta1FeatureRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateFeatureRequest(BaseModel): + """ + V1beta1CreateFeatureRequest + """ # noqa: E501 + body: Optional[V1beta1FeatureRequestBody] = None + __properties: ClassVar[List[str]] = ["body"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateFeatureRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateFeatureRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1FeatureRequestBody.from_dict(obj.get("body")) if obj.get("body") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_feature_response.py b/frontier_api/models/v1beta1_create_feature_response.py new file mode 100644 index 0000000..e11e5d2 --- /dev/null +++ b/frontier_api/models/v1beta1_create_feature_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_feature import V1beta1Feature +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateFeatureResponse(BaseModel): + """ + V1beta1CreateFeatureResponse + """ # noqa: E501 + feature: Optional[V1beta1Feature] = None + __properties: ClassVar[List[str]] = ["feature"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateFeatureResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of feature + if self.feature: + _dict['feature'] = self.feature.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateFeatureResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feature": V1beta1Feature.from_dict(obj.get("feature")) if obj.get("feature") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_group_preferences_response.py b/frontier_api/models/v1beta1_create_group_preferences_response.py new file mode 100644 index 0000000..af08e24 --- /dev/null +++ b/frontier_api/models/v1beta1_create_group_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateGroupPreferencesResponse(BaseModel): + """ + V1beta1CreateGroupPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateGroupPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateGroupPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_group_response.py b/frontier_api/models/v1beta1_create_group_response.py new file mode 100644 index 0000000..35974e4 --- /dev/null +++ b/frontier_api/models/v1beta1_create_group_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_group import V1beta1Group +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateGroupResponse(BaseModel): + """ + V1beta1CreateGroupResponse + """ # noqa: E501 + group: Optional[V1beta1Group] = None + __properties: ClassVar[List[str]] = ["group"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "group": V1beta1Group.from_dict(obj.get("group")) if obj.get("group") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_meta_schema_response.py b/frontier_api/models/v1beta1_create_meta_schema_response.py new file mode 100644 index 0000000..df6bb3b --- /dev/null +++ b/frontier_api/models/v1beta1_create_meta_schema_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateMetaSchemaResponse(BaseModel): + """ + V1beta1CreateMetaSchemaResponse + """ # noqa: E501 + metaschema: Optional[V1beta1MetaSchema] = None + __properties: ClassVar[List[str]] = ["metaschema"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateMetaSchemaResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metaschema + if self.metaschema: + _dict['metaschema'] = self.metaschema.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateMetaSchemaResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metaschema": V1beta1MetaSchema.from_dict(obj.get("metaschema")) if obj.get("metaschema") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_organization_domain_response.py b/frontier_api/models/v1beta1_create_organization_domain_response.py new file mode 100644 index 0000000..c7f4a3d --- /dev/null +++ b/frontier_api/models/v1beta1_create_organization_domain_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_domain import V1beta1Domain +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateOrganizationDomainResponse(BaseModel): + """ + V1beta1CreateOrganizationDomainResponse + """ # noqa: E501 + domain: Optional[V1beta1Domain] = None + __properties: ClassVar[List[str]] = ["domain"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateOrganizationDomainResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of domain + if self.domain: + _dict['domain'] = self.domain.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateOrganizationDomainResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domain": V1beta1Domain.from_dict(obj.get("domain")) if obj.get("domain") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_organization_invitation_response.py b/frontier_api/models/v1beta1_create_organization_invitation_response.py new file mode 100644 index 0000000..1e7f758 --- /dev/null +++ b/frontier_api/models/v1beta1_create_organization_invitation_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateOrganizationInvitationResponse(BaseModel): + """ + V1beta1CreateOrganizationInvitationResponse + """ # noqa: E501 + invitations: Optional[List[V1beta1Invitation]] = None + __properties: ClassVar[List[str]] = ["invitations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateOrganizationInvitationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in invitations (list) + _items = [] + if self.invitations: + for _item in self.invitations: + if _item: + _items.append(_item.to_dict()) + _dict['invitations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateOrganizationInvitationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invitations": [V1beta1Invitation.from_dict(_item) for _item in obj.get("invitations")] if obj.get("invitations") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_organization_preferences_response.py b/frontier_api/models/v1beta1_create_organization_preferences_response.py new file mode 100644 index 0000000..1315e14 --- /dev/null +++ b/frontier_api/models/v1beta1_create_organization_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateOrganizationPreferencesResponse(BaseModel): + """ + V1beta1CreateOrganizationPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateOrganizationPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateOrganizationPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_organization_response.py b/frontier_api/models/v1beta1_create_organization_response.py new file mode 100644 index 0000000..800785f --- /dev/null +++ b/frontier_api/models/v1beta1_create_organization_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateOrganizationResponse(BaseModel): + """ + V1beta1CreateOrganizationResponse + """ # noqa: E501 + organization: Optional[V1beta1Organization] = None + __properties: ClassVar[List[str]] = ["organization"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateOrganizationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of organization + if self.organization: + _dict['organization'] = self.organization.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateOrganizationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organization": V1beta1Organization.from_dict(obj.get("organization")) if obj.get("organization") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_organization_role_response.py b/frontier_api/models/v1beta1_create_organization_role_response.py new file mode 100644 index 0000000..f5a1d19 --- /dev/null +++ b/frontier_api/models/v1beta1_create_organization_role_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateOrganizationRoleResponse(BaseModel): + """ + V1beta1CreateOrganizationRoleResponse + """ # noqa: E501 + role: Optional[V1beta1Role] = None + __properties: ClassVar[List[str]] = ["role"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateOrganizationRoleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of role + if self.role: + _dict['role'] = self.role.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateOrganizationRoleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": V1beta1Role.from_dict(obj.get("role")) if obj.get("role") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_permission_request.py b/frontier_api/models/v1beta1_create_permission_request.py new file mode 100644 index 0000000..614f470 --- /dev/null +++ b/frontier_api/models/v1beta1_create_permission_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePermissionRequest(BaseModel): + """ + V1beta1CreatePermissionRequest + """ # noqa: E501 + bodies: Optional[List[V1beta1PermissionRequestBody]] = None + __properties: ClassVar[List[str]] = ["bodies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePermissionRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in bodies (list) + _items = [] + if self.bodies: + for _item in self.bodies: + if _item: + _items.append(_item.to_dict()) + _dict['bodies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePermissionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bodies": [V1beta1PermissionRequestBody.from_dict(_item) for _item in obj.get("bodies")] if obj.get("bodies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_permission_response.py b/frontier_api/models/v1beta1_create_permission_response.py new file mode 100644 index 0000000..2dd5330 --- /dev/null +++ b/frontier_api/models/v1beta1_create_permission_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_permission import V1beta1Permission +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePermissionResponse(BaseModel): + """ + V1beta1CreatePermissionResponse + """ # noqa: E501 + permissions: Optional[List[V1beta1Permission]] = None + __properties: ClassVar[List[str]] = ["permissions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePermissionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item in self.permissions: + if _item: + _items.append(_item.to_dict()) + _dict['permissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePermissionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [V1beta1Permission.from_dict(_item) for _item in obj.get("permissions")] if obj.get("permissions") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_plan_request.py b/frontier_api/models/v1beta1_create_plan_request.py new file mode 100644 index 0000000..927d4eb --- /dev/null +++ b/frontier_api/models/v1beta1_create_plan_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_plan_request_body import V1beta1PlanRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePlanRequest(BaseModel): + """ + V1beta1CreatePlanRequest + """ # noqa: E501 + body: Optional[V1beta1PlanRequestBody] = None + __properties: ClassVar[List[str]] = ["body"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePlanRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePlanRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1PlanRequestBody.from_dict(obj.get("body")) if obj.get("body") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_plan_response.py b/frontier_api/models/v1beta1_create_plan_response.py new file mode 100644 index 0000000..96744e7 --- /dev/null +++ b/frontier_api/models/v1beta1_create_plan_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_plan import V1beta1Plan +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePlanResponse(BaseModel): + """ + V1beta1CreatePlanResponse + """ # noqa: E501 + plan: Optional[V1beta1Plan] = None + __properties: ClassVar[List[str]] = ["plan"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePlanResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plan + if self.plan: + _dict['plan'] = self.plan.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePlanResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plan": V1beta1Plan.from_dict(obj.get("plan")) if obj.get("plan") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_policy_response.py b/frontier_api/models/v1beta1_create_policy_response.py new file mode 100644 index 0000000..172b24e --- /dev/null +++ b/frontier_api/models/v1beta1_create_policy_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_policy import V1beta1Policy +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePolicyResponse(BaseModel): + """ + V1beta1CreatePolicyResponse + """ # noqa: E501 + policy: Optional[V1beta1Policy] = None + __properties: ClassVar[List[str]] = ["policy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePolicyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": V1beta1Policy.from_dict(obj.get("policy")) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_preferences_request.py b/frontier_api/models/v1beta1_create_preferences_request.py new file mode 100644 index 0000000..b0401fc --- /dev/null +++ b/frontier_api/models/v1beta1_create_preferences_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePreferencesRequest(BaseModel): + """ + V1beta1CreatePreferencesRequest + """ # noqa: E501 + preferences: Optional[List[V1beta1PreferenceRequestBody]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePreferencesRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePreferencesRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1PreferenceRequestBody.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_preferences_response.py b/frontier_api/models/v1beta1_create_preferences_response.py new file mode 100644 index 0000000..8a21398 --- /dev/null +++ b/frontier_api/models/v1beta1_create_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreatePreferencesResponse(BaseModel): + """ + V1beta1CreatePreferencesResponse + """ # noqa: E501 + preference: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preference"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreatePreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preference (list) + _items = [] + if self.preference: + for _item in self.preference: + if _item: + _items.append(_item.to_dict()) + _dict['preference'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreatePreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preference": [V1beta1Preference.from_dict(_item) for _item in obj.get("preference")] if obj.get("preference") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_project_preferences_response.py b/frontier_api/models/v1beta1_create_project_preferences_response.py new file mode 100644 index 0000000..ac3b8c5 --- /dev/null +++ b/frontier_api/models/v1beta1_create_project_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateProjectPreferencesResponse(BaseModel): + """ + V1beta1CreateProjectPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateProjectPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateProjectPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_project_resource_response.py b/frontier_api/models/v1beta1_create_project_resource_response.py new file mode 100644 index 0000000..1c06564 --- /dev/null +++ b/frontier_api/models/v1beta1_create_project_resource_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_resource import V1beta1Resource +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateProjectResourceResponse(BaseModel): + """ + V1beta1CreateProjectResourceResponse + """ # noqa: E501 + resource: Optional[V1beta1Resource] = None + __properties: ClassVar[List[str]] = ["resource"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateProjectResourceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resource + if self.resource: + _dict['resource'] = self.resource.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateProjectResourceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resource": V1beta1Resource.from_dict(obj.get("resource")) if obj.get("resource") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_project_response.py b/frontier_api/models/v1beta1_create_project_response.py new file mode 100644 index 0000000..7fbb95b --- /dev/null +++ b/frontier_api/models/v1beta1_create_project_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateProjectResponse(BaseModel): + """ + V1beta1CreateProjectResponse + """ # noqa: E501 + project: Optional[V1beta1Project] = None + __properties: ClassVar[List[str]] = ["project"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateProjectResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of project + if self.project: + _dict['project'] = self.project.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateProjectResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "project": V1beta1Project.from_dict(obj.get("project")) if obj.get("project") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_relation_response.py b/frontier_api/models/v1beta1_create_relation_response.py new file mode 100644 index 0000000..d0368cf --- /dev/null +++ b/frontier_api/models/v1beta1_create_relation_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_relation import V1beta1Relation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateRelationResponse(BaseModel): + """ + V1beta1CreateRelationResponse + """ # noqa: E501 + relation: Optional[V1beta1Relation] = None + __properties: ClassVar[List[str]] = ["relation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateRelationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of relation + if self.relation: + _dict['relation'] = self.relation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateRelationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "relation": V1beta1Relation.from_dict(obj.get("relation")) if obj.get("relation") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_role_response.py b/frontier_api/models/v1beta1_create_role_response.py new file mode 100644 index 0000000..84018fd --- /dev/null +++ b/frontier_api/models/v1beta1_create_role_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateRoleResponse(BaseModel): + """ + V1beta1CreateRoleResponse + """ # noqa: E501 + role: Optional[V1beta1Role] = None + __properties: ClassVar[List[str]] = ["role"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateRoleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of role + if self.role: + _dict['role'] = self.role.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateRoleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": V1beta1Role.from_dict(obj.get("role")) if obj.get("role") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_service_user_key_response.py b/frontier_api/models/v1beta1_create_service_user_key_response.py new file mode 100644 index 0000000..98607ab --- /dev/null +++ b/frontier_api/models/v1beta1_create_service_user_key_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_key_credential import V1beta1KeyCredential +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateServiceUserKeyResponse(BaseModel): + """ + V1beta1CreateServiceUserKeyResponse + """ # noqa: E501 + key: Optional[V1beta1KeyCredential] = None + __properties: ClassVar[List[str]] = ["key"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateServiceUserKeyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of key + if self.key: + _dict['key'] = self.key.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateServiceUserKeyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "key": V1beta1KeyCredential.from_dict(obj.get("key")) if obj.get("key") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_service_user_request.py b/frontier_api/models/v1beta1_create_service_user_request.py new file mode 100644 index 0000000..4ac6a4c --- /dev/null +++ b/frontier_api/models/v1beta1_create_service_user_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateServiceUserRequest(BaseModel): + """ + V1beta1CreateServiceUserRequest + """ # noqa: E501 + body: Optional[V1beta1ServiceUserRequestBody] = None + org_id: StrictStr = Field(description="The organization ID to which the service user belongs to.", alias="orgId") + __properties: ClassVar[List[str]] = ["body", "orgId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateServiceUserRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of body + if self.body: + _dict['body'] = self.body.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateServiceUserRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "body": V1beta1ServiceUserRequestBody.from_dict(obj.get("body")) if obj.get("body") is not None else None, + "orgId": obj.get("orgId") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_service_user_response.py b/frontier_api/models/v1beta1_create_service_user_response.py new file mode 100644 index 0000000..6bf6aab --- /dev/null +++ b/frontier_api/models/v1beta1_create_service_user_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateServiceUserResponse(BaseModel): + """ + V1beta1CreateServiceUserResponse + """ # noqa: E501 + serviceuser: Optional[V1beta1ServiceUser] = None + __properties: ClassVar[List[str]] = ["serviceuser"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateServiceUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of serviceuser + if self.serviceuser: + _dict['serviceuser'] = self.serviceuser.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateServiceUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceuser": V1beta1ServiceUser.from_dict(obj.get("serviceuser")) if obj.get("serviceuser") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_service_user_secret_response.py b/frontier_api/models/v1beta1_create_service_user_secret_response.py new file mode 100644 index 0000000..df3fb86 --- /dev/null +++ b/frontier_api/models/v1beta1_create_service_user_secret_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_secret_credential import V1beta1SecretCredential +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateServiceUserSecretResponse(BaseModel): + """ + V1beta1CreateServiceUserSecretResponse + """ # noqa: E501 + secret: Optional[V1beta1SecretCredential] = None + __properties: ClassVar[List[str]] = ["secret"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateServiceUserSecretResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of secret + if self.secret: + _dict['secret'] = self.secret.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateServiceUserSecretResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "secret": V1beta1SecretCredential.from_dict(obj.get("secret")) if obj.get("secret") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_user_preferences_response.py b/frontier_api/models/v1beta1_create_user_preferences_response.py new file mode 100644 index 0000000..809c111 --- /dev/null +++ b/frontier_api/models/v1beta1_create_user_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateUserPreferencesResponse(BaseModel): + """ + V1beta1CreateUserPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateUserPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateUserPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_create_user_response.py b/frontier_api/models/v1beta1_create_user_response.py new file mode 100644 index 0000000..d600fcf --- /dev/null +++ b/frontier_api/models/v1beta1_create_user_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1CreateUserResponse(BaseModel): + """ + V1beta1CreateUserResponse + """ # noqa: E501 + user: Optional[V1beta1User] = None + __properties: ClassVar[List[str]] = ["user"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1CreateUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1CreateUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": V1beta1User.from_dict(obj.get("user")) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_describe_preferences_response.py b/frontier_api/models/v1beta1_describe_preferences_response.py new file mode 100644 index 0000000..2bfba6b --- /dev/null +++ b/frontier_api/models/v1beta1_describe_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference_trait import V1beta1PreferenceTrait +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1DescribePreferencesResponse(BaseModel): + """ + V1beta1DescribePreferencesResponse + """ # noqa: E501 + traits: Optional[List[V1beta1PreferenceTrait]] = None + __properties: ClassVar[List[str]] = ["traits"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1DescribePreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in traits (list) + _items = [] + if self.traits: + for _item in self.traits: + if _item: + _items.append(_item.to_dict()) + _dict['traits'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1DescribePreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "traits": [V1beta1PreferenceTrait.from_dict(_item) for _item in obj.get("traits")] if obj.get("traits") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_domain.py b/frontier_api/models/v1beta1_domain.py new file mode 100644 index 0000000..6676d22 --- /dev/null +++ b/frontier_api/models/v1beta1_domain.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Domain(BaseModel): + """ + V1beta1Domain + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The domain id") + name: Optional[StrictStr] = Field(default=None, description="The domain name") + org_id: Optional[StrictStr] = Field(default=None, description="The organization id", alias="orgId") + token: Optional[StrictStr] = Field(default=None, description="The dns TXT record token to verify the domain") + state: Optional[StrictStr] = Field(default=None, description="The domain state either pending or verified") + created_at: Optional[datetime] = Field(default=None, description="The time the domain whitelist request was created", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the org domain was updated", alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "orgId", "token", "state", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Domain from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Domain from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "orgId": obj.get("orgId"), + "token": obj.get("token"), + "state": obj.get("state"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_feature.py b/frontier_api/models/v1beta1_feature.py new file mode 100644 index 0000000..dc1abf7 --- /dev/null +++ b/frontier_api/models/v1beta1_feature.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_price import V1beta1Price +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Feature(BaseModel): + """ + V1beta1Feature + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + plan_ids: Optional[List[StrictStr]] = Field(default=None, alias="planIds") + state: Optional[StrictStr] = None + prices: Optional[List[V1beta1Price]] = None + credit_amount: Optional[StrictStr] = Field(default=None, alias="creditAmount") + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "title", "description", "planIds", "state", "prices", "creditAmount", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Feature from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in prices (list) + _items = [] + if self.prices: + for _item in self.prices: + if _item: + _items.append(_item.to_dict()) + _dict['prices'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Feature from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "description": obj.get("description"), + "planIds": obj.get("planIds"), + "state": obj.get("state"), + "prices": [V1beta1Price.from_dict(_item) for _item in obj.get("prices")] if obj.get("prices") is not None else None, + "creditAmount": obj.get("creditAmount"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_feature_request_body.py b/frontier_api/models/v1beta1_feature_request_body.py new file mode 100644 index 0000000..88df85f --- /dev/null +++ b/frontier_api/models/v1beta1_feature_request_body.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_price import V1beta1Price +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1FeatureRequestBody(BaseModel): + """ + V1beta1FeatureRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + plan_id: Optional[StrictStr] = Field(default=None, alias="planId") + prices: Optional[List[V1beta1Price]] = None + credit_amount: Optional[StrictStr] = Field(default=None, alias="creditAmount") + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "title", "description", "planId", "prices", "creditAmount", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1FeatureRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in prices (list) + _items = [] + if self.prices: + for _item in self.prices: + if _item: + _items.append(_item.to_dict()) + _dict['prices'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1FeatureRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "title": obj.get("title"), + "description": obj.get("description"), + "planId": obj.get("planId"), + "prices": [V1beta1Price.from_dict(_item) for _item in obj.get("prices")] if obj.get("prices") is not None else None, + "creditAmount": obj.get("creditAmount"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_billing_account_response.py b/frontier_api/models/v1beta1_get_billing_account_response.py new file mode 100644 index 0000000..34d4fd0 --- /dev/null +++ b/frontier_api/models/v1beta1_get_billing_account_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetBillingAccountResponse(BaseModel): + """ + V1beta1GetBillingAccountResponse + """ # noqa: E501 + billing_account: Optional[V1beta1BillingAccount] = Field(default=None, alias="billingAccount") + __properties: ClassVar[List[str]] = ["billingAccount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetBillingAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of billing_account + if self.billing_account: + _dict['billingAccount'] = self.billing_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetBillingAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "billingAccount": V1beta1BillingAccount.from_dict(obj.get("billingAccount")) if obj.get("billingAccount") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_billing_balance_response.py b/frontier_api/models/v1beta1_get_billing_balance_response.py new file mode 100644 index 0000000..44bf448 --- /dev/null +++ b/frontier_api/models/v1beta1_get_billing_balance_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.billing_account_balance import BillingAccountBalance +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetBillingBalanceResponse(BaseModel): + """ + V1beta1GetBillingBalanceResponse + """ # noqa: E501 + balance: Optional[BillingAccountBalance] = None + __properties: ClassVar[List[str]] = ["balance"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetBillingBalanceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of balance + if self.balance: + _dict['balance'] = self.balance.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetBillingBalanceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "balance": BillingAccountBalance.from_dict(obj.get("balance")) if obj.get("balance") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_current_user_response.py b/frontier_api/models/v1beta1_get_current_user_response.py new file mode 100644 index 0000000..f8da6a9 --- /dev/null +++ b/frontier_api/models/v1beta1_get_current_user_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetCurrentUserResponse(BaseModel): + """ + V1beta1GetCurrentUserResponse + """ # noqa: E501 + user: Optional[V1beta1User] = None + serviceuser: Optional[V1beta1ServiceUser] = None + __properties: ClassVar[List[str]] = ["user", "serviceuser"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetCurrentUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + # override the default output from pydantic by calling `to_dict()` of serviceuser + if self.serviceuser: + _dict['serviceuser'] = self.serviceuser.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetCurrentUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": V1beta1User.from_dict(obj.get("user")) if obj.get("user") is not None else None, + "serviceuser": V1beta1ServiceUser.from_dict(obj.get("serviceuser")) if obj.get("serviceuser") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_feature_response.py b/frontier_api/models/v1beta1_get_feature_response.py new file mode 100644 index 0000000..e164b5a --- /dev/null +++ b/frontier_api/models/v1beta1_get_feature_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_feature import V1beta1Feature +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetFeatureResponse(BaseModel): + """ + V1beta1GetFeatureResponse + """ # noqa: E501 + feature: Optional[V1beta1Feature] = None + __properties: ClassVar[List[str]] = ["feature"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetFeatureResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of feature + if self.feature: + _dict['feature'] = self.feature.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetFeatureResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feature": V1beta1Feature.from_dict(obj.get("feature")) if obj.get("feature") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_group_response.py b/frontier_api/models/v1beta1_get_group_response.py new file mode 100644 index 0000000..fb7285b --- /dev/null +++ b/frontier_api/models/v1beta1_get_group_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_group import V1beta1Group +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetGroupResponse(BaseModel): + """ + V1beta1GetGroupResponse + """ # noqa: E501 + group: Optional[V1beta1Group] = None + __properties: ClassVar[List[str]] = ["group"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "group": V1beta1Group.from_dict(obj.get("group")) if obj.get("group") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_jwks_response.py b/frontier_api/models/v1beta1_get_jwks_response.py new file mode 100644 index 0000000..06e6ec7 --- /dev/null +++ b/frontier_api/models/v1beta1_get_jwks_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_json_web_key import V1beta1JSONWebKey +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetJWKsResponse(BaseModel): + """ + V1beta1GetJWKsResponse + """ # noqa: E501 + keys: Optional[List[V1beta1JSONWebKey]] = None + __properties: ClassVar[List[str]] = ["keys"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetJWKsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keys (list) + _items = [] + if self.keys: + for _item in self.keys: + if _item: + _items.append(_item.to_dict()) + _dict['keys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetJWKsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keys": [V1beta1JSONWebKey.from_dict(_item) for _item in obj.get("keys")] if obj.get("keys") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_meta_schema_response.py b/frontier_api/models/v1beta1_get_meta_schema_response.py new file mode 100644 index 0000000..010d930 --- /dev/null +++ b/frontier_api/models/v1beta1_get_meta_schema_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetMetaSchemaResponse(BaseModel): + """ + V1beta1GetMetaSchemaResponse + """ # noqa: E501 + metaschema: Optional[V1beta1MetaSchema] = None + __properties: ClassVar[List[str]] = ["metaschema"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetMetaSchemaResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metaschema + if self.metaschema: + _dict['metaschema'] = self.metaschema.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetMetaSchemaResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metaschema": V1beta1MetaSchema.from_dict(obj.get("metaschema")) if obj.get("metaschema") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_namespace_response.py b/frontier_api/models/v1beta1_get_namespace_response.py new file mode 100644 index 0000000..e60eb52 --- /dev/null +++ b/frontier_api/models/v1beta1_get_namespace_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_namespace import V1beta1Namespace +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetNamespaceResponse(BaseModel): + """ + V1beta1GetNamespaceResponse + """ # noqa: E501 + namespace: Optional[V1beta1Namespace] = None + __properties: ClassVar[List[str]] = ["namespace"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetNamespaceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of namespace + if self.namespace: + _dict['namespace'] = self.namespace.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetNamespaceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespace": V1beta1Namespace.from_dict(obj.get("namespace")) if obj.get("namespace") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_organization_audit_log_response.py b/frontier_api/models/v1beta1_get_organization_audit_log_response.py new file mode 100644 index 0000000..4f25c52 --- /dev/null +++ b/frontier_api/models/v1beta1_get_organization_audit_log_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetOrganizationAuditLogResponse(BaseModel): + """ + V1beta1GetOrganizationAuditLogResponse + """ # noqa: E501 + log: Optional[V1beta1AuditLog] = None + __properties: ClassVar[List[str]] = ["log"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetOrganizationAuditLogResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of log + if self.log: + _dict['log'] = self.log.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetOrganizationAuditLogResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "log": V1beta1AuditLog.from_dict(obj.get("log")) if obj.get("log") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_organization_domain_response.py b/frontier_api/models/v1beta1_get_organization_domain_response.py new file mode 100644 index 0000000..22e6ea5 --- /dev/null +++ b/frontier_api/models/v1beta1_get_organization_domain_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_domain import V1beta1Domain +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetOrganizationDomainResponse(BaseModel): + """ + V1beta1GetOrganizationDomainResponse + """ # noqa: E501 + domain: Optional[V1beta1Domain] = None + __properties: ClassVar[List[str]] = ["domain"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetOrganizationDomainResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of domain + if self.domain: + _dict['domain'] = self.domain.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetOrganizationDomainResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domain": V1beta1Domain.from_dict(obj.get("domain")) if obj.get("domain") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_organization_invitation_response.py b/frontier_api/models/v1beta1_get_organization_invitation_response.py new file mode 100644 index 0000000..fde4203 --- /dev/null +++ b/frontier_api/models/v1beta1_get_organization_invitation_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetOrganizationInvitationResponse(BaseModel): + """ + V1beta1GetOrganizationInvitationResponse + """ # noqa: E501 + invitation: Optional[V1beta1Invitation] = None + __properties: ClassVar[List[str]] = ["invitation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetOrganizationInvitationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of invitation + if self.invitation: + _dict['invitation'] = self.invitation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetOrganizationInvitationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invitation": V1beta1Invitation.from_dict(obj.get("invitation")) if obj.get("invitation") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_organization_response.py b/frontier_api/models/v1beta1_get_organization_response.py new file mode 100644 index 0000000..fd4e2d5 --- /dev/null +++ b/frontier_api/models/v1beta1_get_organization_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetOrganizationResponse(BaseModel): + """ + V1beta1GetOrganizationResponse + """ # noqa: E501 + organization: Optional[V1beta1Organization] = None + __properties: ClassVar[List[str]] = ["organization"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetOrganizationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of organization + if self.organization: + _dict['organization'] = self.organization.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetOrganizationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organization": V1beta1Organization.from_dict(obj.get("organization")) if obj.get("organization") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_organization_role_response.py b/frontier_api/models/v1beta1_get_organization_role_response.py new file mode 100644 index 0000000..2530a9e --- /dev/null +++ b/frontier_api/models/v1beta1_get_organization_role_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetOrganizationRoleResponse(BaseModel): + """ + V1beta1GetOrganizationRoleResponse + """ # noqa: E501 + role: Optional[V1beta1Role] = None + __properties: ClassVar[List[str]] = ["role"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetOrganizationRoleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of role + if self.role: + _dict['role'] = self.role.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetOrganizationRoleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": V1beta1Role.from_dict(obj.get("role")) if obj.get("role") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_permission_response.py b/frontier_api/models/v1beta1_get_permission_response.py new file mode 100644 index 0000000..c168b46 --- /dev/null +++ b/frontier_api/models/v1beta1_get_permission_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_permission import V1beta1Permission +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetPermissionResponse(BaseModel): + """ + V1beta1GetPermissionResponse + """ # noqa: E501 + permission: Optional[V1beta1Permission] = None + __properties: ClassVar[List[str]] = ["permission"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetPermissionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of permission + if self.permission: + _dict['permission'] = self.permission.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetPermissionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permission": V1beta1Permission.from_dict(obj.get("permission")) if obj.get("permission") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_plan_response.py b/frontier_api/models/v1beta1_get_plan_response.py new file mode 100644 index 0000000..a644e74 --- /dev/null +++ b/frontier_api/models/v1beta1_get_plan_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_plan import V1beta1Plan +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetPlanResponse(BaseModel): + """ + V1beta1GetPlanResponse + """ # noqa: E501 + plan: Optional[V1beta1Plan] = None + __properties: ClassVar[List[str]] = ["plan"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetPlanResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plan + if self.plan: + _dict['plan'] = self.plan.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetPlanResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plan": V1beta1Plan.from_dict(obj.get("plan")) if obj.get("plan") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_policy_response.py b/frontier_api/models/v1beta1_get_policy_response.py new file mode 100644 index 0000000..c993e0b --- /dev/null +++ b/frontier_api/models/v1beta1_get_policy_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_policy import V1beta1Policy +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetPolicyResponse(BaseModel): + """ + V1beta1GetPolicyResponse + """ # noqa: E501 + policy: Optional[V1beta1Policy] = None + __properties: ClassVar[List[str]] = ["policy"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetPolicyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetPolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": V1beta1Policy.from_dict(obj.get("policy")) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_project_resource_response.py b/frontier_api/models/v1beta1_get_project_resource_response.py new file mode 100644 index 0000000..ebb91ff --- /dev/null +++ b/frontier_api/models/v1beta1_get_project_resource_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_resource import V1beta1Resource +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetProjectResourceResponse(BaseModel): + """ + V1beta1GetProjectResourceResponse + """ # noqa: E501 + resource: Optional[V1beta1Resource] = None + __properties: ClassVar[List[str]] = ["resource"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetProjectResourceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resource + if self.resource: + _dict['resource'] = self.resource.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetProjectResourceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resource": V1beta1Resource.from_dict(obj.get("resource")) if obj.get("resource") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_project_response.py b/frontier_api/models/v1beta1_get_project_response.py new file mode 100644 index 0000000..6cf7987 --- /dev/null +++ b/frontier_api/models/v1beta1_get_project_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetProjectResponse(BaseModel): + """ + V1beta1GetProjectResponse + """ # noqa: E501 + project: Optional[V1beta1Project] = None + __properties: ClassVar[List[str]] = ["project"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetProjectResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of project + if self.project: + _dict['project'] = self.project.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetProjectResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "project": V1beta1Project.from_dict(obj.get("project")) if obj.get("project") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_relation_response.py b/frontier_api/models/v1beta1_get_relation_response.py new file mode 100644 index 0000000..38972e3 --- /dev/null +++ b/frontier_api/models/v1beta1_get_relation_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_relation import V1beta1Relation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetRelationResponse(BaseModel): + """ + V1beta1GetRelationResponse + """ # noqa: E501 + relation: Optional[V1beta1Relation] = None + __properties: ClassVar[List[str]] = ["relation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetRelationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of relation + if self.relation: + _dict['relation'] = self.relation.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetRelationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "relation": V1beta1Relation.from_dict(obj.get("relation")) if obj.get("relation") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_service_user_key_response.py b/frontier_api/models/v1beta1_get_service_user_key_response.py new file mode 100644 index 0000000..6ccef38 --- /dev/null +++ b/frontier_api/models/v1beta1_get_service_user_key_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_json_web_key import V1beta1JSONWebKey +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetServiceUserKeyResponse(BaseModel): + """ + V1beta1GetServiceUserKeyResponse + """ # noqa: E501 + keys: Optional[List[V1beta1JSONWebKey]] = None + __properties: ClassVar[List[str]] = ["keys"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetServiceUserKeyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keys (list) + _items = [] + if self.keys: + for _item in self.keys: + if _item: + _items.append(_item.to_dict()) + _dict['keys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetServiceUserKeyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keys": [V1beta1JSONWebKey.from_dict(_item) for _item in obj.get("keys")] if obj.get("keys") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_service_user_response.py b/frontier_api/models/v1beta1_get_service_user_response.py new file mode 100644 index 0000000..3665a7f --- /dev/null +++ b/frontier_api/models/v1beta1_get_service_user_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetServiceUserResponse(BaseModel): + """ + V1beta1GetServiceUserResponse + """ # noqa: E501 + serviceuser: Optional[V1beta1ServiceUser] = None + __properties: ClassVar[List[str]] = ["serviceuser"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetServiceUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of serviceuser + if self.serviceuser: + _dict['serviceuser'] = self.serviceuser.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetServiceUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceuser": V1beta1ServiceUser.from_dict(obj.get("serviceuser")) if obj.get("serviceuser") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_subscription_response.py b/frontier_api/models/v1beta1_get_subscription_response.py new file mode 100644 index 0000000..083b37c --- /dev/null +++ b/frontier_api/models/v1beta1_get_subscription_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_subscription import V1beta1Subscription +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetSubscriptionResponse(BaseModel): + """ + V1beta1GetSubscriptionResponse + """ # noqa: E501 + subscription: Optional[V1beta1Subscription] = None + __properties: ClassVar[List[str]] = ["subscription"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetSubscriptionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of subscription + if self.subscription: + _dict['subscription'] = self.subscription.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetSubscriptionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subscription": V1beta1Subscription.from_dict(obj.get("subscription")) if obj.get("subscription") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_get_user_response.py b/frontier_api/models/v1beta1_get_user_response.py new file mode 100644 index 0000000..e675f79 --- /dev/null +++ b/frontier_api/models/v1beta1_get_user_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GetUserResponse(BaseModel): + """ + V1beta1GetUserResponse + """ # noqa: E501 + user: Optional[V1beta1User] = None + __properties: ClassVar[List[str]] = ["user"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GetUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GetUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": V1beta1User.from_dict(obj.get("user")) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_group.py b/frontier_api/models/v1beta1_group.py new file mode 100644 index 0000000..0433f49 --- /dev/null +++ b/frontier_api/models/v1beta1_group.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Group(BaseModel): + """ + V1beta1Group + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the group was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the group was last updated.", alias="updatedAt") + users: Optional[List[V1beta1User]] = None + __properties: ClassVar[List[str]] = ["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt", "users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Group from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + "users", + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Group from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "orgId": obj.get("orgId"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_group_request_body.py b/frontier_api/models/v1beta1_group_request_body.py new file mode 100644 index 0000000..cd2e25c --- /dev/null +++ b/frontier_api/models/v1beta1_group_request_body.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1GroupRequestBody(BaseModel): + """ + V1beta1GroupRequestBody + """ # noqa: E501 + name: StrictStr = Field(description="The name of the group. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the group. Can also be left empty.") + metadata: Optional[Union[str, Any]] = Field(default=None, description="Metadata object for groups that can hold key value pairs defined in Group Metaschema. The metadata object can be used to store arbitrary information about the group such as labels, descriptions etc. The default Group Metaschema contains labels and descripton fields. Update the Group Metaschema to add more fields.
*Example:*`{\"labels\": {\"key\": \"value\"}, \"description\": \"Group description\"}`") + __properties: ClassVar[List[str]] = ["name", "title", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1GroupRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1GroupRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "title": obj.get("title"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_invitation.py b/frontier_api/models/v1beta1_invitation.py new file mode 100644 index 0000000..5307ff0 --- /dev/null +++ b/frontier_api/models/v1beta1_invitation.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Invitation(BaseModel): + """ + V1beta1Invitation + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique invitation identifier.") + user_id: Optional[StrictStr] = Field(default=None, description="The user email of the invited user.", alias="userId") + org_id: Optional[StrictStr] = Field(default=None, description="The organization id to which the user is invited.", alias="orgId") + group_ids: Optional[List[StrictStr]] = Field(default=None, description="The list of group ids to which the user is invited.", alias="groupIds") + metadata: Optional[Union[str, Any]] = Field(default=None, description="The metadata of the invitation.") + created_at: Optional[datetime] = Field(default=None, description="The time when the invitation was created.", alias="createdAt") + expires_at: Optional[datetime] = Field(default=None, description="The time when the invitation expires.", alias="expiresAt") + role_ids: Optional[List[StrictStr]] = Field(default=None, description="The list of role ids to which the user is invited in an organization.", alias="roleIds") + __properties: ClassVar[List[str]] = ["id", "userId", "orgId", "groupIds", "metadata", "createdAt", "expiresAt", "roleIds"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Invitation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Invitation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "userId": obj.get("userId"), + "orgId": obj.get("orgId"), + "groupIds": obj.get("groupIds"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "expiresAt": obj.get("expiresAt"), + "roleIds": obj.get("roleIds") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_json_web_key.py b/frontier_api/models/v1beta1_json_web_key.py new file mode 100644 index 0000000..9f93ce5 --- /dev/null +++ b/frontier_api/models/v1beta1_json_web_key.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1JSONWebKey(BaseModel): + """ + V1beta1JSONWebKey + """ # noqa: E501 + kty: Optional[StrictStr] = Field(default=None, description="Key Type.") + alg: Optional[StrictStr] = Field(default=None, description="Algorithm.") + use: Optional[StrictStr] = Field(default=None, description="Permitted uses for the public keys.") + kid: Optional[StrictStr] = Field(default=None, description="Key ID.") + n: Optional[StrictStr] = Field(default=None, description="Used for RSA keys.") + e: Optional[StrictStr] = Field(default=None, description="Used for RSA keys.") + x: Optional[StrictStr] = Field(default=None, description="Used for ECDSA keys.") + y: Optional[StrictStr] = Field(default=None, description="Used for ECDSA keys.") + crv: Optional[StrictStr] = Field(default=None, description="Used for ECDSA keys.") + __properties: ClassVar[List[str]] = ["kty", "alg", "use", "kid", "n", "e", "x", "y", "crv"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1JSONWebKey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1JSONWebKey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kty": obj.get("kty"), + "alg": obj.get("alg"), + "use": obj.get("use"), + "kid": obj.get("kid"), + "n": obj.get("n"), + "e": obj.get("e"), + "x": obj.get("x"), + "y": obj.get("y"), + "crv": obj.get("crv") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_key_credential.py b/frontier_api/models/v1beta1_key_credential.py new file mode 100644 index 0000000..ec949e9 --- /dev/null +++ b/frontier_api/models/v1beta1_key_credential.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1KeyCredential(BaseModel): + """ + V1beta1KeyCredential + """ # noqa: E501 + type: Optional[StrictStr] = None + kid: Optional[StrictStr] = None + principal_id: Optional[StrictStr] = Field(default=None, alias="principalId") + private_key: Optional[StrictStr] = Field(default=None, alias="privateKey") + __properties: ClassVar[List[str]] = ["type", "kid", "principalId", "privateKey"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1KeyCredential from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + "private_key", + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1KeyCredential from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "kid": obj.get("kid"), + "principalId": obj.get("principalId"), + "privateKey": obj.get("privateKey") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_all_organizations_response.py b/frontier_api/models/v1beta1_list_all_organizations_response.py new file mode 100644 index 0000000..f40a21f --- /dev/null +++ b/frontier_api/models/v1beta1_list_all_organizations_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListAllOrganizationsResponse(BaseModel): + """ + V1beta1ListAllOrganizationsResponse + """ # noqa: E501 + organizations: Optional[List[V1beta1Organization]] = None + __properties: ClassVar[List[str]] = ["organizations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListAllOrganizationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) + _items = [] + if self.organizations: + for _item in self.organizations: + if _item: + _items.append(_item.to_dict()) + _dict['organizations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListAllOrganizationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organizations": [V1beta1Organization.from_dict(_item) for _item in obj.get("organizations")] if obj.get("organizations") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_all_users_response.py b/frontier_api/models/v1beta1_list_all_users_response.py new file mode 100644 index 0000000..e588141 --- /dev/null +++ b/frontier_api/models/v1beta1_list_all_users_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictInt +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListAllUsersResponse(BaseModel): + """ + V1beta1ListAllUsersResponse + """ # noqa: E501 + count: Optional[StrictInt] = None + users: Optional[List[V1beta1User]] = None + __properties: ClassVar[List[str]] = ["count", "users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListAllUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListAllUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_auth_strategies_response.py b/frontier_api/models/v1beta1_list_auth_strategies_response.py new file mode 100644 index 0000000..d0ea3b4 --- /dev/null +++ b/frontier_api/models/v1beta1_list_auth_strategies_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_auth_strategy import V1beta1AuthStrategy +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListAuthStrategiesResponse(BaseModel): + """ + V1beta1ListAuthStrategiesResponse + """ # noqa: E501 + strategies: Optional[List[V1beta1AuthStrategy]] = None + __properties: ClassVar[List[str]] = ["strategies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListAuthStrategiesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in strategies (list) + _items = [] + if self.strategies: + for _item in self.strategies: + if _item: + _items.append(_item.to_dict()) + _dict['strategies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListAuthStrategiesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "strategies": [V1beta1AuthStrategy.from_dict(_item) for _item in obj.get("strategies")] if obj.get("strategies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_billing_accounts_response.py b/frontier_api/models/v1beta1_list_billing_accounts_response.py new file mode 100644 index 0000000..5af2c91 --- /dev/null +++ b/frontier_api/models/v1beta1_list_billing_accounts_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListBillingAccountsResponse(BaseModel): + """ + V1beta1ListBillingAccountsResponse + """ # noqa: E501 + billing_accounts: Optional[List[V1beta1BillingAccount]] = Field(default=None, alias="billingAccounts") + __properties: ClassVar[List[str]] = ["billingAccounts"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListBillingAccountsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in billing_accounts (list) + _items = [] + if self.billing_accounts: + for _item in self.billing_accounts: + if _item: + _items.append(_item.to_dict()) + _dict['billingAccounts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListBillingAccountsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "billingAccounts": [V1beta1BillingAccount.from_dict(_item) for _item in obj.get("billingAccounts")] if obj.get("billingAccounts") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_billing_transactions_response.py b/frontier_api/models/v1beta1_list_billing_transactions_response.py new file mode 100644 index 0000000..8605d48 --- /dev/null +++ b/frontier_api/models/v1beta1_list_billing_transactions_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_billing_transaction import V1beta1BillingTransaction +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListBillingTransactionsResponse(BaseModel): + """ + V1beta1ListBillingTransactionsResponse + """ # noqa: E501 + transactions: Optional[List[V1beta1BillingTransaction]] = None + __properties: ClassVar[List[str]] = ["transactions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListBillingTransactionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in transactions (list) + _items = [] + if self.transactions: + for _item in self.transactions: + if _item: + _items.append(_item.to_dict()) + _dict['transactions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListBillingTransactionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactions": [V1beta1BillingTransaction.from_dict(_item) for _item in obj.get("transactions")] if obj.get("transactions") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_checkouts_response.py b/frontier_api/models/v1beta1_list_checkouts_response.py new file mode 100644 index 0000000..19fc73f --- /dev/null +++ b/frontier_api/models/v1beta1_list_checkouts_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_checkout_session import V1beta1CheckoutSession +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListCheckoutsResponse(BaseModel): + """ + V1beta1ListCheckoutsResponse + """ # noqa: E501 + checkout_sessions: Optional[List[V1beta1CheckoutSession]] = Field(default=None, alias="checkoutSessions") + __properties: ClassVar[List[str]] = ["checkoutSessions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListCheckoutsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in checkout_sessions (list) + _items = [] + if self.checkout_sessions: + for _item in self.checkout_sessions: + if _item: + _items.append(_item.to_dict()) + _dict['checkoutSessions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListCheckoutsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "checkoutSessions": [V1beta1CheckoutSession.from_dict(_item) for _item in obj.get("checkoutSessions")] if obj.get("checkoutSessions") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_current_user_groups_response.py b/frontier_api/models/v1beta1_list_current_user_groups_response.py new file mode 100644 index 0000000..784fb74 --- /dev/null +++ b/frontier_api/models/v1beta1_list_current_user_groups_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_group import V1beta1Group +from frontier_api.models.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListCurrentUserGroupsResponse(BaseModel): + """ + V1beta1ListCurrentUserGroupsResponse + """ # noqa: E501 + groups: Optional[List[V1beta1Group]] = None + access_pairs: Optional[List[V1beta1ListCurrentUserGroupsResponseAccessPair]] = Field(default=None, alias="accessPairs") + __properties: ClassVar[List[str]] = ["groups", "accessPairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListCurrentUserGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in access_pairs (list) + _items = [] + if self.access_pairs: + for _item in self.access_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['accessPairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListCurrentUserGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groups": [V1beta1Group.from_dict(_item) for _item in obj.get("groups")] if obj.get("groups") is not None else None, + "accessPairs": [V1beta1ListCurrentUserGroupsResponseAccessPair.from_dict(_item) for _item in obj.get("accessPairs")] if obj.get("accessPairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_current_user_groups_response_access_pair.py b/frontier_api/models/v1beta1_list_current_user_groups_response_access_pair.py new file mode 100644 index 0000000..6256969 --- /dev/null +++ b/frontier_api/models/v1beta1_list_current_user_groups_response_access_pair.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListCurrentUserGroupsResponseAccessPair(BaseModel): + """ + V1beta1ListCurrentUserGroupsResponseAccessPair + """ # noqa: E501 + group_id: Optional[StrictStr] = Field(default=None, alias="groupId") + permissions: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["groupId", "permissions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListCurrentUserGroupsResponseAccessPair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListCurrentUserGroupsResponseAccessPair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groupId": obj.get("groupId"), + "permissions": obj.get("permissions") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_current_user_invitations_response.py b/frontier_api/models/v1beta1_list_current_user_invitations_response.py new file mode 100644 index 0000000..3089590 --- /dev/null +++ b/frontier_api/models/v1beta1_list_current_user_invitations_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListCurrentUserInvitationsResponse(BaseModel): + """ + V1beta1ListCurrentUserInvitationsResponse + """ # noqa: E501 + invitations: Optional[List[V1beta1Invitation]] = None + orgs: Optional[List[V1beta1Organization]] = None + __properties: ClassVar[List[str]] = ["invitations", "orgs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListCurrentUserInvitationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in invitations (list) + _items = [] + if self.invitations: + for _item in self.invitations: + if _item: + _items.append(_item.to_dict()) + _dict['invitations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in orgs (list) + _items = [] + if self.orgs: + for _item in self.orgs: + if _item: + _items.append(_item.to_dict()) + _dict['orgs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListCurrentUserInvitationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invitations": [V1beta1Invitation.from_dict(_item) for _item in obj.get("invitations")] if obj.get("invitations") is not None else None, + "orgs": [V1beta1Organization.from_dict(_item) for _item in obj.get("orgs")] if obj.get("orgs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_current_user_preferences_response.py b/frontier_api/models/v1beta1_list_current_user_preferences_response.py new file mode 100644 index 0000000..da97bdf --- /dev/null +++ b/frontier_api/models/v1beta1_list_current_user_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListCurrentUserPreferencesResponse(BaseModel): + """ + V1beta1ListCurrentUserPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListCurrentUserPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListCurrentUserPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_features_response.py b/frontier_api/models/v1beta1_list_features_response.py new file mode 100644 index 0000000..5979f16 --- /dev/null +++ b/frontier_api/models/v1beta1_list_features_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_feature import V1beta1Feature +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListFeaturesResponse(BaseModel): + """ + V1beta1ListFeaturesResponse + """ # noqa: E501 + features: Optional[List[V1beta1Feature]] = None + __properties: ClassVar[List[str]] = ["features"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListFeaturesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in features (list) + _items = [] + if self.features: + for _item in self.features: + if _item: + _items.append(_item.to_dict()) + _dict['features'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListFeaturesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "features": [V1beta1Feature.from_dict(_item) for _item in obj.get("features")] if obj.get("features") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_group_preferences_response.py b/frontier_api/models/v1beta1_list_group_preferences_response.py new file mode 100644 index 0000000..312868f --- /dev/null +++ b/frontier_api/models/v1beta1_list_group_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListGroupPreferencesResponse(BaseModel): + """ + V1beta1ListGroupPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListGroupPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListGroupPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_group_users_response.py b/frontier_api/models/v1beta1_list_group_users_response.py new file mode 100644 index 0000000..93f037a --- /dev/null +++ b/frontier_api/models/v1beta1_list_group_users_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListGroupUsersResponse(BaseModel): + """ + V1beta1ListGroupUsersResponse + """ # noqa: E501 + users: Optional[List[V1beta1User]] = None + role_pairs: Optional[List[V1beta1ListGroupUsersResponseRolePair]] = Field(default=None, alias="rolePairs") + __properties: ClassVar[List[str]] = ["users", "rolePairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListGroupUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in role_pairs (list) + _items = [] + if self.role_pairs: + for _item in self.role_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['rolePairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListGroupUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None, + "rolePairs": [V1beta1ListGroupUsersResponseRolePair.from_dict(_item) for _item in obj.get("rolePairs")] if obj.get("rolePairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_group_users_response_role_pair.py b/frontier_api/models/v1beta1_list_group_users_response_role_pair.py new file mode 100644 index 0000000..25e755d --- /dev/null +++ b/frontier_api/models/v1beta1_list_group_users_response_role_pair.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListGroupUsersResponseRolePair(BaseModel): + """ + V1beta1ListGroupUsersResponseRolePair + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["userId", "roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListGroupUsersResponseRolePair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListGroupUsersResponseRolePair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_groups_response.py b/frontier_api/models/v1beta1_list_groups_response.py new file mode 100644 index 0000000..4afe82f --- /dev/null +++ b/frontier_api/models/v1beta1_list_groups_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_group import V1beta1Group +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListGroupsResponse(BaseModel): + """ + V1beta1ListGroupsResponse + """ # noqa: E501 + groups: Optional[List[V1beta1Group]] = None + __properties: ClassVar[List[str]] = ["groups"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groups": [V1beta1Group.from_dict(_item) for _item in obj.get("groups")] if obj.get("groups") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_meta_schemas_response.py b/frontier_api/models/v1beta1_list_meta_schemas_response.py new file mode 100644 index 0000000..af32253 --- /dev/null +++ b/frontier_api/models/v1beta1_list_meta_schemas_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListMetaSchemasResponse(BaseModel): + """ + V1beta1ListMetaSchemasResponse + """ # noqa: E501 + metaschemas: Optional[List[V1beta1MetaSchema]] = None + __properties: ClassVar[List[str]] = ["metaschemas"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListMetaSchemasResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metaschemas (list) + _items = [] + if self.metaschemas: + for _item in self.metaschemas: + if _item: + _items.append(_item.to_dict()) + _dict['metaschemas'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListMetaSchemasResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metaschemas": [V1beta1MetaSchema.from_dict(_item) for _item in obj.get("metaschemas")] if obj.get("metaschemas") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_namespaces_response.py b/frontier_api/models/v1beta1_list_namespaces_response.py new file mode 100644 index 0000000..aa969e7 --- /dev/null +++ b/frontier_api/models/v1beta1_list_namespaces_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_namespace import V1beta1Namespace +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListNamespacesResponse(BaseModel): + """ + V1beta1ListNamespacesResponse + """ # noqa: E501 + namespaces: Optional[List[V1beta1Namespace]] = None + __properties: ClassVar[List[str]] = ["namespaces"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListNamespacesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in namespaces (list) + _items = [] + if self.namespaces: + for _item in self.namespaces: + if _item: + _items.append(_item.to_dict()) + _dict['namespaces'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListNamespacesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespaces": [V1beta1Namespace.from_dict(_item) for _item in obj.get("namespaces")] if obj.get("namespaces") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_admins_response.py b/frontier_api/models/v1beta1_list_organization_admins_response.py new file mode 100644 index 0000000..c4d1e1d --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_admins_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationAdminsResponse(BaseModel): + """ + V1beta1ListOrganizationAdminsResponse + """ # noqa: E501 + users: Optional[List[V1beta1User]] = None + __properties: ClassVar[List[str]] = ["users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationAdminsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationAdminsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_audit_logs_response.py b/frontier_api/models/v1beta1_list_organization_audit_logs_response.py new file mode 100644 index 0000000..4643a45 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_audit_logs_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationAuditLogsResponse(BaseModel): + """ + V1beta1ListOrganizationAuditLogsResponse + """ # noqa: E501 + logs: Optional[List[V1beta1AuditLog]] = None + __properties: ClassVar[List[str]] = ["logs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationAuditLogsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in logs (list) + _items = [] + if self.logs: + for _item in self.logs: + if _item: + _items.append(_item.to_dict()) + _dict['logs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationAuditLogsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "logs": [V1beta1AuditLog.from_dict(_item) for _item in obj.get("logs")] if obj.get("logs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_domains_response.py b/frontier_api/models/v1beta1_list_organization_domains_response.py new file mode 100644 index 0000000..26c64da --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_domains_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_domain import V1beta1Domain +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationDomainsResponse(BaseModel): + """ + V1beta1ListOrganizationDomainsResponse + """ # noqa: E501 + domains: Optional[List[V1beta1Domain]] = None + __properties: ClassVar[List[str]] = ["domains"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationDomainsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in domains (list) + _items = [] + if self.domains: + for _item in self.domains: + if _item: + _items.append(_item.to_dict()) + _dict['domains'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationDomainsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domains": [V1beta1Domain.from_dict(_item) for _item in obj.get("domains")] if obj.get("domains") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_groups_response.py b/frontier_api/models/v1beta1_list_organization_groups_response.py new file mode 100644 index 0000000..c8174ec --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_groups_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_group import V1beta1Group +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationGroupsResponse(BaseModel): + """ + V1beta1ListOrganizationGroupsResponse + """ # noqa: E501 + groups: Optional[List[V1beta1Group]] = None + __properties: ClassVar[List[str]] = ["groups"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groups": [V1beta1Group.from_dict(_item) for _item in obj.get("groups")] if obj.get("groups") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_invitations_response.py b/frontier_api/models/v1beta1_list_organization_invitations_response.py new file mode 100644 index 0000000..3cf8fe2 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_invitations_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationInvitationsResponse(BaseModel): + """ + V1beta1ListOrganizationInvitationsResponse + """ # noqa: E501 + invitations: Optional[List[V1beta1Invitation]] = None + __properties: ClassVar[List[str]] = ["invitations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationInvitationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in invitations (list) + _items = [] + if self.invitations: + for _item in self.invitations: + if _item: + _items.append(_item.to_dict()) + _dict['invitations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationInvitationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invitations": [V1beta1Invitation.from_dict(_item) for _item in obj.get("invitations")] if obj.get("invitations") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_preferences_response.py b/frontier_api/models/v1beta1_list_organization_preferences_response.py new file mode 100644 index 0000000..e8a3ff3 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationPreferencesResponse(BaseModel): + """ + V1beta1ListOrganizationPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_projects_response.py b/frontier_api/models/v1beta1_list_organization_projects_response.py new file mode 100644 index 0000000..13cfde8 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_projects_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationProjectsResponse(BaseModel): + """ + V1beta1ListOrganizationProjectsResponse + """ # noqa: E501 + projects: Optional[List[V1beta1Project]] = None + __properties: ClassVar[List[str]] = ["projects"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationProjectsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in projects (list) + _items = [] + if self.projects: + for _item in self.projects: + if _item: + _items.append(_item.to_dict()) + _dict['projects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationProjectsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projects": [V1beta1Project.from_dict(_item) for _item in obj.get("projects")] if obj.get("projects") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_roles_response.py b/frontier_api/models/v1beta1_list_organization_roles_response.py new file mode 100644 index 0000000..bfc7528 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_roles_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationRolesResponse(BaseModel): + """ + V1beta1ListOrganizationRolesResponse + """ # noqa: E501 + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationRolesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationRolesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_service_users_response.py b/frontier_api/models/v1beta1_list_organization_service_users_response.py new file mode 100644 index 0000000..66990a8 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_service_users_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationServiceUsersResponse(BaseModel): + """ + V1beta1ListOrganizationServiceUsersResponse + """ # noqa: E501 + serviceusers: Optional[List[V1beta1ServiceUser]] = None + __properties: ClassVar[List[str]] = ["serviceusers"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationServiceUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in serviceusers (list) + _items = [] + if self.serviceusers: + for _item in self.serviceusers: + if _item: + _items.append(_item.to_dict()) + _dict['serviceusers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationServiceUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceusers": [V1beta1ServiceUser.from_dict(_item) for _item in obj.get("serviceusers")] if obj.get("serviceusers") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_users_response.py b/frontier_api/models/v1beta1_list_organization_users_response.py new file mode 100644 index 0000000..073ec79 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_users_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_list_organization_users_response_role_pair import V1beta1ListOrganizationUsersResponseRolePair +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationUsersResponse(BaseModel): + """ + V1beta1ListOrganizationUsersResponse + """ # noqa: E501 + users: Optional[List[V1beta1User]] = None + role_pairs: Optional[List[V1beta1ListOrganizationUsersResponseRolePair]] = Field(default=None, alias="rolePairs") + __properties: ClassVar[List[str]] = ["users", "rolePairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in role_pairs (list) + _items = [] + if self.role_pairs: + for _item in self.role_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['rolePairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None, + "rolePairs": [V1beta1ListOrganizationUsersResponseRolePair.from_dict(_item) for _item in obj.get("rolePairs")] if obj.get("rolePairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organization_users_response_role_pair.py b/frontier_api/models/v1beta1_list_organization_users_response_role_pair.py new file mode 100644 index 0000000..d69fecb --- /dev/null +++ b/frontier_api/models/v1beta1_list_organization_users_response_role_pair.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationUsersResponseRolePair(BaseModel): + """ + V1beta1ListOrganizationUsersResponseRolePair + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["userId", "roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationUsersResponseRolePair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationUsersResponseRolePair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organizations_by_current_user_response.py b/frontier_api/models/v1beta1_list_organizations_by_current_user_response.py new file mode 100644 index 0000000..597da63 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organizations_by_current_user_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationsByCurrentUserResponse(BaseModel): + """ + V1beta1ListOrganizationsByCurrentUserResponse + """ # noqa: E501 + organizations: Optional[List[V1beta1Organization]] = None + joinable_via_domain: Optional[List[V1beta1Organization]] = Field(default=None, alias="joinableViaDomain") + __properties: ClassVar[List[str]] = ["organizations", "joinableViaDomain"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationsByCurrentUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) + _items = [] + if self.organizations: + for _item in self.organizations: + if _item: + _items.append(_item.to_dict()) + _dict['organizations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in joinable_via_domain (list) + _items = [] + if self.joinable_via_domain: + for _item in self.joinable_via_domain: + if _item: + _items.append(_item.to_dict()) + _dict['joinableViaDomain'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationsByCurrentUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organizations": [V1beta1Organization.from_dict(_item) for _item in obj.get("organizations")] if obj.get("organizations") is not None else None, + "joinableViaDomain": [V1beta1Organization.from_dict(_item) for _item in obj.get("joinableViaDomain")] if obj.get("joinableViaDomain") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organizations_by_user_response.py b/frontier_api/models/v1beta1_list_organizations_by_user_response.py new file mode 100644 index 0000000..8a1e80e --- /dev/null +++ b/frontier_api/models/v1beta1_list_organizations_by_user_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationsByUserResponse(BaseModel): + """ + V1beta1ListOrganizationsByUserResponse + """ # noqa: E501 + organizations: Optional[List[V1beta1Organization]] = None + joinable_via_domain: Optional[List[V1beta1Organization]] = Field(default=None, alias="joinableViaDomain") + __properties: ClassVar[List[str]] = ["organizations", "joinableViaDomain"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationsByUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) + _items = [] + if self.organizations: + for _item in self.organizations: + if _item: + _items.append(_item.to_dict()) + _dict['organizations'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in joinable_via_domain (list) + _items = [] + if self.joinable_via_domain: + for _item in self.joinable_via_domain: + if _item: + _items.append(_item.to_dict()) + _dict['joinableViaDomain'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationsByUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organizations": [V1beta1Organization.from_dict(_item) for _item in obj.get("organizations")] if obj.get("organizations") is not None else None, + "joinableViaDomain": [V1beta1Organization.from_dict(_item) for _item in obj.get("joinableViaDomain")] if obj.get("joinableViaDomain") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_organizations_response.py b/frontier_api/models/v1beta1_list_organizations_response.py new file mode 100644 index 0000000..eb168b5 --- /dev/null +++ b/frontier_api/models/v1beta1_list_organizations_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListOrganizationsResponse(BaseModel): + """ + V1beta1ListOrganizationsResponse + """ # noqa: E501 + organizations: Optional[List[V1beta1Organization]] = None + __properties: ClassVar[List[str]] = ["organizations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListOrganizationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) + _items = [] + if self.organizations: + for _item in self.organizations: + if _item: + _items.append(_item.to_dict()) + _dict['organizations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListOrganizationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organizations": [V1beta1Organization.from_dict(_item) for _item in obj.get("organizations")] if obj.get("organizations") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_permissions_response.py b/frontier_api/models/v1beta1_list_permissions_response.py new file mode 100644 index 0000000..15a9473 --- /dev/null +++ b/frontier_api/models/v1beta1_list_permissions_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_permission import V1beta1Permission +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListPermissionsResponse(BaseModel): + """ + V1beta1ListPermissionsResponse + """ # noqa: E501 + permissions: Optional[List[V1beta1Permission]] = None + __properties: ClassVar[List[str]] = ["permissions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListPermissionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + _items = [] + if self.permissions: + for _item in self.permissions: + if _item: + _items.append(_item.to_dict()) + _dict['permissions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListPermissionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [V1beta1Permission.from_dict(_item) for _item in obj.get("permissions")] if obj.get("permissions") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_plans_response.py b/frontier_api/models/v1beta1_list_plans_response.py new file mode 100644 index 0000000..74bc0be --- /dev/null +++ b/frontier_api/models/v1beta1_list_plans_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_plan import V1beta1Plan +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListPlansResponse(BaseModel): + """ + V1beta1ListPlansResponse + """ # noqa: E501 + plans: Optional[List[V1beta1Plan]] = None + __properties: ClassVar[List[str]] = ["plans"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListPlansResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in plans (list) + _items = [] + if self.plans: + for _item in self.plans: + if _item: + _items.append(_item.to_dict()) + _dict['plans'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListPlansResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plans": [V1beta1Plan.from_dict(_item) for _item in obj.get("plans")] if obj.get("plans") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_policies_response.py b/frontier_api/models/v1beta1_list_policies_response.py new file mode 100644 index 0000000..8228790 --- /dev/null +++ b/frontier_api/models/v1beta1_list_policies_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_policy import V1beta1Policy +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListPoliciesResponse(BaseModel): + """ + V1beta1ListPoliciesResponse + """ # noqa: E501 + policies: Optional[List[V1beta1Policy]] = None + __properties: ClassVar[List[str]] = ["policies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListPoliciesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in policies (list) + _items = [] + if self.policies: + for _item in self.policies: + if _item: + _items.append(_item.to_dict()) + _dict['policies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListPoliciesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policies": [V1beta1Policy.from_dict(_item) for _item in obj.get("policies")] if obj.get("policies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_preferences_response.py b/frontier_api/models/v1beta1_list_preferences_response.py new file mode 100644 index 0000000..23270f9 --- /dev/null +++ b/frontier_api/models/v1beta1_list_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListPreferencesResponse(BaseModel): + """ + V1beta1ListPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_admins_response.py b/frontier_api/models/v1beta1_list_project_admins_response.py new file mode 100644 index 0000000..0364858 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_admins_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectAdminsResponse(BaseModel): + """ + V1beta1ListProjectAdminsResponse + """ # noqa: E501 + users: Optional[List[V1beta1User]] = None + __properties: ClassVar[List[str]] = ["users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectAdminsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectAdminsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_groups_response.py b/frontier_api/models/v1beta1_list_project_groups_response.py new file mode 100644 index 0000000..62af607 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_groups_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_group import V1beta1Group +from frontier_api.models.v1beta1_list_project_groups_response_role_pair import V1beta1ListProjectGroupsResponseRolePair +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectGroupsResponse(BaseModel): + """ + V1beta1ListProjectGroupsResponse + """ # noqa: E501 + groups: Optional[List[V1beta1Group]] = None + role_pairs: Optional[List[V1beta1ListProjectGroupsResponseRolePair]] = Field(default=None, alias="rolePairs") + __properties: ClassVar[List[str]] = ["groups", "rolePairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in role_pairs (list) + _items = [] + if self.role_pairs: + for _item in self.role_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['rolePairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groups": [V1beta1Group.from_dict(_item) for _item in obj.get("groups")] if obj.get("groups") is not None else None, + "rolePairs": [V1beta1ListProjectGroupsResponseRolePair.from_dict(_item) for _item in obj.get("rolePairs")] if obj.get("rolePairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_groups_response_role_pair.py b/frontier_api/models/v1beta1_list_project_groups_response_role_pair.py new file mode 100644 index 0000000..1d2a872 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_groups_response_role_pair.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectGroupsResponseRolePair(BaseModel): + """ + V1beta1ListProjectGroupsResponseRolePair + """ # noqa: E501 + group_id: Optional[StrictStr] = Field(default=None, alias="groupId") + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["groupId", "roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectGroupsResponseRolePair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectGroupsResponseRolePair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groupId": obj.get("groupId"), + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_preferences_response.py b/frontier_api/models/v1beta1_list_project_preferences_response.py new file mode 100644 index 0000000..048e0f2 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectPreferencesResponse(BaseModel): + """ + V1beta1ListProjectPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_resources_response.py b/frontier_api/models/v1beta1_list_project_resources_response.py new file mode 100644 index 0000000..a19e07a --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_resources_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_resource import V1beta1Resource +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectResourcesResponse(BaseModel): + """ + V1beta1ListProjectResourcesResponse + """ # noqa: E501 + resources: Optional[List[V1beta1Resource]] = None + __properties: ClassVar[List[str]] = ["resources"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectResourcesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in resources (list) + _items = [] + if self.resources: + for _item in self.resources: + if _item: + _items.append(_item.to_dict()) + _dict['resources'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectResourcesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resources": [V1beta1Resource.from_dict(_item) for _item in obj.get("resources")] if obj.get("resources") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_service_users_response.py b/frontier_api/models/v1beta1_list_project_service_users_response.py new file mode 100644 index 0000000..a675215 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_service_users_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectServiceUsersResponse(BaseModel): + """ + V1beta1ListProjectServiceUsersResponse + """ # noqa: E501 + serviceusers: Optional[List[V1beta1ServiceUser]] = None + role_pairs: Optional[List[V1beta1ListProjectServiceUsersResponseRolePair]] = Field(default=None, alias="rolePairs") + __properties: ClassVar[List[str]] = ["serviceusers", "rolePairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectServiceUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in serviceusers (list) + _items = [] + if self.serviceusers: + for _item in self.serviceusers: + if _item: + _items.append(_item.to_dict()) + _dict['serviceusers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in role_pairs (list) + _items = [] + if self.role_pairs: + for _item in self.role_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['rolePairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectServiceUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceusers": [V1beta1ServiceUser.from_dict(_item) for _item in obj.get("serviceusers")] if obj.get("serviceusers") is not None else None, + "rolePairs": [V1beta1ListProjectServiceUsersResponseRolePair.from_dict(_item) for _item in obj.get("rolePairs")] if obj.get("rolePairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_service_users_response_role_pair.py b/frontier_api/models/v1beta1_list_project_service_users_response_role_pair.py new file mode 100644 index 0000000..8b86da5 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_service_users_response_role_pair.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectServiceUsersResponseRolePair(BaseModel): + """ + V1beta1ListProjectServiceUsersResponseRolePair + """ # noqa: E501 + serviceuser_id: Optional[StrictStr] = Field(default=None, alias="serviceuserId") + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["serviceuserId", "roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectServiceUsersResponseRolePair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectServiceUsersResponseRolePair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceuserId": obj.get("serviceuserId"), + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_users_response.py b/frontier_api/models/v1beta1_list_project_users_response.py new file mode 100644 index 0000000..d7a04f2 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_users_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectUsersResponse(BaseModel): + """ + V1beta1ListProjectUsersResponse + """ # noqa: E501 + users: Optional[List[V1beta1User]] = None + role_pairs: Optional[List[V1beta1ListProjectUsersResponseRolePair]] = Field(default=None, alias="rolePairs") + __properties: ClassVar[List[str]] = ["users", "rolePairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in role_pairs (list) + _items = [] + if self.role_pairs: + for _item in self.role_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['rolePairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None, + "rolePairs": [V1beta1ListProjectUsersResponseRolePair.from_dict(_item) for _item in obj.get("rolePairs")] if obj.get("rolePairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_project_users_response_role_pair.py b/frontier_api/models/v1beta1_list_project_users_response_role_pair.py new file mode 100644 index 0000000..007ad68 --- /dev/null +++ b/frontier_api/models/v1beta1_list_project_users_response_role_pair.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectUsersResponseRolePair(BaseModel): + """ + V1beta1ListProjectUsersResponseRolePair + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["userId", "roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectUsersResponseRolePair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectUsersResponseRolePair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_projects_by_current_user_response.py b/frontier_api/models/v1beta1_list_projects_by_current_user_response.py new file mode 100644 index 0000000..9bb9224 --- /dev/null +++ b/frontier_api/models/v1beta1_list_projects_by_current_user_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectsByCurrentUserResponse(BaseModel): + """ + V1beta1ListProjectsByCurrentUserResponse + """ # noqa: E501 + projects: Optional[List[V1beta1Project]] = None + access_pairs: Optional[List[V1beta1ListProjectsByCurrentUserResponseAccessPair]] = Field(default=None, alias="accessPairs") + __properties: ClassVar[List[str]] = ["projects", "accessPairs"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectsByCurrentUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in projects (list) + _items = [] + if self.projects: + for _item in self.projects: + if _item: + _items.append(_item.to_dict()) + _dict['projects'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in access_pairs (list) + _items = [] + if self.access_pairs: + for _item in self.access_pairs: + if _item: + _items.append(_item.to_dict()) + _dict['accessPairs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectsByCurrentUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projects": [V1beta1Project.from_dict(_item) for _item in obj.get("projects")] if obj.get("projects") is not None else None, + "accessPairs": [V1beta1ListProjectsByCurrentUserResponseAccessPair.from_dict(_item) for _item in obj.get("accessPairs")] if obj.get("accessPairs") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_projects_by_current_user_response_access_pair.py b/frontier_api/models/v1beta1_list_projects_by_current_user_response_access_pair.py new file mode 100644 index 0000000..e9a1e6c --- /dev/null +++ b/frontier_api/models/v1beta1_list_projects_by_current_user_response_access_pair.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectsByCurrentUserResponseAccessPair(BaseModel): + """ + V1beta1ListProjectsByCurrentUserResponseAccessPair + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, alias="projectId") + permissions: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["projectId", "permissions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectsByCurrentUserResponseAccessPair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectsByCurrentUserResponseAccessPair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "permissions": obj.get("permissions") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_projects_by_user_response.py b/frontier_api/models/v1beta1_list_projects_by_user_response.py new file mode 100644 index 0000000..2848040 --- /dev/null +++ b/frontier_api/models/v1beta1_list_projects_by_user_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectsByUserResponse(BaseModel): + """ + V1beta1ListProjectsByUserResponse + """ # noqa: E501 + projects: Optional[List[V1beta1Project]] = None + __properties: ClassVar[List[str]] = ["projects"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectsByUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in projects (list) + _items = [] + if self.projects: + for _item in self.projects: + if _item: + _items.append(_item.to_dict()) + _dict['projects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectsByUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projects": [V1beta1Project.from_dict(_item) for _item in obj.get("projects")] if obj.get("projects") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_projects_response.py b/frontier_api/models/v1beta1_list_projects_response.py new file mode 100644 index 0000000..928d433 --- /dev/null +++ b/frontier_api/models/v1beta1_list_projects_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListProjectsResponse(BaseModel): + """ + V1beta1ListProjectsResponse + """ # noqa: E501 + projects: Optional[List[V1beta1Project]] = None + __properties: ClassVar[List[str]] = ["projects"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListProjectsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in projects (list) + _items = [] + if self.projects: + for _item in self.projects: + if _item: + _items.append(_item.to_dict()) + _dict['projects'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListProjectsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projects": [V1beta1Project.from_dict(_item) for _item in obj.get("projects")] if obj.get("projects") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_relations_response.py b/frontier_api/models/v1beta1_list_relations_response.py new file mode 100644 index 0000000..100da01 --- /dev/null +++ b/frontier_api/models/v1beta1_list_relations_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_relation import V1beta1Relation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListRelationsResponse(BaseModel): + """ + V1beta1ListRelationsResponse + """ # noqa: E501 + relations: Optional[List[V1beta1Relation]] = None + __properties: ClassVar[List[str]] = ["relations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListRelationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in relations (list) + _items = [] + if self.relations: + for _item in self.relations: + if _item: + _items.append(_item.to_dict()) + _dict['relations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListRelationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "relations": [V1beta1Relation.from_dict(_item) for _item in obj.get("relations")] if obj.get("relations") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_resources_response.py b/frontier_api/models/v1beta1_list_resources_response.py new file mode 100644 index 0000000..d351597 --- /dev/null +++ b/frontier_api/models/v1beta1_list_resources_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_resource import V1beta1Resource +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListResourcesResponse(BaseModel): + """ + V1beta1ListResourcesResponse + """ # noqa: E501 + resources: Optional[List[V1beta1Resource]] = None + __properties: ClassVar[List[str]] = ["resources"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListResourcesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in resources (list) + _items = [] + if self.resources: + for _item in self.resources: + if _item: + _items.append(_item.to_dict()) + _dict['resources'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListResourcesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resources": [V1beta1Resource.from_dict(_item) for _item in obj.get("resources")] if obj.get("resources") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_roles_response.py b/frontier_api/models/v1beta1_list_roles_response.py new file mode 100644 index 0000000..b362fda --- /dev/null +++ b/frontier_api/models/v1beta1_list_roles_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListRolesResponse(BaseModel): + """ + V1beta1ListRolesResponse + """ # noqa: E501 + roles: Optional[List[V1beta1Role]] = None + __properties: ClassVar[List[str]] = ["roles"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListRolesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item in self.roles: + if _item: + _items.append(_item.to_dict()) + _dict['roles'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListRolesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roles": [V1beta1Role.from_dict(_item) for _item in obj.get("roles")] if obj.get("roles") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_service_user_keys_response.py b/frontier_api/models/v1beta1_list_service_user_keys_response.py new file mode 100644 index 0000000..3b40463 --- /dev/null +++ b/frontier_api/models/v1beta1_list_service_user_keys_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_service_user_key import V1beta1ServiceUserKey +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListServiceUserKeysResponse(BaseModel): + """ + V1beta1ListServiceUserKeysResponse + """ # noqa: E501 + keys: Optional[List[V1beta1ServiceUserKey]] = None + __properties: ClassVar[List[str]] = ["keys"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListServiceUserKeysResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keys (list) + _items = [] + if self.keys: + for _item in self.keys: + if _item: + _items.append(_item.to_dict()) + _dict['keys'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListServiceUserKeysResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keys": [V1beta1ServiceUserKey.from_dict(_item) for _item in obj.get("keys")] if obj.get("keys") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_service_user_secrets_response.py b/frontier_api/models/v1beta1_list_service_user_secrets_response.py new file mode 100644 index 0000000..d660151 --- /dev/null +++ b/frontier_api/models/v1beta1_list_service_user_secrets_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_secret_credential import V1beta1SecretCredential +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListServiceUserSecretsResponse(BaseModel): + """ + V1beta1ListServiceUserSecretsResponse + """ # noqa: E501 + secrets: Optional[List[V1beta1SecretCredential]] = None + __properties: ClassVar[List[str]] = ["secrets"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListServiceUserSecretsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in secrets (list) + _items = [] + if self.secrets: + for _item in self.secrets: + if _item: + _items.append(_item.to_dict()) + _dict['secrets'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListServiceUserSecretsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "secrets": [V1beta1SecretCredential.from_dict(_item) for _item in obj.get("secrets")] if obj.get("secrets") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_service_users_response.py b/frontier_api/models/v1beta1_list_service_users_response.py new file mode 100644 index 0000000..1671783 --- /dev/null +++ b/frontier_api/models/v1beta1_list_service_users_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListServiceUsersResponse(BaseModel): + """ + V1beta1ListServiceUsersResponse + """ # noqa: E501 + serviceusers: Optional[List[V1beta1ServiceUser]] = None + __properties: ClassVar[List[str]] = ["serviceusers"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListServiceUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in serviceusers (list) + _items = [] + if self.serviceusers: + for _item in self.serviceusers: + if _item: + _items.append(_item.to_dict()) + _dict['serviceusers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListServiceUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceusers": [V1beta1ServiceUser.from_dict(_item) for _item in obj.get("serviceusers")] if obj.get("serviceusers") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_subscriptions_response.py b/frontier_api/models/v1beta1_list_subscriptions_response.py new file mode 100644 index 0000000..a96dad5 --- /dev/null +++ b/frontier_api/models/v1beta1_list_subscriptions_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_subscription import V1beta1Subscription +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListSubscriptionsResponse(BaseModel): + """ + V1beta1ListSubscriptionsResponse + """ # noqa: E501 + subscriptions: Optional[List[V1beta1Subscription]] = None + __properties: ClassVar[List[str]] = ["subscriptions"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListSubscriptionsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in subscriptions (list) + _items = [] + if self.subscriptions: + for _item in self.subscriptions: + if _item: + _items.append(_item.to_dict()) + _dict['subscriptions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListSubscriptionsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subscriptions": [V1beta1Subscription.from_dict(_item) for _item in obj.get("subscriptions")] if obj.get("subscriptions") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_user_groups_response.py b/frontier_api/models/v1beta1_list_user_groups_response.py new file mode 100644 index 0000000..f3ccf21 --- /dev/null +++ b/frontier_api/models/v1beta1_list_user_groups_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_group import V1beta1Group +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListUserGroupsResponse(BaseModel): + """ + V1beta1ListUserGroupsResponse + """ # noqa: E501 + groups: Optional[List[V1beta1Group]] = None + __properties: ClassVar[List[str]] = ["groups"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListUserGroupsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item in self.groups: + if _item: + _items.append(_item.to_dict()) + _dict['groups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListUserGroupsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "groups": [V1beta1Group.from_dict(_item) for _item in obj.get("groups")] if obj.get("groups") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_user_invitations_response.py b/frontier_api/models/v1beta1_list_user_invitations_response.py new file mode 100644 index 0000000..f20d5dc --- /dev/null +++ b/frontier_api/models/v1beta1_list_user_invitations_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_invitation import V1beta1Invitation +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListUserInvitationsResponse(BaseModel): + """ + V1beta1ListUserInvitationsResponse + """ # noqa: E501 + invitations: Optional[List[V1beta1Invitation]] = None + __properties: ClassVar[List[str]] = ["invitations"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListUserInvitationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in invitations (list) + _items = [] + if self.invitations: + for _item in self.invitations: + if _item: + _items.append(_item.to_dict()) + _dict['invitations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListUserInvitationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invitations": [V1beta1Invitation.from_dict(_item) for _item in obj.get("invitations")] if obj.get("invitations") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_user_preferences_response.py b/frontier_api/models/v1beta1_list_user_preferences_response.py new file mode 100644 index 0000000..b584b9c --- /dev/null +++ b/frontier_api/models/v1beta1_list_user_preferences_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_preference import V1beta1Preference +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListUserPreferencesResponse(BaseModel): + """ + V1beta1ListUserPreferencesResponse + """ # noqa: E501 + preferences: Optional[List[V1beta1Preference]] = None + __properties: ClassVar[List[str]] = ["preferences"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListUserPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in preferences (list) + _items = [] + if self.preferences: + for _item in self.preferences: + if _item: + _items.append(_item.to_dict()) + _dict['preferences'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListUserPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": [V1beta1Preference.from_dict(_item) for _item in obj.get("preferences")] if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_list_users_response.py b/frontier_api/models/v1beta1_list_users_response.py new file mode 100644 index 0000000..1febd09 --- /dev/null +++ b/frontier_api/models/v1beta1_list_users_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictInt +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ListUsersResponse(BaseModel): + """ + V1beta1ListUsersResponse + """ # noqa: E501 + count: Optional[StrictInt] = None + users: Optional[List[V1beta1User]] = None + __properties: ClassVar[List[str]] = ["count", "users"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ListUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item in self.users: + if _item: + _items.append(_item.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ListUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "count": obj.get("count"), + "users": [V1beta1User.from_dict(_item) for _item in obj.get("users")] if obj.get("users") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_meta_schema.py b/frontier_api/models/v1beta1_meta_schema.py new file mode 100644 index 0000000..18f542a --- /dev/null +++ b/frontier_api/models/v1beta1_meta_schema.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1MetaSchema(BaseModel): + """ + V1beta1MetaSchema + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The unique metaschema uuid.") + name: Optional[StrictStr] = None + var_schema: Optional[StrictStr] = Field(default=None, description="The metaschema json schema.", alias="schema") + created_at: Optional[datetime] = Field(default=None, description="The time when the metaschema was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time when the metaschema was updated.", alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "schema", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1MetaSchema from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1MetaSchema from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "schema": obj.get("schema"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_meta_schema_request_body.py b/frontier_api/models/v1beta1_meta_schema_request_body.py new file mode 100644 index 0000000..cc1ab71 --- /dev/null +++ b/frontier_api/models/v1beta1_meta_schema_request_body.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1MetaSchemaRequestBody(BaseModel): + """ + V1beta1MetaSchemaRequestBody + """ # noqa: E501 + name: StrictStr = Field(description="The name of the metaschema. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.") + var_schema: StrictStr = Field(description="The schema of the metaschema. The schema must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema.", alias="schema") + __properties: ClassVar[List[str]] = ["name", "schema"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1MetaSchemaRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1MetaSchemaRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "schema": obj.get("schema") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_namespace.py b/frontier_api/models/v1beta1_namespace.py new file mode 100644 index 0000000..54f89d3 --- /dev/null +++ b/frontier_api/models/v1beta1_namespace.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Namespace(BaseModel): + """ + V1beta1Namespace + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the namespace was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the namespace was last updated.", alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Namespace from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Namespace from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_organization.py b/frontier_api/models/v1beta1_organization.py new file mode 100644 index 0000000..bf71231 --- /dev/null +++ b/frontier_api/models/v1beta1_organization.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Organization(BaseModel): + """ + V1beta1Organization + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the organization was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the organization was last updated.", alias="updatedAt") + state: Optional[StrictStr] = Field(default=None, description="The state of the organization (enabled or disabled).") + avatar: Optional[StrictStr] = Field(default=None, description="The base64 encoded image string of the organization avatar. Should be less than 2MB.") + __properties: ClassVar[List[str]] = ["id", "name", "title", "metadata", "createdAt", "updatedAt", "state", "avatar"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Organization from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Organization from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "state": obj.get("state"), + "avatar": obj.get("avatar") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_organization_request_body.py b/frontier_api/models/v1beta1_organization_request_body.py new file mode 100644 index 0000000..43f63f3 --- /dev/null +++ b/frontier_api/models/v1beta1_organization_request_body.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1OrganizationRequestBody(BaseModel): + """ + V1beta1OrganizationRequestBody + """ # noqa: E501 + name: StrictStr = Field(description="The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.
*Example:*`\"frontier-org1-acme\"`") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the organization. Can also be left empty.
*Example*: `\"Acme Inc\"`") + metadata: Optional[Union[str, Any]] = Field(default=None, description="Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields.
*Example*:`{\"labels\": {\"key\": \"value\"}, \"description\": \"Organization description\"}`") + avatar: Optional[StrictStr] = Field(default=None, description="The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.") + __properties: ClassVar[List[str]] = ["name", "title", "metadata", "avatar"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1OrganizationRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1OrganizationRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "title": obj.get("title"), + "metadata": obj.get("metadata"), + "avatar": obj.get("avatar") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_permission.py b/frontier_api/models/v1beta1_permission.py new file mode 100644 index 0000000..1b7629c --- /dev/null +++ b/frontier_api/models/v1beta1_permission.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Permission(BaseModel): + """ + V1beta1Permission + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + created_at: Optional[datetime] = Field(default=None, description="The time the permission was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the permission was last updated.", alias="updatedAt") + namespace: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + key: Optional[StrictStr] = Field(default=None, description="Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.") + __properties: ClassVar[List[str]] = ["id", "name", "title", "createdAt", "updatedAt", "namespace", "metadata", "key"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Permission from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Permission from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "namespace": obj.get("namespace"), + "metadata": obj.get("metadata"), + "key": obj.get("key") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_permission_request_body.py b/frontier_api/models/v1beta1_permission_request_body.py new file mode 100644 index 0000000..0a73553 --- /dev/null +++ b/frontier_api/models/v1beta1_permission_request_body.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1PermissionRequestBody(BaseModel): + """ + V1beta1PermissionRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters.") + namespace: Optional[StrictStr] = Field(default=None, description="The namespace of the permission. The namespace should be in service/resource format.
*Example:*`compute/guardian`") + metadata: Optional[Union[str, Any]] = Field(default=None, description="The metadata object for permissions that can hold key value pairs.") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty.") + key: Optional[StrictStr] = Field(default=None, description="Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be `app` as it's reserved for core permissions.") + __properties: ClassVar[List[str]] = ["name", "namespace", "metadata", "title", "key"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1PermissionRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1PermissionRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "namespace": obj.get("namespace"), + "metadata": obj.get("metadata"), + "title": obj.get("title"), + "key": obj.get("key") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_plan.py b/frontier_api/models/v1beta1_plan.py new file mode 100644 index 0000000..f83def8 --- /dev/null +++ b/frontier_api/models/v1beta1_plan.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +from frontier_api.models.v1beta1_feature import V1beta1Feature +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Plan(BaseModel): + """ + V1beta1Plan + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + features: Optional[List[V1beta1Feature]] = None + interval: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "title", "description", "features", "interval", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Plan from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in features (list) + _items = [] + if self.features: + for _item in self.features: + if _item: + _items.append(_item.to_dict()) + _dict['features'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Plan from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "description": obj.get("description"), + "features": [V1beta1Feature.from_dict(_item) for _item in obj.get("features")] if obj.get("features") is not None else None, + "interval": obj.get("interval"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_plan_request_body.py b/frontier_api/models/v1beta1_plan_request_body.py new file mode 100644 index 0000000..e0301f7 --- /dev/null +++ b/frontier_api/models/v1beta1_plan_request_body.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from frontier_api.models.v1beta1_feature import V1beta1Feature +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1PlanRequestBody(BaseModel): + """ + V1beta1PlanRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + features: Optional[List[V1beta1Feature]] = None + interval: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "title", "description", "features", "interval", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1PlanRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in features (list) + _items = [] + if self.features: + for _item in self.features: + if _item: + _items.append(_item.to_dict()) + _dict['features'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1PlanRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "title": obj.get("title"), + "description": obj.get("description"), + "features": [V1beta1Feature.from_dict(_item) for _item in obj.get("features")] if obj.get("features") is not None else None, + "interval": obj.get("interval"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_policy.py b/frontier_api/models/v1beta1_policy.py new file mode 100644 index 0000000..da189a7 --- /dev/null +++ b/frontier_api/models/v1beta1_policy.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Policy(BaseModel): + """ + V1beta1Policy + """ # noqa: E501 + id: Optional[StrictStr] = None + title: Optional[StrictStr] = None + created_at: Optional[datetime] = Field(default=None, description="The time the policy was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the policy was last updated.", alias="updatedAt") + role_id: Optional[StrictStr] = Field(default=None, alias="roleId") + resource: Optional[StrictStr] = None + principal: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["id", "title", "createdAt", "updatedAt", "roleId", "resource", "principal", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Policy from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Policy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "title": obj.get("title"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "roleId": obj.get("roleId"), + "resource": obj.get("resource"), + "principal": obj.get("principal"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_policy_request_body.py b/frontier_api/models/v1beta1_policy_request_body.py new file mode 100644 index 0000000..c5cd8d9 --- /dev/null +++ b/frontier_api/models/v1beta1_policy_request_body.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1PolicyRequestBody(BaseModel): + """ + V1beta1PolicyRequestBody + """ # noqa: E501 + role_id: StrictStr = Field(description="unique id of the role to which policy is assigned", alias="roleId") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the policy. Can also be left empty.
*Example:* `Policy title`") + resource: StrictStr = Field(description="The resource to which policy is assigned in this format `namespace:uuid`.
*Example:* `app/guardian:70f69c3a-334b-4f25-90b8-4d4f3be6b8e2`") + principal: StrictStr = Field(description="principal is the user or group to which policy is assigned. The principal id must be prefixed with its namespace id in this format `namespace:uuid`. The namespace can be `app/user`, `app/group` or `app/serviceuser` (coming up!) and uuid is the unique id of the principal.
*Example:* `app/user:92f69c3a-334b-4f25-90b8-4d4f3be6b825`") + metadata: Optional[Union[str, Any]] = Field(default=None, description="Metadata object for policies that can hold key value pairs defined in Policy Metaschema.
*Example:* `{\"labels\": {\"key\": \"value\"}, \"description\": \"Policy description\"}`") + __properties: ClassVar[List[str]] = ["roleId", "title", "resource", "principal", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1PolicyRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1PolicyRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "roleId": obj.get("roleId"), + "title": obj.get("title"), + "resource": obj.get("resource"), + "principal": obj.get("principal"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_preference.py b/frontier_api/models/v1beta1_preference.py new file mode 100644 index 0000000..711cfbd --- /dev/null +++ b/frontier_api/models/v1beta1_preference.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Preference(BaseModel): + """ + V1beta1Preference + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + value: Optional[StrictStr] = None + resource_id: Optional[StrictStr] = Field(default=None, alias="resourceId") + resource_type: Optional[StrictStr] = Field(default=None, alias="resourceType") + created_at: Optional[datetime] = Field(default=None, description="The time when the preference was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time when the preference was updated.", alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "value", "resourceId", "resourceType", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Preference from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Preference from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "value": obj.get("value"), + "resourceId": obj.get("resourceId"), + "resourceType": obj.get("resourceType"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_preference_request_body.py b/frontier_api/models/v1beta1_preference_request_body.py new file mode 100644 index 0000000..ccece1b --- /dev/null +++ b/frontier_api/models/v1beta1_preference_request_body.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1PreferenceRequestBody(BaseModel): + """ + V1beta1PreferenceRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = None + value: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["name", "value"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1PreferenceRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1PreferenceRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "value": obj.get("value") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_preference_trait.py b/frontier_api/models/v1beta1_preference_trait.py new file mode 100644 index 0000000..f5c6ab9 --- /dev/null +++ b/frontier_api/models/v1beta1_preference_trait.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1PreferenceTrait(BaseModel): + """ + V1beta1PreferenceTrait + """ # noqa: E501 + resource_type: Optional[StrictStr] = Field(default=None, alias="resourceType") + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + description: Optional[StrictStr] = None + long_description: Optional[StrictStr] = Field(default=None, alias="longDescription") + heading: Optional[StrictStr] = None + sub_heading: Optional[StrictStr] = Field(default=None, alias="subHeading") + breadcrumb: Optional[StrictStr] = None + default: Optional[StrictStr] = None + input_hints: Optional[StrictStr] = Field(default=None, alias="inputHints") + text: Optional[StrictStr] = None + textarea: Optional[StrictStr] = None + select: Optional[StrictStr] = None + combobox: Optional[StrictStr] = None + checkbox: Optional[StrictStr] = None + multiselect: Optional[StrictStr] = None + number: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["resourceType", "name", "title", "description", "longDescription", "heading", "subHeading", "breadcrumb", "default", "inputHints", "text", "textarea", "select", "combobox", "checkbox", "multiselect", "number"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1PreferenceTrait from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1PreferenceTrait from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resourceType": obj.get("resourceType"), + "name": obj.get("name"), + "title": obj.get("title"), + "description": obj.get("description"), + "longDescription": obj.get("longDescription"), + "heading": obj.get("heading"), + "subHeading": obj.get("subHeading"), + "breadcrumb": obj.get("breadcrumb"), + "default": obj.get("default"), + "inputHints": obj.get("inputHints"), + "text": obj.get("text"), + "textarea": obj.get("textarea"), + "select": obj.get("select"), + "combobox": obj.get("combobox"), + "checkbox": obj.get("checkbox"), + "multiselect": obj.get("multiselect"), + "number": obj.get("number") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_price.py b/frontier_api/models/v1beta1_price.py new file mode 100644 index 0000000..2b0a621 --- /dev/null +++ b/frontier_api/models/v1beta1_price.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Price(BaseModel): + """ + V1beta1Price + """ # noqa: E501 + id: Optional[StrictStr] = None + feature_id: Optional[StrictStr] = Field(default=None, alias="featureId") + provider_id: Optional[StrictStr] = Field(default=None, alias="providerId") + name: Optional[StrictStr] = None + interval: Optional[StrictStr] = None + usage_type: Optional[StrictStr] = Field(default=None, alias="usageType") + billing_scheme: Optional[StrictStr] = Field(default=None, alias="billingScheme") + state: Optional[StrictStr] = None + currency: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + metered_aggregate: Optional[StrictStr] = Field(default=None, alias="meteredAggregate") + tier_mode: Optional[StrictStr] = Field(default=None, alias="tierMode") + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "featureId", "providerId", "name", "interval", "usageType", "billingScheme", "state", "currency", "amount", "meteredAggregate", "tierMode", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Price from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Price from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "featureId": obj.get("featureId"), + "providerId": obj.get("providerId"), + "name": obj.get("name"), + "interval": obj.get("interval"), + "usageType": obj.get("usageType"), + "billingScheme": obj.get("billingScheme"), + "state": obj.get("state"), + "currency": obj.get("currency"), + "amount": obj.get("amount"), + "meteredAggregate": obj.get("meteredAggregate"), + "tierMode": obj.get("tierMode"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_project.py b/frontier_api/models/v1beta1_project.py new file mode 100644 index 0000000..57ac6cc --- /dev/null +++ b/frontier_api/models/v1beta1_project.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Project(BaseModel): + """ + V1beta1Project + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + title: Optional[StrictStr] = None + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the project was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the project was last updated.", alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "name", "title", "orgId", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Project from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Project from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "orgId": obj.get("orgId"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_project_request_body.py b/frontier_api/models/v1beta1_project_request_body.py new file mode 100644 index 0000000..5463472 --- /dev/null +++ b/frontier_api/models/v1beta1_project_request_body.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ProjectRequestBody(BaseModel): + """ + V1beta1ProjectRequestBody + """ # noqa: E501 + name: StrictStr = Field(description="The name of the project. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.
*Example:* `frontier-playground`") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the project. Can also be left empty.
*Example:* `Frontier Playground`") + metadata: Optional[Union[str, Any]] = Field(default=None, description="Metadata object for projects that can hold key value pairs defined in Project Metaschema.") + org_id: StrictStr = Field(description="unique id of the organization to which project belongs", alias="orgId") + __properties: ClassVar[List[str]] = ["name", "title", "metadata", "orgId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ProjectRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ProjectRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "title": obj.get("title"), + "metadata": obj.get("metadata"), + "orgId": obj.get("orgId") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_relation.py b/frontier_api/models/v1beta1_relation.py new file mode 100644 index 0000000..adeeaf9 --- /dev/null +++ b/frontier_api/models/v1beta1_relation.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Relation(BaseModel): + """ + V1beta1Relation + """ # noqa: E501 + id: Optional[StrictStr] = None + created_at: Optional[datetime] = Field(default=None, description="The time the relation was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the relation was last updated.", alias="updatedAt") + subject_sub_relation: Optional[StrictStr] = Field(default=None, alias="subjectSubRelation") + relation: Optional[StrictStr] = None + object: Optional[StrictStr] = None + subject: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "createdAt", "updatedAt", "subjectSubRelation", "relation", "object", "subject"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Relation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Relation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "subjectSubRelation": obj.get("subjectSubRelation"), + "relation": obj.get("relation"), + "object": obj.get("object"), + "subject": obj.get("subject") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_relation_request_body.py b/frontier_api/models/v1beta1_relation_request_body.py new file mode 100644 index 0000000..3034bfa --- /dev/null +++ b/frontier_api/models/v1beta1_relation_request_body.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1RelationRequestBody(BaseModel): + """ + V1beta1RelationRequestBody + """ # noqa: E501 + object: Optional[StrictStr] = None + subject: Optional[StrictStr] = None + relation: Optional[StrictStr] = None + subject_sub_relation: Optional[StrictStr] = Field(default=None, alias="subjectSubRelation") + __properties: ClassVar[List[str]] = ["object", "subject", "relation", "subjectSubRelation"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1RelationRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1RelationRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "object": obj.get("object"), + "subject": obj.get("subject"), + "relation": obj.get("relation"), + "subjectSubRelation": obj.get("subjectSubRelation") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_resource.py b/frontier_api/models/v1beta1_resource.py new file mode 100644 index 0000000..8b25bc2 --- /dev/null +++ b/frontier_api/models/v1beta1_resource.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Resource(BaseModel): + """ + V1beta1Resource + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, description="Name of the resource. Must be unique within the project.") + created_at: Optional[datetime] = Field(default=None, description="The time the resource was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the resource was last updated.", alias="updatedAt") + urn: Optional[StrictStr] = None + project_id: Optional[StrictStr] = Field(default=None, alias="projectId") + namespace: Optional[StrictStr] = None + principal: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + title: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name", "createdAt", "updatedAt", "urn", "projectId", "namespace", "principal", "metadata", "title"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Resource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Resource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "urn": obj.get("urn"), + "projectId": obj.get("projectId"), + "namespace": obj.get("namespace"), + "principal": obj.get("principal"), + "metadata": obj.get("metadata"), + "title": obj.get("title") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_resource_request_body.py b/frontier_api/models/v1beta1_resource_request_body.py new file mode 100644 index 0000000..2362cbc --- /dev/null +++ b/frontier_api/models/v1beta1_resource_request_body.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ResourceRequestBody(BaseModel): + """ + V1beta1ResourceRequestBody + """ # noqa: E501 + name: StrictStr = Field(description="The name of the resource. Must be unique within the project.
*Example:* `my-resource`") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the resource. Can also be left empty.") + namespace: StrictStr = Field(description="The namespace of the resource. The resource namespace are created when permissions for that resource is created in Frontier. If namespace doesn't exists the request will fail.
*Example:* `compute/instance`") + principal: Optional[StrictStr] = Field(default=None, description="UserID or ServiceUserID that should be marked as owner of the resource. If not provided, the current logged in user will be made the resource owner.
*Example:* `user:92f69c3a-334b-4f25-90b8-4d4f3be6b825`") + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "title", "namespace", "principal", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ResourceRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ResourceRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "title": obj.get("title"), + "namespace": obj.get("namespace"), + "principal": obj.get("principal"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_role.py b/frontier_api/models/v1beta1_role.py new file mode 100644 index 0000000..b35effd --- /dev/null +++ b/frontier_api/models/v1beta1_role.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Role(BaseModel): + """ + V1beta1Role + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None + permissions: Optional[List[StrictStr]] = None + title: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the role was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the role was last updated.", alias="updatedAt") + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + state: Optional[StrictStr] = None + scopes: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["id", "name", "permissions", "title", "metadata", "createdAt", "updatedAt", "orgId", "state", "scopes"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Role from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Role from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "permissions": obj.get("permissions"), + "title": obj.get("title"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "orgId": obj.get("orgId"), + "state": obj.get("state"), + "scopes": obj.get("scopes") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_role_request_body.py b/frontier_api/models/v1beta1_role_request_body.py new file mode 100644 index 0000000..20523e5 --- /dev/null +++ b/frontier_api/models/v1beta1_role_request_body.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1RoleRequestBody(BaseModel): + """ + V1beta1RoleRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = None + permissions: Optional[List[StrictStr]] = None + metadata: Optional[Union[str, Any]] = None + title: Optional[StrictStr] = None + scopes: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["name", "permissions", "metadata", "title", "scopes"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1RoleRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1RoleRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "permissions": obj.get("permissions"), + "metadata": obj.get("metadata"), + "title": obj.get("title"), + "scopes": obj.get("scopes") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_secret_credential.py b/frontier_api/models/v1beta1_secret_credential.py new file mode 100644 index 0000000..fa63380 --- /dev/null +++ b/frontier_api/models/v1beta1_secret_credential.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1SecretCredential(BaseModel): + """ + V1beta1SecretCredential + """ # noqa: E501 + id: Optional[StrictStr] = None + title: Optional[StrictStr] = None + secret: Optional[StrictStr] = None + created_at: Optional[datetime] = Field(default=None, description="The time when the secret was created.", alias="createdAt") + __properties: ClassVar[List[str]] = ["id", "title", "secret", "createdAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1SecretCredential from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + "secret", + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1SecretCredential from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "title": obj.get("title"), + "secret": obj.get("secret"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_service_user.py b/frontier_api/models/v1beta1_service_user.py new file mode 100644 index 0000000..04e3a98 --- /dev/null +++ b/frontier_api/models/v1beta1_service_user.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ServiceUser(BaseModel): + """ + V1beta1ServiceUser + """ # noqa: E501 + id: Optional[StrictStr] = None + title: Optional[StrictStr] = Field(default=None, description="User friendly name of the service user.") + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the user was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the user was last updated.", alias="updatedAt") + state: Optional[StrictStr] = None + org_id: Optional[StrictStr] = Field(default=None, alias="orgId") + __properties: ClassVar[List[str]] = ["id", "title", "metadata", "createdAt", "updatedAt", "state", "orgId"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ServiceUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ServiceUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "title": obj.get("title"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "state": obj.get("state"), + "orgId": obj.get("orgId") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_service_user_key.py b/frontier_api/models/v1beta1_service_user_key.py new file mode 100644 index 0000000..98c6365 --- /dev/null +++ b/frontier_api/models/v1beta1_service_user_key.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ServiceUserKey(BaseModel): + """ + V1beta1ServiceUserKey + """ # noqa: E501 + id: Optional[StrictStr] = None + title: Optional[StrictStr] = None + principal_id: Optional[StrictStr] = Field(default=None, alias="principalId") + public_key: Optional[StrictStr] = Field(default=None, alias="publicKey") + created_at: Optional[datetime] = Field(default=None, description="The time when the secret was created.", alias="createdAt") + __properties: ClassVar[List[str]] = ["id", "title", "principalId", "publicKey", "createdAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ServiceUserKey from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + "public_key", + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ServiceUserKey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "title": obj.get("title"), + "principalId": obj.get("principalId"), + "publicKey": obj.get("publicKey"), + "createdAt": obj.get("createdAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_service_user_request_body.py b/frontier_api/models/v1beta1_service_user_request_body.py new file mode 100644 index 0000000..a1b6fa9 --- /dev/null +++ b/frontier_api/models/v1beta1_service_user_request_body.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1ServiceUserRequestBody(BaseModel): + """ + V1beta1ServiceUserRequestBody + """ # noqa: E501 + title: Optional[StrictStr] = Field(default=None, description="User friendly name of the service user.") + metadata: Optional[Union[str, Any]] = None + __properties: ClassVar[List[str]] = ["title", "metadata"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1ServiceUserRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1ServiceUserRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "title": obj.get("title"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_subscription.py b/frontier_api/models/v1beta1_subscription.py new file mode 100644 index 0000000..f78e4b7 --- /dev/null +++ b/frontier_api/models/v1beta1_subscription.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictInt, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Subscription(BaseModel): + """ + V1beta1Subscription + """ # noqa: E501 + id: Optional[StrictStr] = None + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + provider_id: Optional[StrictStr] = Field(default=None, alias="providerId") + plan_id: Optional[StrictStr] = Field(default=None, alias="planId") + state: Optional[StrictStr] = None + trial_days: Optional[StrictInt] = Field(default=None, alias="trialDays") + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + canceled_at: Optional[datetime] = Field(default=None, alias="canceledAt") + ended_at: Optional[datetime] = Field(default=None, alias="endedAt") + __properties: ClassVar[List[str]] = ["id", "customerId", "providerId", "planId", "state", "trialDays", "metadata", "createdAt", "updatedAt", "canceledAt", "endedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Subscription from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Subscription from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "customerId": obj.get("customerId"), + "providerId": obj.get("providerId"), + "planId": obj.get("planId"), + "state": obj.get("state"), + "trialDays": obj.get("trialDays"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "canceledAt": obj.get("canceledAt"), + "endedAt": obj.get("endedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_billing_account_response.py b/frontier_api/models/v1beta1_update_billing_account_response.py new file mode 100644 index 0000000..7427f47 --- /dev/null +++ b/frontier_api/models/v1beta1_update_billing_account_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from pydantic import Field +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateBillingAccountResponse(BaseModel): + """ + V1beta1UpdateBillingAccountResponse + """ # noqa: E501 + billing_account: Optional[V1beta1BillingAccount] = Field(default=None, alias="billingAccount") + __properties: ClassVar[List[str]] = ["billingAccount"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateBillingAccountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of billing_account + if self.billing_account: + _dict['billingAccount'] = self.billing_account.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateBillingAccountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "billingAccount": V1beta1BillingAccount.from_dict(obj.get("billingAccount")) if obj.get("billingAccount") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_current_user_response.py b/frontier_api/models/v1beta1_update_current_user_response.py new file mode 100644 index 0000000..ce9dba8 --- /dev/null +++ b/frontier_api/models/v1beta1_update_current_user_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateCurrentUserResponse(BaseModel): + """ + V1beta1UpdateCurrentUserResponse + """ # noqa: E501 + user: Optional[V1beta1User] = None + __properties: ClassVar[List[str]] = ["user"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateCurrentUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateCurrentUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": V1beta1User.from_dict(obj.get("user")) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_feature_response.py b/frontier_api/models/v1beta1_update_feature_response.py new file mode 100644 index 0000000..d2ebfb9 --- /dev/null +++ b/frontier_api/models/v1beta1_update_feature_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_feature import V1beta1Feature +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateFeatureResponse(BaseModel): + """ + V1beta1UpdateFeatureResponse + """ # noqa: E501 + feature: Optional[V1beta1Feature] = None + __properties: ClassVar[List[str]] = ["feature"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateFeatureResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of feature + if self.feature: + _dict['feature'] = self.feature.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateFeatureResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feature": V1beta1Feature.from_dict(obj.get("feature")) if obj.get("feature") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_group_response.py b/frontier_api/models/v1beta1_update_group_response.py new file mode 100644 index 0000000..543bf0c --- /dev/null +++ b/frontier_api/models/v1beta1_update_group_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_group import V1beta1Group +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateGroupResponse(BaseModel): + """ + V1beta1UpdateGroupResponse + """ # noqa: E501 + group: Optional[V1beta1Group] = None + __properties: ClassVar[List[str]] = ["group"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of group + if self.group: + _dict['group'] = self.group.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "group": V1beta1Group.from_dict(obj.get("group")) if obj.get("group") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_meta_schema_response.py b/frontier_api/models/v1beta1_update_meta_schema_response.py new file mode 100644 index 0000000..34b16fb --- /dev/null +++ b/frontier_api/models/v1beta1_update_meta_schema_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateMetaSchemaResponse(BaseModel): + """ + V1beta1UpdateMetaSchemaResponse + """ # noqa: E501 + metaschema: Optional[V1beta1MetaSchema] = None + __properties: ClassVar[List[str]] = ["metaschema"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateMetaSchemaResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metaschema + if self.metaschema: + _dict['metaschema'] = self.metaschema.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateMetaSchemaResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metaschema": V1beta1MetaSchema.from_dict(obj.get("metaschema")) if obj.get("metaschema") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_organization_response.py b/frontier_api/models/v1beta1_update_organization_response.py new file mode 100644 index 0000000..55e63d3 --- /dev/null +++ b/frontier_api/models/v1beta1_update_organization_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_organization import V1beta1Organization +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateOrganizationResponse(BaseModel): + """ + V1beta1UpdateOrganizationResponse + """ # noqa: E501 + organization: Optional[V1beta1Organization] = None + __properties: ClassVar[List[str]] = ["organization"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateOrganizationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of organization + if self.organization: + _dict['organization'] = self.organization.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateOrganizationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organization": V1beta1Organization.from_dict(obj.get("organization")) if obj.get("organization") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_organization_role_response.py b/frontier_api/models/v1beta1_update_organization_role_response.py new file mode 100644 index 0000000..80e797f --- /dev/null +++ b/frontier_api/models/v1beta1_update_organization_role_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateOrganizationRoleResponse(BaseModel): + """ + V1beta1UpdateOrganizationRoleResponse + """ # noqa: E501 + role: Optional[V1beta1Role] = None + __properties: ClassVar[List[str]] = ["role"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateOrganizationRoleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of role + if self.role: + _dict['role'] = self.role.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateOrganizationRoleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": V1beta1Role.from_dict(obj.get("role")) if obj.get("role") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_permission_response.py b/frontier_api/models/v1beta1_update_permission_response.py new file mode 100644 index 0000000..bf2197e --- /dev/null +++ b/frontier_api/models/v1beta1_update_permission_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_permission import V1beta1Permission +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdatePermissionResponse(BaseModel): + """ + V1beta1UpdatePermissionResponse + """ # noqa: E501 + permission: Optional[V1beta1Permission] = None + __properties: ClassVar[List[str]] = ["permission"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdatePermissionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of permission + if self.permission: + _dict['permission'] = self.permission.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdatePermissionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permission": V1beta1Permission.from_dict(obj.get("permission")) if obj.get("permission") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_plan_response.py b/frontier_api/models/v1beta1_update_plan_response.py new file mode 100644 index 0000000..adcbf3f --- /dev/null +++ b/frontier_api/models/v1beta1_update_plan_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_plan import V1beta1Plan +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdatePlanResponse(BaseModel): + """ + V1beta1UpdatePlanResponse + """ # noqa: E501 + plan: Optional[V1beta1Plan] = None + __properties: ClassVar[List[str]] = ["plan"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdatePlanResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of plan + if self.plan: + _dict['plan'] = self.plan.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdatePlanResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plan": V1beta1Plan.from_dict(obj.get("plan")) if obj.get("plan") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_policy_response.py b/frontier_api/models/v1beta1_update_policy_response.py new file mode 100644 index 0000000..7bf3ff9 --- /dev/null +++ b/frontier_api/models/v1beta1_update_policy_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_policy import V1beta1Policy +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdatePolicyResponse(BaseModel): + """ + V1beta1UpdatePolicyResponse + """ # noqa: E501 + policies: Optional[List[V1beta1Policy]] = None + __properties: ClassVar[List[str]] = ["policies"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdatePolicyResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in policies (list) + _items = [] + if self.policies: + for _item in self.policies: + if _item: + _items.append(_item.to_dict()) + _dict['policies'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdatePolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policies": [V1beta1Policy.from_dict(_item) for _item in obj.get("policies")] if obj.get("policies") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_project_resource_response.py b/frontier_api/models/v1beta1_update_project_resource_response.py new file mode 100644 index 0000000..dcf5a74 --- /dev/null +++ b/frontier_api/models/v1beta1_update_project_resource_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_resource import V1beta1Resource +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateProjectResourceResponse(BaseModel): + """ + V1beta1UpdateProjectResourceResponse + """ # noqa: E501 + resource: Optional[V1beta1Resource] = None + __properties: ClassVar[List[str]] = ["resource"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateProjectResourceResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resource + if self.resource: + _dict['resource'] = self.resource.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateProjectResourceResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "resource": V1beta1Resource.from_dict(obj.get("resource")) if obj.get("resource") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_project_response.py b/frontier_api/models/v1beta1_update_project_response.py new file mode 100644 index 0000000..617549a --- /dev/null +++ b/frontier_api/models/v1beta1_update_project_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_project import V1beta1Project +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateProjectResponse(BaseModel): + """ + V1beta1UpdateProjectResponse + """ # noqa: E501 + project: Optional[V1beta1Project] = None + __properties: ClassVar[List[str]] = ["project"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateProjectResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of project + if self.project: + _dict['project'] = self.project.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateProjectResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "project": V1beta1Project.from_dict(obj.get("project")) if obj.get("project") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_role_response.py b/frontier_api/models/v1beta1_update_role_response.py new file mode 100644 index 0000000..0a1b68a --- /dev/null +++ b/frontier_api/models/v1beta1_update_role_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_role import V1beta1Role +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateRoleResponse(BaseModel): + """ + V1beta1UpdateRoleResponse + """ # noqa: E501 + role: Optional[V1beta1Role] = None + __properties: ClassVar[List[str]] = ["role"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateRoleResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of role + if self.role: + _dict['role'] = self.role.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateRoleResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": V1beta1Role.from_dict(obj.get("role")) if obj.get("role") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_subscription_response.py b/frontier_api/models/v1beta1_update_subscription_response.py new file mode 100644 index 0000000..812614d --- /dev/null +++ b/frontier_api/models/v1beta1_update_subscription_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_subscription import V1beta1Subscription +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateSubscriptionResponse(BaseModel): + """ + V1beta1UpdateSubscriptionResponse + """ # noqa: E501 + subscription: Optional[V1beta1Subscription] = None + __properties: ClassVar[List[str]] = ["subscription"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateSubscriptionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of subscription + if self.subscription: + _dict['subscription'] = self.subscription.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateSubscriptionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "subscription": V1beta1Subscription.from_dict(obj.get("subscription")) if obj.get("subscription") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_update_user_response.py b/frontier_api/models/v1beta1_update_user_response.py new file mode 100644 index 0000000..2f318ae --- /dev/null +++ b/frontier_api/models/v1beta1_update_user_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel +from frontier_api.models.v1beta1_user import V1beta1User +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UpdateUserResponse(BaseModel): + """ + V1beta1UpdateUserResponse + """ # noqa: E501 + user: Optional[V1beta1User] = None + __properties: ClassVar[List[str]] = ["user"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UpdateUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of user + if self.user: + _dict['user'] = self.user.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UpdateUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user": V1beta1User.from_dict(obj.get("user")) if obj.get("user") is not None else None + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_usage.py b/frontier_api/models/v1beta1_usage.py new file mode 100644 index 0000000..c23d8db --- /dev/null +++ b/frontier_api/models/v1beta1_usage.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1Usage(BaseModel): + """ + V1beta1Usage + """ # noqa: E501 + id: Optional[StrictStr] = None + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + source: Optional[StrictStr] = None + description: Optional[StrictStr] = None + type: Optional[StrictStr] = None + amount: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "customerId", "source", "description", "type", "amount", "metadata", "createdAt", "updatedAt"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1Usage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1Usage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "customerId": obj.get("customerId"), + "source": obj.get("source"), + "description": obj.get("description"), + "type": obj.get("type"), + "amount": obj.get("amount"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_user.py b/frontier_api/models/v1beta1_user.py new file mode 100644 index 0000000..76207ef --- /dev/null +++ b/frontier_api/models/v1beta1_user.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1User(BaseModel): + """ + V1beta1User + """ # noqa: E501 + id: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, description="Unique name of the user.") + title: Optional[StrictStr] = Field(default=None, description="Name of the user.") + email: Optional[StrictStr] = None + metadata: Optional[Union[str, Any]] = None + created_at: Optional[datetime] = Field(default=None, description="The time the user was created.", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="The time the user was last updated.", alias="updatedAt") + state: Optional[StrictStr] = Field(default=None, description="The state of the user (enabled or disabled).") + avatar: Optional[StrictStr] = Field(default=None, description="The base64 encoded image string of the user avatar. Should be less than 2MB.") + __properties: ClassVar[List[str]] = ["id", "name", "title", "email", "metadata", "createdAt", "updatedAt", "state", "avatar"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1User from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1User from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "title": obj.get("title"), + "email": obj.get("email"), + "metadata": obj.get("metadata"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "state": obj.get("state"), + "avatar": obj.get("avatar") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_user_request_body.py b/frontier_api/models/v1beta1_user_request_body.py new file mode 100644 index 0000000..2539bc2 --- /dev/null +++ b/frontier_api/models/v1beta1_user_request_body.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, StrictStr +from pydantic import Field +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1UserRequestBody(BaseModel): + """ + V1beta1UserRequestBody + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email. ") + email: StrictStr = Field(description="The email of the user. The email must be unique within the entire Frontier instance.
*Example:*`\"john.doe@raystack.org\"`") + metadata: Optional[Union[str, Any]] = Field(default=None, description="Metadata object for users that can hold key value pairs pre-defined in User Metaschema. The metadata object can be used to store arbitrary information about the user such as label, description etc. By default the user metaschema contains labels and descriptions for the user. Update the same to add more fields to the user metadata object.
*Example:*`{\"label\": {\"key1\": \"value1\"}, \"description\": \"User Description\"}`") + title: Optional[StrictStr] = Field(default=None, description="The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty.
*Example:*`\"John Doe\"`") + avatar: Optional[StrictStr] = Field(default=None, description="The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.") + __properties: ClassVar[List[str]] = ["name", "email", "metadata", "title", "avatar"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1UserRequestBody from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1UserRequestBody from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "email": obj.get("email"), + "metadata": obj.get("metadata"), + "title": obj.get("title"), + "avatar": obj.get("avatar") + }) + return _obj + + diff --git a/frontier_api/models/v1beta1_verify_organization_domain_response.py b/frontier_api/models/v1beta1_verify_organization_domain_response.py new file mode 100644 index 0000000..d81af10 --- /dev/null +++ b/frontier_api/models/v1beta1_verify_organization_domain_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, StrictStr +try: + from typing import Self +except ImportError: + from typing_extensions import Self + +class V1beta1VerifyOrganizationDomainResponse(BaseModel): + """ + V1beta1VerifyOrganizationDomainResponse + """ # noqa: E501 + state: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["state"] + + model_config = { + "populate_by_name": True, + "validate_assignment": True + } + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of V1beta1VerifyOrganizationDomainResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + _dict = self.model_dump( + by_alias=True, + exclude={ + }, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Dict) -> Self: + """Create an instance of V1beta1VerifyOrganizationDomainResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "state": obj.get("state") + }) + return _obj + + diff --git a/frontier_api/paths/__init__.py b/frontier_api/paths/__init__.py deleted file mode 100644 index 02f02c1..0000000 --- a/frontier_api/paths/__init__.py +++ /dev/null @@ -1,96 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.apis.path_to_api import path_to_api - -import enum - - -class PathValues(str, enum.Enum): - _WELLKNOWN_JWKS_JSON = "/.well-known/jwks.json" - V1BETA1_ADMIN_GROUPS = "/v1beta1/admin/groups" - V1BETA1_ADMIN_ORGANIZATIONS = "/v1beta1/admin/organizations" - V1BETA1_ADMIN_PROJECTS = "/v1beta1/admin/projects" - V1BETA1_ADMIN_RELATIONS = "/v1beta1/admin/relations" - V1BETA1_ADMIN_RESOURCES = "/v1beta1/admin/resources" - V1BETA1_ADMIN_USERS = "/v1beta1/admin/users" - V1BETA1_AUTH = "/v1beta1/auth" - V1BETA1_AUTH_CALLBACK = "/v1beta1/auth/callback" - V1BETA1_AUTH_JWKS = "/v1beta1/auth/jwks" - V1BETA1_AUTH_LOGOUT = "/v1beta1/auth/logout" - V1BETA1_AUTH_REGISTER_STRATEGY_NAME = "/v1beta1/auth/register/{strategyName}" - V1BETA1_AUTH_TOKEN = "/v1beta1/auth/token" - V1BETA1_BATCHCHECK = "/v1beta1/batchcheck" - V1BETA1_CHECK = "/v1beta1/check" - V1BETA1_GROUPS_ID_PREFERENCES = "/v1beta1/groups/{id}/preferences" - V1BETA1_META_SCHEMAS = "/v1beta1/meta/schemas" - V1BETA1_META_SCHEMAS_ID = "/v1beta1/meta/schemas/{id}" - V1BETA1_NAMESPACES = "/v1beta1/namespaces" - V1BETA1_NAMESPACES_ID = "/v1beta1/namespaces/{id}" - V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS = "/v1beta1/organization/{orgId}/auditlogs" - V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS_ID = "/v1beta1/organization/{orgId}/auditlogs/{id}" - V1BETA1_ORGANIZATIONS = "/v1beta1/organizations" - V1BETA1_ORGANIZATIONS_ID = "/v1beta1/organizations/{id}" - V1BETA1_ORGANIZATIONS_ID_ADMINS = "/v1beta1/organizations/{id}/admins" - V1BETA1_ORGANIZATIONS_ID_DISABLE = "/v1beta1/organizations/{id}/disable" - V1BETA1_ORGANIZATIONS_ID_ENABLE = "/v1beta1/organizations/{id}/enable" - V1BETA1_ORGANIZATIONS_ID_PREFERENCES = "/v1beta1/organizations/{id}/preferences" - V1BETA1_ORGANIZATIONS_ID_PROJECTS = "/v1beta1/organizations/{id}/projects" - V1BETA1_ORGANIZATIONS_ID_SERVICEUSERS = "/v1beta1/organizations/{id}/serviceusers" - V1BETA1_ORGANIZATIONS_ID_USERS = "/v1beta1/organizations/{id}/users" - V1BETA1_ORGANIZATIONS_ID_USERS_USER_ID = "/v1beta1/organizations/{id}/users/{userId}" - V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS = "/v1beta1/organizations/{orgId}/domains" - V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID = "/v1beta1/organizations/{orgId}/domains/{id}" - V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID_VERIFY = "/v1beta1/organizations/{orgId}/domains/{id}/verify" - V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS = "/v1beta1/organizations/{orgId}/groups" - V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID = "/v1beta1/organizations/{orgId}/groups/{id}" - V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_DISABLE = "/v1beta1/organizations/{orgId}/groups/{id}/disable" - V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_ENABLE = "/v1beta1/organizations/{orgId}/groups/{id}/enable" - V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS = "/v1beta1/organizations/{orgId}/groups/{id}/users" - V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS_USER_ID = "/v1beta1/organizations/{orgId}/groups/{id}/users/{userId}" - V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS = "/v1beta1/organizations/{orgId}/invitations" - V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID = "/v1beta1/organizations/{orgId}/invitations/{id}" - V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID_ACCEPT = "/v1beta1/organizations/{orgId}/invitations/{id}/accept" - V1BETA1_ORGANIZATIONS_ORG_ID_JOIN = "/v1beta1/organizations/{orgId}/join" - V1BETA1_ORGANIZATIONS_ORG_ID_ROLES = "/v1beta1/organizations/{orgId}/roles" - V1BETA1_ORGANIZATIONS_ORG_ID_ROLES_ID = "/v1beta1/organizations/{orgId}/roles/{id}" - V1BETA1_PERMISSIONS = "/v1beta1/permissions" - V1BETA1_PERMISSIONS_ID = "/v1beta1/permissions/{id}" - V1BETA1_POLICIES = "/v1beta1/policies" - V1BETA1_POLICIES_ID = "/v1beta1/policies/{id}" - V1BETA1_PREFERENCES = "/v1beta1/preferences" - V1BETA1_PREFERENCES_TRAITS = "/v1beta1/preferences/traits" - V1BETA1_PROJECTS = "/v1beta1/projects" - V1BETA1_PROJECTS_ID = "/v1beta1/projects/{id}" - V1BETA1_PROJECTS_ID_ADMINS = "/v1beta1/projects/{id}/admins" - V1BETA1_PROJECTS_ID_DISABLE = "/v1beta1/projects/{id}/disable" - V1BETA1_PROJECTS_ID_ENABLE = "/v1beta1/projects/{id}/enable" - V1BETA1_PROJECTS_ID_PREFERENCES = "/v1beta1/projects/{id}/preferences" - V1BETA1_PROJECTS_ID_SERVICEUSERS = "/v1beta1/projects/{id}/serviceusers" - V1BETA1_PROJECTS_ID_USERS = "/v1beta1/projects/{id}/users" - V1BETA1_PROJECTS_PROJECT_ID_RESOURCES = "/v1beta1/projects/{projectId}/resources" - V1BETA1_PROJECTS_PROJECT_ID_RESOURCES_ID = "/v1beta1/projects/{projectId}/resources/{id}" - V1BETA1_RELATIONS = "/v1beta1/relations" - V1BETA1_RELATIONS_ID = "/v1beta1/relations/{id}" - V1BETA1_RELATIONS_RELATION_OBJECT_OBJECT_SUBJECT_SUBJECT = "/v1beta1/relations/{relation}/object/{object}/subject/{subject}" - V1BETA1_ROLES = "/v1beta1/roles" - V1BETA1_ROLES_ID = "/v1beta1/roles/{id}" - V1BETA1_SERVICEUSERS = "/v1beta1/serviceusers" - V1BETA1_SERVICEUSERS_ID = "/v1beta1/serviceusers/{id}" - V1BETA1_SERVICEUSERS_ID_KEYS = "/v1beta1/serviceusers/{id}/keys" - V1BETA1_SERVICEUSERS_ID_KEYS_KEY_ID = "/v1beta1/serviceusers/{id}/keys/{keyId}" - V1BETA1_SERVICEUSERS_ID_SECRETS = "/v1beta1/serviceusers/{id}/secrets" - V1BETA1_SERVICEUSERS_ID_SECRETS_SECRET_ID = "/v1beta1/serviceusers/{id}/secrets/{secretId}" - V1BETA1_USERS = "/v1beta1/users" - V1BETA1_USERS_ID = "/v1beta1/users/{id}" - V1BETA1_USERS_ID_DISABLE = "/v1beta1/users/{id}/disable" - V1BETA1_USERS_ID_ENABLE = "/v1beta1/users/{id}/enable" - V1BETA1_USERS_ID_GROUPS = "/v1beta1/users/{id}/groups" - V1BETA1_USERS_ID_INVITATIONS = "/v1beta1/users/{id}/invitations" - V1BETA1_USERS_ID_ORGANIZATIONS = "/v1beta1/users/{id}/organizations" - V1BETA1_USERS_ID_PREFERENCES = "/v1beta1/users/{id}/preferences" - V1BETA1_USERS_ID_PROJECTS = "/v1beta1/users/{id}/projects" - V1BETA1_USERS_SELF = "/v1beta1/users/self" - V1BETA1_USERS_SELF_GROUPS = "/v1beta1/users/self/groups" - V1BETA1_USERS_SELF_ORGANIZATIONS = "/v1beta1/users/self/organizations" - V1BETA1_USERS_SELF_PREFERENCES = "/v1beta1/users/self/preferences" - V1BETA1_USERS_SELF_PROJECTS = "/v1beta1/users/self/projects" diff --git a/frontier_api/paths/v1beta1_admin_groups/__init__.py b/frontier_api/paths/v1beta1_admin_groups/__init__.py deleted file mode 100644 index 88f8bf1..0000000 --- a/frontier_api/paths/v1beta1_admin_groups/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_admin_groups import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ADMIN_GROUPS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_admin_groups/get.py b/frontier_api/paths/v1beta1_admin_groups/get.py deleted file mode 100644 index f512031..0000000 --- a/frontier_api/paths/v1beta1_admin_groups/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_groups_response import V1beta1ListGroupsResponse - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_groups/get.pyi b/frontier_api/paths/v1beta1_admin_groups/get.pyi deleted file mode 100644 index 6404c10..0000000 --- a/frontier_api/paths/v1beta1_admin_groups/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_groups_response import V1beta1ListGroupsResponse - -# Query params -OrgIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_organizations/__init__.py b/frontier_api/paths/v1beta1_admin_organizations/__init__.py deleted file mode 100644 index 5935aee..0000000 --- a/frontier_api/paths/v1beta1_admin_organizations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_admin_organizations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ADMIN_ORGANIZATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_admin_organizations/get.py b/frontier_api/paths/v1beta1_admin_organizations/get.py deleted file mode 100644 index cf48022..0000000 --- a/frontier_api/paths/v1beta1_admin_organizations/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse - -from . import path - -# Query params -UserIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListAllOrganizationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_all_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_all_organizations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_all_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_all_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListAllOrganizations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_all_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_all_organizations( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_all_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_all_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_organizations/get.pyi b/frontier_api/paths/v1beta1_admin_organizations/get.pyi deleted file mode 100644 index b2435ac..0000000 --- a/frontier_api/paths/v1beta1_admin_organizations/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse - -# Query params -UserIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListAllOrganizationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_all_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_all_organizations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_all_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_all_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListAllOrganizations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_all_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_all_organizations( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_all_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_all_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_projects/__init__.py b/frontier_api/paths/v1beta1_admin_projects/__init__.py deleted file mode 100644 index 9d452e2..0000000 --- a/frontier_api/paths/v1beta1_admin_projects/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_admin_projects import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ADMIN_PROJECTS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_admin_projects/get.py b/frontier_api/paths/v1beta1_admin_projects/get.py deleted file mode 100644 index b33ffda..0000000 --- a/frontier_api/paths/v1beta1_admin_projects/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_projects_response import V1beta1ListProjectsResponse - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_projects_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListProjects(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_projects( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_projects_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_projects_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_projects/get.pyi b/frontier_api/paths/v1beta1_admin_projects/get.pyi deleted file mode 100644 index c03c8fd..0000000 --- a/frontier_api/paths/v1beta1_admin_projects/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_projects_response import V1beta1ListProjectsResponse - -# Query params -OrgIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_projects_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListProjects(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_projects( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_projects_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_projects_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_relations/__init__.py b/frontier_api/paths/v1beta1_admin_relations/__init__.py deleted file mode 100644 index f2c4c62..0000000 --- a/frontier_api/paths/v1beta1_admin_relations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_admin_relations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ADMIN_RELATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_admin_relations/get.py b/frontier_api/paths/v1beta1_admin_relations/get.py deleted file mode 100644 index b47bd15..0000000 --- a/frontier_api/paths/v1beta1_admin_relations/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_relations_response import V1beta1ListRelationsResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListRelationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_relations_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_relations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_relations_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_relations_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all relations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListRelations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_relations( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_relations( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_relations( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_relations( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_relations_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_relations_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_relations/get.pyi b/frontier_api/paths/v1beta1_admin_relations/get.pyi deleted file mode 100644 index 3e885f6..0000000 --- a/frontier_api/paths/v1beta1_admin_relations/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_relations_response import V1beta1ListRelationsResponse -from frontier_api.model.rpc_status import RpcStatus - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListRelationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_relations_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_relations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_relations_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_relations_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all relations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListRelations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_relations( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_relations( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_relations( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_relations( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_relations_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_relations_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_resources/__init__.py b/frontier_api/paths/v1beta1_admin_resources/__init__.py deleted file mode 100644 index 9d0d26c..0000000 --- a/frontier_api/paths/v1beta1_admin_resources/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_admin_resources import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ADMIN_RESOURCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_admin_resources/get.py b/frontier_api/paths/v1beta1_admin_resources/get.py deleted file mode 100644 index a554872..0000000 --- a/frontier_api/paths/v1beta1_admin_resources/get.py +++ /dev/null @@ -1,455 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_resources_response import V1beta1ListResourcesResponse - -from . import path - -# Query params -UserIdSchema = schemas.StrSchema -ProjectIdSchema = schemas.StrSchema -OrganizationIdSchema = schemas.StrSchema -NamespaceSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'organizationId': typing.Union[OrganizationIdSchema, str, ], - 'namespace': typing.Union[NamespaceSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_project_id = api_client.QueryParameter( - name="projectId", - style=api_client.ParameterStyle.FORM, - schema=ProjectIdSchema, - explode=True, -) -request_query_organization_id = api_client.QueryParameter( - name="organizationId", - style=api_client.ParameterStyle.FORM, - schema=OrganizationIdSchema, - explode=True, -) -request_query_namespace = api_client.QueryParameter( - name="namespace", - style=api_client.ParameterStyle.FORM, - schema=NamespaceSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListResourcesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_resources_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all resources - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - request_query_project_id, - request_query_organization_id, - request_query_namespace, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListResources(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_resources( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_resources_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_resources_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_resources/get.pyi b/frontier_api/paths/v1beta1_admin_resources/get.pyi deleted file mode 100644 index c36fc66..0000000 --- a/frontier_api/paths/v1beta1_admin_resources/get.pyi +++ /dev/null @@ -1,441 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_resources_response import V1beta1ListResourcesResponse - -# Query params -UserIdSchema = schemas.StrSchema -ProjectIdSchema = schemas.StrSchema -OrganizationIdSchema = schemas.StrSchema -NamespaceSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'organizationId': typing.Union[OrganizationIdSchema, str, ], - 'namespace': typing.Union[NamespaceSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_project_id = api_client.QueryParameter( - name="projectId", - style=api_client.ParameterStyle.FORM, - schema=ProjectIdSchema, - explode=True, -) -request_query_organization_id = api_client.QueryParameter( - name="organizationId", - style=api_client.ParameterStyle.FORM, - schema=OrganizationIdSchema, - explode=True, -) -request_query_namespace = api_client.QueryParameter( - name="namespace", - style=api_client.ParameterStyle.FORM, - schema=NamespaceSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListResourcesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_resources_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all resources - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - request_query_project_id, - request_query_organization_id, - request_query_namespace, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListResources(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_resources( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_resources_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_resources_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_users/__init__.py b/frontier_api/paths/v1beta1_admin_users/__init__.py deleted file mode 100644 index 47d92fa..0000000 --- a/frontier_api/paths/v1beta1_admin_users/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_admin_users import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ADMIN_USERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_admin_users/get.py b/frontier_api/paths/v1beta1_admin_users/get.py deleted file mode 100644 index bfdf314..0000000 --- a/frontier_api/paths/v1beta1_admin_users/get.py +++ /dev/null @@ -1,473 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -PageSizeSchema = schemas.Int32Schema -PageNumSchema = schemas.Int32Schema -KeywordSchema = schemas.StrSchema -OrgIdSchema = schemas.StrSchema -GroupIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, ], - 'pageNum': typing.Union[PageNumSchema, decimal.Decimal, int, ], - 'keyword': typing.Union[KeywordSchema, str, ], - 'orgId': typing.Union[OrgIdSchema, str, ], - 'groupId': typing.Union[GroupIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_page_num = api_client.QueryParameter( - name="pageNum", - style=api_client.ParameterStyle.FORM, - schema=PageNumSchema, - explode=True, -) -request_query_keyword = api_client.QueryParameter( - name="keyword", - style=api_client.ParameterStyle.FORM, - schema=KeywordSchema, - explode=True, -) -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_group_id = api_client.QueryParameter( - name="groupId", - style=api_client.ParameterStyle.FORM, - schema=GroupIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListAllUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_all_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_all_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_all_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_all_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_page_size, - request_query_page_num, - request_query_keyword, - request_query_org_id, - request_query_group_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListAllUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_all_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_all_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_all_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_all_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_admin_users/get.pyi b/frontier_api/paths/v1beta1_admin_users/get.pyi deleted file mode 100644 index 4a0a9b2..0000000 --- a/frontier_api/paths/v1beta1_admin_users/get.pyi +++ /dev/null @@ -1,459 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse -from frontier_api.model.rpc_status import RpcStatus - -# Query params -PageSizeSchema = schemas.Int32Schema -PageNumSchema = schemas.Int32Schema -KeywordSchema = schemas.StrSchema -OrgIdSchema = schemas.StrSchema -GroupIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, ], - 'pageNum': typing.Union[PageNumSchema, decimal.Decimal, int, ], - 'keyword': typing.Union[KeywordSchema, str, ], - 'orgId': typing.Union[OrgIdSchema, str, ], - 'groupId': typing.Union[GroupIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_page_num = api_client.QueryParameter( - name="pageNum", - style=api_client.ParameterStyle.FORM, - schema=PageNumSchema, - explode=True, -) -request_query_keyword = api_client.QueryParameter( - name="keyword", - style=api_client.ParameterStyle.FORM, - schema=KeywordSchema, - explode=True, -) -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_group_id = api_client.QueryParameter( - name="groupId", - style=api_client.ParameterStyle.FORM, - schema=GroupIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListAllUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_all_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_all_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_all_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_all_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_page_size, - request_query_page_num, - request_query_keyword, - request_query_org_id, - request_query_group_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListAllUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_all_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_all_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_all_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_all_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_all_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth/__init__.py b/frontier_api/paths/v1beta1_auth/__init__.py deleted file mode 100644 index e7ab936..0000000 --- a/frontier_api/paths/v1beta1_auth/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_auth import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_AUTH \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_auth/get.py b/frontier_api/paths/v1beta1_auth/get.py deleted file mode 100644 index 640e8fa..0000000 --- a/frontier_api/paths/v1beta1_auth/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListAuthStrategiesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_auth_strategies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_auth_strategies_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_auth_strategies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_auth_strategies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List authentication strategies - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListAuthStrategies(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_auth_strategies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_auth_strategies( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_auth_strategies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_auth_strategies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_auth_strategies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_auth_strategies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth/get.pyi b/frontier_api/paths/v1beta1_auth/get.pyi deleted file mode 100644 index 46e2122..0000000 --- a/frontier_api/paths/v1beta1_auth/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListAuthStrategiesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_auth_strategies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_auth_strategies_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_auth_strategies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_auth_strategies_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List authentication strategies - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListAuthStrategies(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_auth_strategies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_auth_strategies( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_auth_strategies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_auth_strategies( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_auth_strategies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_auth_strategies_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_callback/__init__.py b/frontier_api/paths/v1beta1_auth_callback/__init__.py deleted file mode 100644 index de3ebd3..0000000 --- a/frontier_api/paths/v1beta1_auth_callback/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_auth_callback import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_AUTH_CALLBACK \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_auth_callback/get.py b/frontier_api/paths/v1beta1_auth_callback/get.py deleted file mode 100644 index 64f8c9b..0000000 --- a/frontier_api/paths/v1beta1_auth_callback/get.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -StrategyNameSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -CodeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'strategyName': typing.Union[StrategyNameSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - 'code': typing.Union[CodeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_strategy_name = api_client.QueryParameter( - name="strategyName", - style=api_client.ParameterStyle.FORM, - schema=StrategyNameSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -request_query_code = api_client.QueryParameter( - name="code", - style=api_client.ParameterStyle.FORM, - schema=CodeSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_callback_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_callback_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_callback_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_callback_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Callback from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_strategy_name, - request_query_state, - request_query_code, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthCallback(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_callback( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_callback( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_callback( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_callback( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_callback/get.pyi b/frontier_api/paths/v1beta1_auth_callback/get.pyi deleted file mode 100644 index 6214bf7..0000000 --- a/frontier_api/paths/v1beta1_auth_callback/get.pyi +++ /dev/null @@ -1,431 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Query params -StrategyNameSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -CodeSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'strategyName': typing.Union[StrategyNameSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - 'code': typing.Union[CodeSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_strategy_name = api_client.QueryParameter( - name="strategyName", - style=api_client.ParameterStyle.FORM, - schema=StrategyNameSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -request_query_code = api_client.QueryParameter( - name="code", - style=api_client.ParameterStyle.FORM, - schema=CodeSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_callback_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_callback_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_callback_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_callback_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Callback from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_strategy_name, - request_query_state, - request_query_code, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthCallback(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_callback( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_callback( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_callback( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_callback( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_callback/post.py b/frontier_api/paths/v1beta1_auth_callback/post.py deleted file mode 100644 index 849e197..0000000 --- a/frontier_api/paths/v1beta1_auth_callback/post.py +++ /dev/null @@ -1,471 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1AuthCallbackRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Callback from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthCallback2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback2_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback2_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_callback/post.pyi b/frontier_api/paths/v1beta1_auth_callback/post.pyi deleted file mode 100644 index a574bf8..0000000 --- a/frontier_api/paths/v1beta1_auth_callback/post.pyi +++ /dev/null @@ -1,457 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest -from frontier_api.model.rpc_status import RpcStatus - -# body param -SchemaForRequestBodyApplicationJson = V1beta1AuthCallbackRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_callback2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Callback from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthCallback2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_callback2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback2_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_callback2_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_jwks/__init__.py b/frontier_api/paths/v1beta1_auth_jwks/__init__.py deleted file mode 100644 index 6f9207e..0000000 --- a/frontier_api/paths/v1beta1_auth_jwks/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_auth_jwks import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_AUTH_JWKS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_auth_jwks/get.py b/frontier_api/paths/v1beta1_auth_jwks/get.py deleted file mode 100644 index fee4f5f..0000000 --- a/frontier_api/paths/v1beta1_auth_jwks/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetJWKsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_jwks_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_jwks_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_jwks_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_jwks_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get well known JWKs - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetJwks(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_jwks( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_jwks( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_jwks( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_jwks( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_jwks/get.pyi b/frontier_api/paths/v1beta1_auth_jwks/get.pyi deleted file mode 100644 index 2455c04..0000000 --- a/frontier_api/paths/v1beta1_auth_jwks/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1GetJWKsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_jwks_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_jwks_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_jwks_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_jwks_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get well known JWKs - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetJwks(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_jwks( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_jwks( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_jwks( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_jwks( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_logout/__init__.py b/frontier_api/paths/v1beta1_auth_logout/__init__.py deleted file mode 100644 index d1731e0..0000000 --- a/frontier_api/paths/v1beta1_auth_logout/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_auth_logout import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_AUTH_LOGOUT \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_auth_logout/delete.py b/frontier_api/paths/v1beta1_auth_logout/delete.py deleted file mode 100644 index cec2b3b..0000000 --- a/frontier_api/paths/v1beta1_auth_logout/delete.py +++ /dev/null @@ -1,373 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_logout2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_logout2_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_logout2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_logout2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Logout from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthLogout2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_logout2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_logout2( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_logout2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_logout2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_logout/delete.pyi b/frontier_api/paths/v1beta1_auth_logout/delete.pyi deleted file mode 100644 index d0d7fa1..0000000 --- a/frontier_api/paths/v1beta1_auth_logout/delete.pyi +++ /dev/null @@ -1,359 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_logout2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_logout2_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_logout2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_logout2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Logout from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthLogout2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_logout2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_logout2( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_logout2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_logout2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_logout/get.py b/frontier_api/paths/v1beta1_auth_logout/get.py deleted file mode 100644 index cd771f4..0000000 --- a/frontier_api/paths/v1beta1_auth_logout/get.py +++ /dev/null @@ -1,373 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_logout_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_logout_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_logout_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_logout_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Logout from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthLogout(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_logout( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_logout( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_logout( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_logout( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_logout/get.pyi b/frontier_api/paths/v1beta1_auth_logout/get.pyi deleted file mode 100644 index 7624999..0000000 --- a/frontier_api/paths/v1beta1_auth_logout/get.pyi +++ /dev/null @@ -1,359 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_logout_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_logout_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_logout_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_logout_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Logout from a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthLogout(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_logout( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_logout( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_logout( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_logout( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_logout_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_register_strategy_name/__init__.py b/frontier_api/paths/v1beta1_auth_register_strategy_name/__init__.py deleted file mode 100644 index 113924a..0000000 --- a/frontier_api/paths/v1beta1_auth_register_strategy_name/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_auth_register_strategy_name import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_AUTH_REGISTER_STRATEGY_NAME \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_auth_register_strategy_name/get.py b/frontier_api/paths/v1beta1_auth_register_strategy_name/get.py deleted file mode 100644 index b72afbf..0000000 --- a/frontier_api/paths/v1beta1_auth_register_strategy_name/get.py +++ /dev/null @@ -1,509 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse - -from . import path - -# Query params -RedirectOnstartSchema = schemas.BoolSchema -ReturnToSchema = schemas.StrSchema -EmailSchema = schemas.StrSchema -CallbackUrlSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'redirectOnstart': typing.Union[RedirectOnstartSchema, bool, ], - 'returnTo': typing.Union[ReturnToSchema, str, ], - 'email': typing.Union[EmailSchema, str, ], - 'callbackUrl': typing.Union[CallbackUrlSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_redirect_onstart = api_client.QueryParameter( - name="redirectOnstart", - style=api_client.ParameterStyle.FORM, - schema=RedirectOnstartSchema, - explode=True, -) -request_query_return_to = api_client.QueryParameter( - name="returnTo", - style=api_client.ParameterStyle.FORM, - schema=ReturnToSchema, - explode=True, -) -request_query_email = api_client.QueryParameter( - name="email", - style=api_client.ParameterStyle.FORM, - schema=EmailSchema, - explode=True, -) -request_query_callback_url = api_client.QueryParameter( - name="callbackUrl", - style=api_client.ParameterStyle.FORM, - schema=CallbackUrlSchema, - explode=True, -) -# Path params -StrategyNameSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'strategyName': typing.Union[StrategyNameSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_strategy_name = api_client.PathParameter( - name="strategyName", - style=api_client.ParameterStyle.SIMPLE, - schema=StrategyNameSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1AuthenticateResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_authenticate_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_authenticate_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_authenticate_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_authenticate_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Authenticate with a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_strategy_name, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_redirect_onstart, - request_query_return_to, - request_query_email, - request_query_callback_url, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthenticate(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_authenticate( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_authenticate( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_authenticate( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_authenticate( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_register_strategy_name/get.pyi b/frontier_api/paths/v1beta1_auth_register_strategy_name/get.pyi deleted file mode 100644 index 2b63b62..0000000 --- a/frontier_api/paths/v1beta1_auth_register_strategy_name/get.pyi +++ /dev/null @@ -1,495 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse - -# Query params -RedirectOnstartSchema = schemas.BoolSchema -ReturnToSchema = schemas.StrSchema -EmailSchema = schemas.StrSchema -CallbackUrlSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'redirectOnstart': typing.Union[RedirectOnstartSchema, bool, ], - 'returnTo': typing.Union[ReturnToSchema, str, ], - 'email': typing.Union[EmailSchema, str, ], - 'callbackUrl': typing.Union[CallbackUrlSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_redirect_onstart = api_client.QueryParameter( - name="redirectOnstart", - style=api_client.ParameterStyle.FORM, - schema=RedirectOnstartSchema, - explode=True, -) -request_query_return_to = api_client.QueryParameter( - name="returnTo", - style=api_client.ParameterStyle.FORM, - schema=ReturnToSchema, - explode=True, -) -request_query_email = api_client.QueryParameter( - name="email", - style=api_client.ParameterStyle.FORM, - schema=EmailSchema, - explode=True, -) -request_query_callback_url = api_client.QueryParameter( - name="callbackUrl", - style=api_client.ParameterStyle.FORM, - schema=CallbackUrlSchema, - explode=True, -) -# Path params -StrategyNameSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'strategyName': typing.Union[StrategyNameSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_strategy_name = api_client.PathParameter( - name="strategyName", - style=api_client.ParameterStyle.SIMPLE, - schema=StrategyNameSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1AuthenticateResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_authenticate_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_authenticate_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_authenticate_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_authenticate_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Authenticate with a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_strategy_name, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_redirect_onstart, - request_query_return_to, - request_query_email, - request_query_callback_url, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthenticate(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_authenticate( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_authenticate( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_authenticate( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_authenticate( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_register_strategy_name/post.py b/frontier_api/paths/v1beta1_auth_register_strategy_name/post.py deleted file mode 100644 index 454afa2..0000000 --- a/frontier_api/paths/v1beta1_auth_register_strategy_name/post.py +++ /dev/null @@ -1,607 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse - -from . import path - -# Path params -StrategyNameSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'strategyName': typing.Union[StrategyNameSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_strategy_name = api_client.PathParameter( - name="strategyName", - style=api_client.ParameterStyle.SIMPLE, - schema=StrategyNameSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - redirectOnstart = schemas.BoolSchema - returnTo = schemas.StrSchema - email = schemas.StrSchema - callbackUrl = schemas.StrSchema - __annotations__ = { - "redirectOnstart": redirectOnstart, - "returnTo": returnTo, - "email": email, - "callbackUrl": callbackUrl, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["redirectOnstart"]) -> MetaOapg.properties.redirectOnstart: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["returnTo"]) -> MetaOapg.properties.returnTo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callbackUrl"]) -> MetaOapg.properties.callbackUrl: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["redirectOnstart", "returnTo", "email", "callbackUrl", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["redirectOnstart"]) -> typing.Union[MetaOapg.properties.redirectOnstart, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["returnTo"]) -> typing.Union[MetaOapg.properties.returnTo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callbackUrl"]) -> typing.Union[MetaOapg.properties.callbackUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["redirectOnstart", "returnTo", "email", "callbackUrl", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - redirectOnstart: typing.Union[MetaOapg.properties.redirectOnstart, bool, schemas.Unset] = schemas.unset, - returnTo: typing.Union[MetaOapg.properties.returnTo, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - callbackUrl: typing.Union[MetaOapg.properties.callbackUrl, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - redirectOnstart=redirectOnstart, - returnTo=returnTo, - email=email, - callbackUrl=callbackUrl, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1AuthenticateResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Authenticate with a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_strategy_name, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthenticate2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate2_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate2_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_register_strategy_name/post.pyi b/frontier_api/paths/v1beta1_auth_register_strategy_name/post.pyi deleted file mode 100644 index 83e7131..0000000 --- a/frontier_api/paths/v1beta1_auth_register_strategy_name/post.pyi +++ /dev/null @@ -1,593 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse - -# Path params -StrategyNameSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'strategyName': typing.Union[StrategyNameSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_strategy_name = api_client.PathParameter( - name="strategyName", - style=api_client.ParameterStyle.SIMPLE, - schema=StrategyNameSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - redirectOnstart = schemas.BoolSchema - returnTo = schemas.StrSchema - email = schemas.StrSchema - callbackUrl = schemas.StrSchema - __annotations__ = { - "redirectOnstart": redirectOnstart, - "returnTo": returnTo, - "email": email, - "callbackUrl": callbackUrl, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["redirectOnstart"]) -> MetaOapg.properties.redirectOnstart: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["returnTo"]) -> MetaOapg.properties.returnTo: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["callbackUrl"]) -> MetaOapg.properties.callbackUrl: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["redirectOnstart", "returnTo", "email", "callbackUrl", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["redirectOnstart"]) -> typing.Union[MetaOapg.properties.redirectOnstart, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["returnTo"]) -> typing.Union[MetaOapg.properties.returnTo, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["callbackUrl"]) -> typing.Union[MetaOapg.properties.callbackUrl, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["redirectOnstart", "returnTo", "email", "callbackUrl", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - redirectOnstart: typing.Union[MetaOapg.properties.redirectOnstart, bool, schemas.Unset] = schemas.unset, - returnTo: typing.Union[MetaOapg.properties.returnTo, str, schemas.Unset] = schemas.unset, - email: typing.Union[MetaOapg.properties.email, str, schemas.Unset] = schemas.unset, - callbackUrl: typing.Union[MetaOapg.properties.callbackUrl, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - redirectOnstart=redirectOnstart, - returnTo=returnTo, - email=email, - callbackUrl=callbackUrl, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1AuthenticateResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_authenticate2_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Authenticate with a strategy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_strategy_name, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthenticate2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_authenticate2( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate2_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_authenticate2_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_token/__init__.py b/frontier_api/paths/v1beta1_auth_token/__init__.py deleted file mode 100644 index 7c31d9c..0000000 --- a/frontier_api/paths/v1beta1_auth_token/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_auth_token import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_AUTH_TOKEN \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_auth_token/post.py b/frontier_api/paths/v1beta1_auth_token/post.py deleted file mode 100644 index e09ccd5..0000000 --- a/frontier_api/paths/v1beta1_auth_token/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_auth_token_response import V1beta1AuthTokenResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_auth_token_request import V1beta1AuthTokenRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1AuthTokenRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1AuthTokenResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Generate access token by given credentials - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthToken(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_token_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_token_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_auth_token/post.pyi b/frontier_api/paths/v1beta1_auth_token/post.pyi deleted file mode 100644 index 3b039b6..0000000 --- a/frontier_api/paths/v1beta1_auth_token/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_auth_token_response import V1beta1AuthTokenResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_auth_token_request import V1beta1AuthTokenRequest - -# body param -SchemaForRequestBodyApplicationJson = V1beta1AuthTokenRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1AuthTokenResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_auth_token_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Generate access token by given credentials - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAuthToken(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_auth_token( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_token_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_auth_token_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_batchcheck/__init__.py b/frontier_api/paths/v1beta1_batchcheck/__init__.py deleted file mode 100644 index 6fb80c9..0000000 --- a/frontier_api/paths/v1beta1_batchcheck/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_batchcheck import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_BATCHCHECK \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_batchcheck/post.py b/frontier_api/paths/v1beta1_batchcheck/post.py deleted file mode 100644 index 286e6e6..0000000 --- a/frontier_api/paths/v1beta1_batchcheck/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1BatchCheckPermissionRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1BatchCheckPermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Batch check - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceBatchCheckPermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_batch_check_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_batch_check_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_batchcheck/post.pyi b/frontier_api/paths/v1beta1_batchcheck/post.pyi deleted file mode 100644 index a51ef1c..0000000 --- a/frontier_api/paths/v1beta1_batchcheck/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse - -# body param -SchemaForRequestBodyApplicationJson = V1beta1BatchCheckPermissionRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1BatchCheckPermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_batch_check_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Batch check - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceBatchCheckPermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_batch_check_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_batch_check_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_batch_check_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_check/__init__.py b/frontier_api/paths/v1beta1_check/__init__.py deleted file mode 100644 index 98d2d74..0000000 --- a/frontier_api/paths/v1beta1_check/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_check import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_CHECK \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_check/post.py b/frontier_api/paths/v1beta1_check/post.py deleted file mode 100644 index f53ff20..0000000 --- a/frontier_api/paths/v1beta1_check/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CheckResourcePermissionRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CheckResourcePermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Check - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCheckResourcePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_check_resource_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_check_resource_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_check/post.pyi b/frontier_api/paths/v1beta1_check/post.pyi deleted file mode 100644 index c353656..0000000 --- a/frontier_api/paths/v1beta1_check/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CheckResourcePermissionRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CheckResourcePermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_check_resource_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Check - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCheckResourcePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_check_resource_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_check_resource_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_check_resource_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_groups_id_preferences/__init__.py b/frontier_api/paths/v1beta1_groups_id_preferences/__init__.py deleted file mode 100644 index c6d2c91..0000000 --- a/frontier_api/paths/v1beta1_groups_id_preferences/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_groups_id_preferences import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_GROUPS_ID_PREFERENCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_groups_id_preferences/get.py b/frontier_api/paths/v1beta1_groups_id_preferences/get.py deleted file mode 100644 index cbcfb4a..0000000 --- a/frontier_api/paths/v1beta1_groups_id_preferences/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListGroupPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_group_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_group_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_group_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_group_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List group preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListGroupPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_group_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_group_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_group_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_group_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_groups_id_preferences/get.pyi b/frontier_api/paths/v1beta1_groups_id_preferences/get.pyi deleted file mode 100644 index b971151..0000000 --- a/frontier_api/paths/v1beta1_groups_id_preferences/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListGroupPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_group_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_group_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_group_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_group_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List group preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListGroupPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_group_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_group_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_group_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_group_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_groups_id_preferences/post.py b/frontier_api/paths/v1beta1_groups_id_preferences/post.py deleted file mode 100644 index f61afd6..0000000 --- a/frontier_api/paths/v1beta1_groups_id_preferences/post.py +++ /dev/null @@ -1,603 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateGroupPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create group preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateGroupPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_groups_id_preferences/post.pyi b/frontier_api/paths/v1beta1_groups_id_preferences/post.pyi deleted file mode 100644 index 27b9fe6..0000000 --- a/frontier_api/paths/v1beta1_groups_id_preferences/post.pyi +++ /dev/null @@ -1,589 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateGroupPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_group_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create group preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateGroupPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_group_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas/__init__.py b/frontier_api/paths/v1beta1_meta_schemas/__init__.py deleted file mode 100644 index 2491021..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_meta_schemas import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_META_SCHEMAS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_meta_schemas/get.py b/frontier_api/paths/v1beta1_meta_schemas/get.py deleted file mode 100644 index ce1ad12..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListMetaSchemasResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_meta_schemas_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_meta_schemas_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_meta_schemas_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_meta_schemas_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List metaschemas - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListMetaSchemas(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_meta_schemas( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_meta_schemas( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_meta_schemas( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_meta_schemas( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_meta_schemas_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_meta_schemas_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas/get.pyi b/frontier_api/paths/v1beta1_meta_schemas/get.pyi deleted file mode 100644 index f00ac4d..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListMetaSchemasResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_meta_schemas_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_meta_schemas_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_meta_schemas_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_meta_schemas_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List metaschemas - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListMetaSchemas(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_meta_schemas( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_meta_schemas( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_meta_schemas( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_meta_schemas( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_meta_schemas_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_meta_schemas_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas/post.py b/frontier_api/paths/v1beta1_meta_schemas/post.py deleted file mode 100644 index 0dac7dd..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1MetaSchemaRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateMetaSchemaResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_meta_schema_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_meta_schema_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas/post.pyi b/frontier_api/paths/v1beta1_meta_schemas/post.pyi deleted file mode 100644 index 6e36654..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1MetaSchemaRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateMetaSchemaResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_meta_schema_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_meta_schema_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/__init__.py b/frontier_api/paths/v1beta1_meta_schemas_id/__init__.py deleted file mode 100644 index 52f3b3b..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_meta_schemas_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_META_SCHEMAS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/delete.py b/frontier_api/paths/v1beta1_meta_schemas_id/delete.py deleted file mode 100644 index f32bf07..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_meta_schema_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_meta_schema( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/delete.pyi b/frontier_api/paths/v1beta1_meta_schemas_id/delete.pyi deleted file mode 100644 index 57c92d6..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_meta_schema_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_meta_schema( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/get.py b/frontier_api/paths/v1beta1_meta_schemas_id/get.py deleted file mode 100644 index 8c1bb23..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetMetaSchemaResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_meta_schema_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_meta_schema( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/get.pyi b/frontier_api/paths/v1beta1_meta_schemas_id/get.pyi deleted file mode 100644 index 5c1305a..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetMetaSchemaResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_meta_schema_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_meta_schema_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_meta_schema( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_meta_schema( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_meta_schema_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/put.py b/frontier_api/paths/v1beta1_meta_schemas_id/put.py deleted file mode 100644 index cb4cd0e..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1MetaSchemaRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateMetaSchemaResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_meta_schema_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_meta_schema_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_meta_schemas_id/put.pyi b/frontier_api/paths/v1beta1_meta_schemas_id/put.pyi deleted file mode 100644 index 0e827e8..0000000 --- a/frontier_api/paths/v1beta1_meta_schemas_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1MetaSchemaRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateMetaSchemaResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_meta_schema_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update metaschema - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateMetaSchema(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_meta_schema( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_meta_schema_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_meta_schema_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_namespaces/__init__.py b/frontier_api/paths/v1beta1_namespaces/__init__.py deleted file mode 100644 index 0c8c2a2..0000000 --- a/frontier_api/paths/v1beta1_namespaces/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_namespaces import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_NAMESPACES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_namespaces/get.py b/frontier_api/paths/v1beta1_namespaces/get.py deleted file mode 100644 index 28ebb1d..0000000 --- a/frontier_api/paths/v1beta1_namespaces/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListNamespacesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_namespaces_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_namespaces_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_namespaces_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_namespaces_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get all namespaces - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListNamespaces(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_namespaces( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_namespaces( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_namespaces( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_namespaces( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_namespaces_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_namespaces_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_namespaces/get.pyi b/frontier_api/paths/v1beta1_namespaces/get.pyi deleted file mode 100644 index 9057c1d..0000000 --- a/frontier_api/paths/v1beta1_namespaces/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse -from frontier_api.model.rpc_status import RpcStatus - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListNamespacesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_namespaces_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_namespaces_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_namespaces_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_namespaces_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get all namespaces - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListNamespaces(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_namespaces( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_namespaces( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_namespaces( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_namespaces( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_namespaces_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_namespaces_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_namespaces_id/__init__.py b/frontier_api/paths/v1beta1_namespaces_id/__init__.py deleted file mode 100644 index 8121af8..0000000 --- a/frontier_api/paths/v1beta1_namespaces_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_namespaces_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_NAMESPACES_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_namespaces_id/get.py b/frontier_api/paths/v1beta1_namespaces_id/get.py deleted file mode 100644 index 53fd187..0000000 --- a/frontier_api/paths/v1beta1_namespaces_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetNamespaceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_namespace_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_namespace_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_namespace_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_namespace_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get namespace - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetNamespace(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_namespace( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_namespace( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_namespace( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_namespace( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_namespace_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_namespace_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_namespaces_id/get.pyi b/frontier_api/paths/v1beta1_namespaces_id/get.pyi deleted file mode 100644 index 7d658ba..0000000 --- a/frontier_api/paths/v1beta1_namespaces_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetNamespaceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_namespace_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_namespace_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_namespace_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_namespace_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get namespace - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetNamespace(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_namespace( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_namespace( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_namespace( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_namespace( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_namespace_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_namespace_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/__init__.py b/frontier_api/paths/v1beta1_organization_org_id_auditlogs/__init__.py deleted file mode 100644 index e4b0b96..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organization_org_id_auditlogs import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.py b/frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.py deleted file mode 100644 index 215af61..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.py +++ /dev/null @@ -1,509 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse - -from . import path - -# Query params -SourceSchema = schemas.StrSchema -ActionSchema = schemas.StrSchema -StartTimeSchema = schemas.DateTimeSchema -EndTimeSchema = schemas.DateTimeSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'source': typing.Union[SourceSchema, str, ], - 'action': typing.Union[ActionSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, datetime, ], - 'endTime': typing.Union[EndTimeSchema, str, datetime, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_source = api_client.QueryParameter( - name="source", - style=api_client.ParameterStyle.FORM, - schema=SourceSchema, - explode=True, -) -request_query_action = api_client.QueryParameter( - name="action", - style=api_client.ParameterStyle.FORM, - schema=ActionSchema, - explode=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - style=api_client.ParameterStyle.FORM, - schema=StartTimeSchema, - explode=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - style=api_client.ParameterStyle.FORM, - schema=EndTimeSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationAuditLogsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_audit_logs_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_audit_logs_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_audit_logs_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_audit_logs_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List audit logs - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_source, - request_query_action, - request_query_start_time, - request_query_end_time, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationAuditLogs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_audit_logs( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_audit_logs( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_audit_logs( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_audit_logs( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_audit_logs_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_audit_logs_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.pyi b/frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.pyi deleted file mode 100644 index 86fb11a..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/get.pyi +++ /dev/null @@ -1,495 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse - -# Query params -SourceSchema = schemas.StrSchema -ActionSchema = schemas.StrSchema -StartTimeSchema = schemas.DateTimeSchema -EndTimeSchema = schemas.DateTimeSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'source': typing.Union[SourceSchema, str, ], - 'action': typing.Union[ActionSchema, str, ], - 'startTime': typing.Union[StartTimeSchema, str, datetime, ], - 'endTime': typing.Union[EndTimeSchema, str, datetime, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_source = api_client.QueryParameter( - name="source", - style=api_client.ParameterStyle.FORM, - schema=SourceSchema, - explode=True, -) -request_query_action = api_client.QueryParameter( - name="action", - style=api_client.ParameterStyle.FORM, - schema=ActionSchema, - explode=True, -) -request_query_start_time = api_client.QueryParameter( - name="startTime", - style=api_client.ParameterStyle.FORM, - schema=StartTimeSchema, - explode=True, -) -request_query_end_time = api_client.QueryParameter( - name="endTime", - style=api_client.ParameterStyle.FORM, - schema=EndTimeSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationAuditLogsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_audit_logs_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_audit_logs_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_audit_logs_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_audit_logs_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List audit logs - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_source, - request_query_action, - request_query_start_time, - request_query_end_time, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationAuditLogs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_audit_logs( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_audit_logs( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_audit_logs( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_audit_logs( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_audit_logs_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_audit_logs_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.py b/frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.py deleted file mode 100644 index 7a3dc4e..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.py +++ /dev/null @@ -1,602 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class logs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1AuditLog']: - return V1beta1AuditLog - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1AuditLog'], typing.List['V1beta1AuditLog']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'logs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1AuditLog': - return super().__getitem__(i) - __annotations__ = { - "logs": logs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logs"]) -> MetaOapg.properties.logs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logs"]) -> typing.Union[MetaOapg.properties.logs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - logs: typing.Union[MetaOapg.properties.logs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - logs=logs, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create audit log - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationAuditLogs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_audit_logs_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_audit_logs_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.pyi b/frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.pyi deleted file mode 100644 index 2adfdb5..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs/post.pyi +++ /dev/null @@ -1,588 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class logs( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1AuditLog']: - return V1beta1AuditLog - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1AuditLog'], typing.List['V1beta1AuditLog']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'logs': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1AuditLog': - return super().__getitem__(i) - __annotations__ = { - "logs": logs, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["logs"]) -> MetaOapg.properties.logs: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["logs"]) -> typing.Union[MetaOapg.properties.logs, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["logs", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - logs: typing.Union[MetaOapg.properties.logs, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - logs=logs, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_audit_logs_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create audit log - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationAuditLogs(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_audit_logs( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_audit_logs_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_audit_logs_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/__init__.py b/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/__init__.py deleted file mode 100644 index 955afe3..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organization_org_id_auditlogs_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATION_ORG_ID_AUDITLOGS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.py b/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.py deleted file mode 100644 index f770c1c..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationAuditLogResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_audit_log_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_audit_log_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_audit_log_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_audit_log_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get audit log - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationAuditLog(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_audit_log( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_audit_log( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_audit_log( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_audit_log( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_audit_log_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_audit_log_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.pyi b/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.pyi deleted file mode 100644 index 19bd643..0000000 --- a/frontier_api/paths/v1beta1_organization_org_id_auditlogs_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationAuditLogResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_audit_log_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_audit_log_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_audit_log_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_audit_log_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get audit log - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationAuditLog(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_audit_log( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_audit_log( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_audit_log( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_audit_log( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_audit_log_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_audit_log_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations/__init__.py b/frontier_api/paths/v1beta1_organizations/__init__.py deleted file mode 100644 index a8fd3b9..0000000 --- a/frontier_api/paths/v1beta1_organizations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations/get.py b/frontier_api/paths/v1beta1_organizations/get.py deleted file mode 100644 index dbffb83..0000000 --- a/frontier_api/paths/v1beta1_organizations/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -UserIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organizations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organizations( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations/get.pyi b/frontier_api/paths/v1beta1_organizations/get.pyi deleted file mode 100644 index cc8129c..0000000 --- a/frontier_api/paths/v1beta1_organizations/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse -from frontier_api.model.rpc_status import RpcStatus - -# Query params -UserIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organizations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organizations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organizations( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organizations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations/post.py b/frontier_api/paths/v1beta1_organizations/post.py deleted file mode 100644 index 5195f44..0000000 --- a/frontier_api/paths/v1beta1_organizations/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1OrganizationRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations/post.pyi b/frontier_api/paths/v1beta1_organizations/post.pyi deleted file mode 100644 index 6461b57..0000000 --- a/frontier_api/paths/v1beta1_organizations/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1OrganizationRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id/__init__.py b/frontier_api/paths/v1beta1_organizations_id/__init__.py deleted file mode 100644 index 2660b4d..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id/delete.py b/frontier_api/paths/v1beta1_organizations_id/delete.py deleted file mode 100644 index 6d2c2e6..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_id/delete.pyi deleted file mode 100644 index 939451c..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id/get.py b/frontier_api/paths/v1beta1_organizations_id/get.py deleted file mode 100644 index aca18c8..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_response import V1beta1GetOrganizationResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id/get.pyi b/frontier_api/paths/v1beta1_organizations_id/get.pyi deleted file mode 100644 index 955f2a7..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_response import V1beta1GetOrganizationResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id/put.py b/frontier_api/paths/v1beta1_organizations_id/put.py deleted file mode 100644 index e3c2082..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody -from frontier_api.model.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1OrganizationRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateOrganizationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id/put.pyi b/frontier_api/paths/v1beta1_organizations_id/put.pyi deleted file mode 100644 index e13f1d1..0000000 --- a/frontier_api/paths/v1beta1_organizations_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody -from frontier_api.model.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1OrganizationRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateOrganizationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_admins/__init__.py b/frontier_api/paths/v1beta1_organizations_id_admins/__init__.py deleted file mode 100644 index c468048..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_admins/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_admins import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_ADMINS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_admins/get.py b/frontier_api/paths/v1beta1_organizations_id_admins/get.py deleted file mode 100644 index 455dd64..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_admins/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationAdminsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_admins_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization admins - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationAdmins(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_admins( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_admins/get.pyi b/frontier_api/paths/v1beta1_organizations_id_admins/get.pyi deleted file mode 100644 index dcead9b..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_admins/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationAdminsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_admins_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization admins - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationAdmins(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_admins( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_disable/__init__.py b/frontier_api/paths/v1beta1_organizations_id_disable/__init__.py deleted file mode 100644 index 406a508..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_disable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_disable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_DISABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_disable/post.py b/frontier_api/paths/v1beta1_organizations_id_disable/post.py deleted file mode 100644 index 01b5359..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_disable/post.py +++ /dev/null @@ -1,527 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_disable/post.pyi b/frontier_api/paths/v1beta1_organizations_id_disable/post.pyi deleted file mode 100644 index 2b44d7f..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_disable/post.pyi +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_enable/__init__.py b/frontier_api/paths/v1beta1_organizations_id_enable/__init__.py deleted file mode 100644 index 474c6dc..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_enable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_enable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_ENABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_enable/post.py b/frontier_api/paths/v1beta1_organizations_id_enable/post.py deleted file mode 100644 index 35a376c..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_enable/post.py +++ /dev/null @@ -1,527 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_enable/post.pyi b/frontier_api/paths/v1beta1_organizations_id_enable/post.pyi deleted file mode 100644 index 4ad792f..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_enable/post.pyi +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_organization_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_organization( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_organization_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_preferences/__init__.py b/frontier_api/paths/v1beta1_organizations_id_preferences/__init__.py deleted file mode 100644 index c33cbfd..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_preferences/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_preferences import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_PREFERENCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_preferences/get.py b/frontier_api/paths/v1beta1_organizations_id_preferences/get.py deleted file mode 100644 index 20ff22f..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_preferences/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_preferences/get.pyi b/frontier_api/paths/v1beta1_organizations_id_preferences/get.pyi deleted file mode 100644 index db36b33..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_preferences/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_preferences/post.py b/frontier_api/paths/v1beta1_organizations_id_preferences/post.py deleted file mode 100644 index a877f4b..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_preferences/post.py +++ /dev/null @@ -1,603 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create organization preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_preferences/post.pyi b/frontier_api/paths/v1beta1_organizations_id_preferences/post.pyi deleted file mode 100644 index 2e128f3..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_preferences/post.pyi +++ /dev/null @@ -1,589 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create organization preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_projects/__init__.py b/frontier_api/paths/v1beta1_organizations_id_projects/__init__.py deleted file mode 100644 index ea9eaf6..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_projects/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_projects import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_PROJECTS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_projects/get.py b/frontier_api/paths/v1beta1_organizations_id_projects/get.py deleted file mode 100644 index ed6e685..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_projects/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationProjectsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_projects_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get organization projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationProjects(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_projects( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_projects_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_projects_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_projects/get.pyi b/frontier_api/paths/v1beta1_organizations_id_projects/get.pyi deleted file mode 100644 index d1226b1..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_projects/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse -from frontier_api.model.rpc_status import RpcStatus - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationProjectsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_projects_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_projects_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get organization projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationProjects(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_projects( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_projects( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_projects_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_projects_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_serviceusers/__init__.py b/frontier_api/paths/v1beta1_organizations_id_serviceusers/__init__.py deleted file mode 100644 index 6ff0704..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_serviceusers/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_serviceusers import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_SERVICEUSERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_serviceusers/get.py b/frontier_api/paths/v1beta1_organizations_id_serviceusers/get.py deleted file mode 100644 index d09b25d..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_serviceusers/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationServiceUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_service_users_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_service_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_service_users_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_service_users_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization service users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationServiceUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_service_users( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_service_users( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_service_users( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_service_users( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_service_users_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_service_users_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_serviceusers/get.pyi b/frontier_api/paths/v1beta1_organizations_id_serviceusers/get.pyi deleted file mode 100644 index c908fae..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_serviceusers/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationServiceUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_service_users_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_service_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_service_users_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_service_users_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization service users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationServiceUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_service_users( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_service_users( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_service_users( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_service_users( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_service_users_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_service_users_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_users/__init__.py b/frontier_api/paths/v1beta1_organizations_id_users/__init__.py deleted file mode 100644 index d6727d5..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_users import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_USERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_users/get.py b/frontier_api/paths/v1beta1_organizations_id_users/get.py deleted file mode 100644 index 6b3dde7..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse - -from . import path - -# Query params -PermissionFilterSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'permissionFilter': typing.Union[PermissionFilterSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_permission_filter = api_client.QueryParameter( - name="permissionFilter", - style=api_client.ParameterStyle.FORM, - schema=PermissionFilterSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_permission_filter, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_users/get.pyi b/frontier_api/paths/v1beta1_organizations_id_users/get.pyi deleted file mode 100644 index 38569e1..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse - -# Query params -PermissionFilterSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'permissionFilter': typing.Union[PermissionFilterSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_permission_filter = api_client.QueryParameter( - name="permissionFilter", - style=api_client.ParameterStyle.FORM, - schema=PermissionFilterSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_permission_filter, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_users/post.py b/frontier_api/paths/v1beta1_organizations_id_users/post.py deleted file mode 100644 index df98f6f..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users/post.py +++ /dev/null @@ -1,598 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class userIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'userIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "userIds": userIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userIds"]) -> typing.Union[MetaOapg.properties.userIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userIds: typing.Union[MetaOapg.properties.userIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - userIds=userIds, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Add organization user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAddOrganizationUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_organization_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_organization_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_users/post.pyi b/frontier_api/paths/v1beta1_organizations_id_users/post.pyi deleted file mode 100644 index 9414eb7..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users/post.pyi +++ /dev/null @@ -1,584 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class userIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'userIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "userIds": userIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userIds"]) -> typing.Union[MetaOapg.properties.userIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userIds: typing.Union[MetaOapg.properties.userIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - userIds=userIds, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_add_organization_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Add organization user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAddOrganizationUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_add_organization_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_organization_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_organization_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_users_user_id/__init__.py b/frontier_api/paths/v1beta1_organizations_id_users_user_id/__init__.py deleted file mode 100644 index 14af089..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users_user_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_id_users_user_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ID_USERS_USER_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.py b/frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.py deleted file mode 100644 index 6617e36..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -UserIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'userId': typing.Union[UserIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_user_id = api_client.PathParameter( - name="userId", - style=api_client.ParameterStyle.SIMPLE, - schema=UserIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_remove_organization_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_remove_organization_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_remove_organization_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_remove_organization_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Remove organization user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_user_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceRemoveOrganizationUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_remove_organization_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_remove_organization_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_remove_organization_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_remove_organization_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_organization_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_organization_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.pyi deleted file mode 100644 index c916de4..0000000 --- a/frontier_api/paths/v1beta1_organizations_id_users_user_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -UserIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'userId': typing.Union[UserIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_user_id = api_client.PathParameter( - name="userId", - style=api_client.ParameterStyle.SIMPLE, - schema=UserIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_remove_organization_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_remove_organization_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_remove_organization_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_remove_organization_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Remove organization user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_user_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceRemoveOrganizationUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_remove_organization_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_remove_organization_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_remove_organization_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_remove_organization_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_organization_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_organization_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_domains/__init__.py deleted file mode 100644 index 8cf6edf..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_domains import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains/get.py b/frontier_api/paths/v1beta1_organizations_org_id_domains/get.py deleted file mode 100644 index e93321d..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse - -from . import path - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationDomainsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_domains_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_domains_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_domains_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_domains_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List org domains - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationDomains(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_domains( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_domains( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_domains( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_domains( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_domains_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_domains_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_domains/get.pyi deleted file mode 100644 index 4854aed..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationDomainsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_domains_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_domains_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_domains_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_domains_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List org domains - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationDomains(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_domains( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_domains( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_domains( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_domains( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_domains_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_domains_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains/post.py b/frontier_api/paths/v1beta1_organizations_org_id_domains/post.py deleted file mode 100644 index 44c00b2..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains/post.py +++ /dev/null @@ -1,582 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - required = { - "domain", - } - - class properties: - domain = schemas.StrSchema - __annotations__ = { - "domain": domain, - } - - domain: MetaOapg.properties.domain - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domain"]) -> MetaOapg.properties.domain: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domain"]) -> MetaOapg.properties.domain: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domain: typing.Union[MetaOapg.properties.domain, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - domain=domain, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationDomainResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_domains/post.pyi deleted file mode 100644 index d038133..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains/post.pyi +++ /dev/null @@ -1,568 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - required = { - "domain", - } - - class properties: - domain = schemas.StrSchema - __annotations__ = { - "domain": domain, - } - - domain: MetaOapg.properties.domain - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["domain"]) -> MetaOapg.properties.domain: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["domain"]) -> MetaOapg.properties.domain: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["domain", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - domain: typing.Union[MetaOapg.properties.domain, str, ], - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - domain=domain, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationDomainResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_domains_id/__init__.py deleted file mode 100644 index 1cf1147..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_domains_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.py b/frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.py deleted file mode 100644 index df4c2a2..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_domain_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization_domain( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.pyi deleted file mode 100644 index b42f568..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_domain_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization_domain( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.py b/frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.py deleted file mode 100644 index ea3e0c6..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationDomainResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_domain_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_domain( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.pyi deleted file mode 100644 index b5f8a98..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationDomainResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_domain_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_domain_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_domain( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_domain( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_domain_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/__init__.py deleted file mode 100644 index 2a7d24d..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_domains_id_verify import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_DOMAINS_ID_VERIFY \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.py b/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.py deleted file mode 100644 index d8fd2fb..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.py +++ /dev/null @@ -1,537 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1VerifyOrganizationDomainResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Verify org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceVerifyOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_verify_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_verify_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.pyi deleted file mode 100644 index b1c7478..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_domains_id_verify/post.pyi +++ /dev/null @@ -1,523 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1VerifyOrganizationDomainResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_verify_organization_domain_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Verify org domain - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceVerifyOrganizationDomain(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_verify_organization_domain( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_verify_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_verify_organization_domain_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_groups/__init__.py deleted file mode 100644 index 226f515..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_groups import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups/get.py b/frontier_api/paths/v1beta1_organizations_org_id_groups/get.py deleted file mode 100644 index 4360eb2..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse - -from . import path - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups/get.pyi deleted file mode 100644 index fab0d04..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups/post.py b/frontier_api/paths/v1beta1_organizations_org_id_groups/post.py deleted file mode 100644 index 6916b4e..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups/post.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_create_group_response import V1beta1CreateGroupResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1GroupRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateGroupResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups/post.pyi deleted file mode 100644 index 3e1ab67..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups/post.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_create_group_response import V1beta1CreateGroupResponse - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1GroupRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateGroupResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/__init__.py deleted file mode 100644 index 6492221..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_groups_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.py deleted file mode 100644 index b43eafa..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_group_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_group( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.pyi deleted file mode 100644 index b88b4d0..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_group_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_group( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.py deleted file mode 100644 index 0732f64..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_get_group_response import V1beta1GetGroupResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetGroupResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_group_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_group( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.pyi deleted file mode 100644 index e1d8da2..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_get_group_response import V1beta1GetGroupResponse -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetGroupResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_group_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_group_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_group( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_group( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_group_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.py deleted file mode 100644 index 6a87ebc..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.py +++ /dev/null @@ -1,538 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_update_group_response import V1beta1UpdateGroupResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1GroupRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateGroupResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.pyi deleted file mode 100644 index 9c8ece3..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id/put.pyi +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api.model.v1beta1_update_group_response import V1beta1UpdateGroupResponse - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1GroupRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateGroupResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/__init__.py deleted file mode 100644 index 38a3e13..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_groups_id_disable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_DISABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.py deleted file mode 100644 index d14aec3..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.py +++ /dev/null @@ -1,536 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.pyi deleted file mode 100644 index 62c0eaf..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_disable/post.pyi +++ /dev/null @@ -1,522 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/__init__.py deleted file mode 100644 index 22eaf59..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_groups_id_enable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_ENABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.py deleted file mode 100644 index 13c1fa0..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.py +++ /dev/null @@ -1,536 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.pyi deleted file mode 100644 index 7f42471..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_enable/post.pyi +++ /dev/null @@ -1,522 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_group_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable group - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableGroup(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_group( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_group_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/__init__.py deleted file mode 100644 index dd3a028..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.py deleted file mode 100644 index b363d30..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.py +++ /dev/null @@ -1,491 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse - -from . import path - -# Query params -WithRolesSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'withRoles': typing.Union[WithRolesSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_with_roles = api_client.QueryParameter( - name="withRoles", - style=api_client.ParameterStyle.FORM, - schema=WithRolesSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListGroupUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_group_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_group_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_group_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_group_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List group users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_with_roles, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListGroupUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_group_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_group_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_group_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_group_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.pyi deleted file mode 100644 index c36f9f2..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/get.pyi +++ /dev/null @@ -1,477 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse - -# Query params -WithRolesSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'withRoles': typing.Union[WithRolesSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_with_roles = api_client.QueryParameter( - name="withRoles", - style=api_client.ParameterStyle.FORM, - schema=WithRolesSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListGroupUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_group_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_group_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_group_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_group_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List group users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_with_roles, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListGroupUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_group_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_group_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_group_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_group_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_group_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.py deleted file mode 100644 index 14ab375..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.py +++ /dev/null @@ -1,607 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class userIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'userIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "userIds": userIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userIds"]) -> typing.Union[MetaOapg.properties.userIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userIds: typing.Union[MetaOapg.properties.userIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - userIds=userIds, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Add group user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAddGroupUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_group_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_group_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.pyi deleted file mode 100644 index 0b61fc7..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users/post.pyi +++ /dev/null @@ -1,593 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class userIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'userIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "userIds": userIds, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userIds"]) -> typing.Union[MetaOapg.properties.userIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userIds: typing.Union[MetaOapg.properties.userIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - userIds=userIds, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_add_group_users_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Add group user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAddGroupUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_add_group_users( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_group_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_add_group_users_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py deleted file mode 100644 index db25db5..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users_user_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_GROUPS_ID_USERS_USER_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.py b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.py deleted file mode 100644 index 46bcdcd..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -UserIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - 'userId': typing.Union[UserIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_user_id = api_client.PathParameter( - name="userId", - style=api_client.ParameterStyle.SIMPLE, - schema=UserIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_remove_group_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_remove_group_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_remove_group_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_remove_group_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Remove group user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - request_path_user_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceRemoveGroupUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_remove_group_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_remove_group_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_remove_group_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_remove_group_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_group_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_group_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.pyi deleted file mode 100644 index e04cfab..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_groups_id_users_user_id/delete.pyi +++ /dev/null @@ -1,431 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -UserIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - 'userId': typing.Union[UserIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_user_id = api_client.PathParameter( - name="userId", - style=api_client.ParameterStyle.SIMPLE, - schema=UserIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_remove_group_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_remove_group_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_remove_group_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_remove_group_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Remove group user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - request_path_user_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceRemoveGroupUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_remove_group_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_remove_group_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_remove_group_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_remove_group_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_group_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_remove_group_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations/__init__.py deleted file mode 100644 index c064e24..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_invitations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations/get.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations/get.py deleted file mode 100644 index b938e32..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse - -from . import path - -# Query params -UserIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationInvitationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_invitations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_invitations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_invitations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_invitations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List pending invitations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationInvitations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_invitations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_invitations( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_invitations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_invitations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_invitations_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_invitations_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_invitations/get.pyi deleted file mode 100644 index 336b83f..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse - -# Query params -UserIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'userId': typing.Union[UserIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationInvitationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_invitations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_invitations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_invitations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_invitations_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List pending invitations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_user_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationInvitations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_invitations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_invitations( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_invitations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_invitations( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_invitations_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_invitations_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations/post.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations/post.py deleted file mode 100644 index b51ae3e..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations/post.py +++ /dev/null @@ -1,668 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - required = { - "userIds", - } - - class properties: - - - class userIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'userIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class groupIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groupIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class roleIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roleIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "userIds": userIds, - "groupIds": groupIds, - "roleIds": roleIds, - } - - userIds: MetaOapg.properties.userIds - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupIds"]) -> MetaOapg.properties.groupIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleIds"]) -> MetaOapg.properties.roleIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userIds", "groupIds", "roleIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupIds"]) -> typing.Union[MetaOapg.properties.groupIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleIds"]) -> typing.Union[MetaOapg.properties.roleIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userIds", "groupIds", "roleIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userIds: typing.Union[MetaOapg.properties.userIds, list, tuple, ], - groupIds: typing.Union[MetaOapg.properties.groupIds, list, tuple, schemas.Unset] = schemas.unset, - roleIds: typing.Union[MetaOapg.properties.roleIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - userIds=userIds, - groupIds=groupIds, - roleIds=roleIds, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationInvitationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Invite user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_invitation_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_invitation_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_invitations/post.pyi deleted file mode 100644 index 9394c36..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations/post.pyi +++ /dev/null @@ -1,654 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - required = { - "userIds", - } - - class properties: - - - class userIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'userIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class groupIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'groupIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - - - class roleIds( - schemas.ListSchema - ): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'roleIds': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) - __annotations__ = { - "userIds": userIds, - "groupIds": groupIds, - "roleIds": roleIds, - } - - userIds: MetaOapg.properties.userIds - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["groupIds"]) -> MetaOapg.properties.groupIds: ... - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["roleIds"]) -> MetaOapg.properties.roleIds: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["userIds", "groupIds", "roleIds", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["userIds"]) -> MetaOapg.properties.userIds: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["groupIds"]) -> typing.Union[MetaOapg.properties.groupIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["roleIds"]) -> typing.Union[MetaOapg.properties.roleIds, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["userIds", "groupIds", "roleIds", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - userIds: typing.Union[MetaOapg.properties.userIds, list, tuple, ], - groupIds: typing.Union[MetaOapg.properties.groupIds, list, tuple, schemas.Unset] = schemas.unset, - roleIds: typing.Union[MetaOapg.properties.roleIds, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - userIds=userIds, - groupIds=groupIds, - roleIds=roleIds, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationInvitationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_invitation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Invite user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_invitation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_invitation_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_invitation_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/__init__.py deleted file mode 100644 index 86b38b8..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_invitations_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.py deleted file mode 100644 index c9a30e3..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_invitation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete pending invitation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization_invitation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.pyi deleted file mode 100644 index 5a1fd71..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_invitation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete pending invitation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization_invitation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.py deleted file mode 100644 index 672a3bc..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationInvitationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_invitation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get pending invitation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_invitation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.pyi deleted file mode 100644 index 0d597de..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationInvitationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_invitation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get pending invitation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_invitation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/__init__.py deleted file mode 100644 index 60982cc..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_invitations_id_accept import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_INVITATIONS_ID_ACCEPT \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.py b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.py deleted file mode 100644 index b336b5d..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_accept_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_accept_organization_invitation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_accept_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_accept_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Accept pending invitation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAcceptOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_accept_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_accept_organization_invitation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_accept_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_accept_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_accept_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_accept_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.pyi deleted file mode 100644 index 63e8e57..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_invitations_id_accept/post.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_accept_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_accept_organization_invitation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_accept_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_accept_organization_invitation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Accept pending invitation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceAcceptOrganizationInvitation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_accept_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_accept_organization_invitation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_accept_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_accept_organization_invitation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_accept_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_accept_organization_invitation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_join/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_join/__init__.py deleted file mode 100644 index 03b57c9..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_join/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_join import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_JOIN \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_join/post.py b/frontier_api/paths/v1beta1_organizations_org_id_join/post.py deleted file mode 100644 index f01bf0f..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_join/post.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_join_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_join_organization_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_join_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_join_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Join organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceJoinOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_join_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_join_organization( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_join_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_join_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_join_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_join_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_join/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_join/post.pyi deleted file mode 100644 index 1474e39..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_join/post.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_join_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_join_organization_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_join_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_join_organization_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Join organization - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceJoinOrganization(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_join_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_join_organization( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_join_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_join_organization( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_join_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_join_organization_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_roles/__init__.py deleted file mode 100644 index f435910..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_roles import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_ROLES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles/get.py b/frontier_api/paths/v1beta1_organizations_org_id_roles/get.py deleted file mode 100644 index 14de083..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse - -from . import path - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationRolesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_roles_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization roles - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationRoles(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_roles( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_roles_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_roles_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_roles/get.pyi deleted file mode 100644 index 5bf8d9c..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationRolesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organization_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organization_roles_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organization_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organization_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List organization roles - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationRoles(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organization_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organization_roles( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organization_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organization_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_roles_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organization_roles_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles/post.py b/frontier_api/paths/v1beta1_organizations_org_id_roles/post.py deleted file mode 100644 index 08c74b7..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles/post.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles/post.pyi b/frontier_api/paths/v1beta1_organizations_org_id_roles/post.pyi deleted file mode 100644 index 21ed175..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles/post.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -# Path params -OrgIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateOrganizationRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/__init__.py b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/__init__.py deleted file mode 100644 index 8137782..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_organizations_org_id_roles_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ORGANIZATIONS_ORG_ID_ROLES_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.py b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.py deleted file mode 100644 index b38250f..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_role_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization_role( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.pyi b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.pyi deleted file mode 100644 index f88c910..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_organization_role_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_organization_role( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.py b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.py deleted file mode 100644 index 56bc335..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_role_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_role( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.pyi b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.pyi deleted file mode 100644 index a0a054a..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetOrganizationRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_organization_role_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_organization_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_organization_role( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_organization_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_organization_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.py b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.py deleted file mode 100644 index 3733999..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.py +++ /dev/null @@ -1,538 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -from . import path - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateOrganizationRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.pyi b/frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.pyi deleted file mode 100644 index eabe737..0000000 --- a/frontier_api/paths/v1beta1_organizations_org_id_roles_id/put.pyi +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -# Path params -OrgIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_org_id = api_client.PathParameter( - name="orgId", - style=api_client.ParameterStyle.SIMPLE, - schema=OrgIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateOrganizationRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_organization_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update organization role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_org_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateOrganizationRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_organization_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_organization_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions/__init__.py b/frontier_api/paths/v1beta1_permissions/__init__.py deleted file mode 100644 index 3446cb1..0000000 --- a/frontier_api/paths/v1beta1_permissions/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_permissions import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PERMISSIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_permissions/get.py b/frontier_api/paths/v1beta1_permissions/get.py deleted file mode 100644 index 99cddde..0000000 --- a/frontier_api/paths/v1beta1_permissions/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListPermissionsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_permissions_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_permissions_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_permissions_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_permissions_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get all permissions - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListPermissions(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_permissions( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_permissions( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_permissions( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_permissions( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_permissions_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_permissions_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions/get.pyi b/frontier_api/paths/v1beta1_permissions/get.pyi deleted file mode 100644 index 219b35b..0000000 --- a/frontier_api/paths/v1beta1_permissions/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListPermissionsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_permissions_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_permissions_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_permissions_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_permissions_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get all permissions - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListPermissions(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_permissions( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_permissions( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_permissions( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_permissions( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_permissions_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_permissions_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions/post.py b/frontier_api/paths/v1beta1_permissions/post.py deleted file mode 100644 index 5ab44d6..0000000 --- a/frontier_api/paths/v1beta1_permissions/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_permission_request import V1beta1CreatePermissionRequest -from frontier_api.model.v1beta1_create_permission_response import V1beta1CreatePermissionResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreatePermissionRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreatePermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create platform permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceCreatePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions/post.pyi b/frontier_api/paths/v1beta1_permissions/post.pyi deleted file mode 100644 index d6bca0b..0000000 --- a/frontier_api/paths/v1beta1_permissions/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_permission_request import V1beta1CreatePermissionRequest -from frontier_api.model.v1beta1_create_permission_response import V1beta1CreatePermissionResponse - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreatePermissionRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreatePermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_create_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create platform permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceCreatePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_create_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_permission_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions_id/__init__.py b/frontier_api/paths/v1beta1_permissions_id/__init__.py deleted file mode 100644 index 898c3d1..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_permissions_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PERMISSIONS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_permissions_id/delete.py b/frontier_api/paths/v1beta1_permissions_id/delete.py deleted file mode 100644 index 4bd882b..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_delete_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_delete_permission_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_delete_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_delete_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete platform permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceDeletePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_delete_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_delete_permission( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_delete_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_delete_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions_id/delete.pyi b/frontier_api/paths/v1beta1_permissions_id/delete.pyi deleted file mode 100644 index ad8a05c..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_delete_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_delete_permission_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_delete_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_delete_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete platform permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceDeletePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_delete_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_delete_permission( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_delete_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_delete_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions_id/get.py b/frontier_api/paths/v1beta1_permissions_id/get.py deleted file mode 100644 index 9bd4d76..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_permission_response import V1beta1GetPermissionResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetPermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_permission_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetPermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_permission( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions_id/get.pyi b/frontier_api/paths/v1beta1_permissions_id/get.pyi deleted file mode 100644 index 87ad51b..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_permission_response import V1beta1GetPermissionResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetPermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_permission_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_permission_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetPermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_permission( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_permission( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_permission_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions_id/put.py b/frontier_api/paths/v1beta1_permissions_id/put.py deleted file mode 100644 index 390ce59..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody -from frontier_api.model.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1PermissionRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdatePermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update platform permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceUpdatePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_permission_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_permission_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_permissions_id/put.pyi b/frontier_api/paths/v1beta1_permissions_id/put.pyi deleted file mode 100644 index f5d152b..0000000 --- a/frontier_api/paths/v1beta1_permissions_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody -from frontier_api.model.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1PermissionRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdatePermissionResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_update_permission_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update platform permission - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceUpdatePermission(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_update_permission( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_permission_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_permission_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies/__init__.py b/frontier_api/paths/v1beta1_policies/__init__.py deleted file mode 100644 index a81b08d..0000000 --- a/frontier_api/paths/v1beta1_policies/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_policies import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_POLICIES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_policies/get.py b/frontier_api/paths/v1beta1_policies/get.py deleted file mode 100644 index f596f48..0000000 --- a/frontier_api/paths/v1beta1_policies/get.py +++ /dev/null @@ -1,464 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_policies_response import V1beta1ListPoliciesResponse - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema -ProjectIdSchema = schemas.StrSchema -UserIdSchema = schemas.StrSchema -RoleIdSchema = schemas.StrSchema -GroupIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'userId': typing.Union[UserIdSchema, str, ], - 'roleId': typing.Union[RoleIdSchema, str, ], - 'groupId': typing.Union[GroupIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_project_id = api_client.QueryParameter( - name="projectId", - style=api_client.ParameterStyle.FORM, - schema=ProjectIdSchema, - explode=True, -) -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_role_id = api_client.QueryParameter( - name="roleId", - style=api_client.ParameterStyle.FORM, - schema=RoleIdSchema, - explode=True, -) -request_query_group_id = api_client.QueryParameter( - name="groupId", - style=api_client.ParameterStyle.FORM, - schema=GroupIdSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListPoliciesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_policies_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_policies_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_policies_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_policies_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all policies - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_project_id, - request_query_user_id, - request_query_role_id, - request_query_group_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListPolicies(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_policies( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_policies( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_policies( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_policies( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_policies_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_policies_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies/get.pyi b/frontier_api/paths/v1beta1_policies/get.pyi deleted file mode 100644 index 3d952be..0000000 --- a/frontier_api/paths/v1beta1_policies/get.pyi +++ /dev/null @@ -1,450 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_policies_response import V1beta1ListPoliciesResponse - -# Query params -OrgIdSchema = schemas.StrSchema -ProjectIdSchema = schemas.StrSchema -UserIdSchema = schemas.StrSchema -RoleIdSchema = schemas.StrSchema -GroupIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'userId': typing.Union[UserIdSchema, str, ], - 'roleId': typing.Union[RoleIdSchema, str, ], - 'groupId': typing.Union[GroupIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_project_id = api_client.QueryParameter( - name="projectId", - style=api_client.ParameterStyle.FORM, - schema=ProjectIdSchema, - explode=True, -) -request_query_user_id = api_client.QueryParameter( - name="userId", - style=api_client.ParameterStyle.FORM, - schema=UserIdSchema, - explode=True, -) -request_query_role_id = api_client.QueryParameter( - name="roleId", - style=api_client.ParameterStyle.FORM, - schema=RoleIdSchema, - explode=True, -) -request_query_group_id = api_client.QueryParameter( - name="groupId", - style=api_client.ParameterStyle.FORM, - schema=GroupIdSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListPoliciesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_policies_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_policies_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_policies_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_policies_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List all policies - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_project_id, - request_query_user_id, - request_query_role_id, - request_query_group_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListPolicies(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_policies( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_policies( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_policies( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_policies( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_policies_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_policies_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies/post.py b/frontier_api/paths/v1beta1_policies/post.py deleted file mode 100644 index cbae9d1..0000000 --- a/frontier_api/paths/v1beta1_policies/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_create_policy_response import V1beta1CreatePolicyResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1PolicyRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreatePolicyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreatePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_policy_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_policy_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies/post.pyi b/frontier_api/paths/v1beta1_policies/post.pyi deleted file mode 100644 index 8bb0620..0000000 --- a/frontier_api/paths/v1beta1_policies/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_create_policy_response import V1beta1CreatePolicyResponse - -# body param -SchemaForRequestBodyApplicationJson = V1beta1PolicyRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreatePolicyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreatePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_policy_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_policy_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies_id/__init__.py b/frontier_api/paths/v1beta1_policies_id/__init__.py deleted file mode 100644 index 3719131..0000000 --- a/frontier_api/paths/v1beta1_policies_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_policies_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_POLICIES_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_policies_id/delete.py b/frontier_api/paths/v1beta1_policies_id/delete.py deleted file mode 100644 index 11993be..0000000 --- a/frontier_api/paths/v1beta1_policies_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_policy_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete Policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeletePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_policy( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies_id/delete.pyi b/frontier_api/paths/v1beta1_policies_id/delete.pyi deleted file mode 100644 index 9a6cca1..0000000 --- a/frontier_api/paths/v1beta1_policies_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_policy_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete Policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeletePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_policy( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies_id/get.py b/frontier_api/paths/v1beta1_policies_id/get.py deleted file mode 100644 index 0e902ca..0000000 --- a/frontier_api/paths/v1beta1_policies_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_get_policy_response import V1beta1GetPolicyResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetPolicyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_policy_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetPolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_policy( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies_id/get.pyi b/frontier_api/paths/v1beta1_policies_id/get.pyi deleted file mode 100644 index 5311950..0000000 --- a/frontier_api/paths/v1beta1_policies_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_get_policy_response import V1beta1GetPolicyResponse -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetPolicyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_policy_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_policy_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetPolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_policy( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_policy( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_policy_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies_id/put.py b/frontier_api/paths/v1beta1_policies_id/put.py deleted file mode 100644 index bae4a06..0000000 --- a/frontier_api/paths/v1beta1_policies_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1PolicyRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdatePolicyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdatePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_policy_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_policy_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_policies_id/put.pyi b/frontier_api/paths/v1beta1_policies_id/put.pyi deleted file mode 100644 index 17c0583..0000000 --- a/frontier_api/paths/v1beta1_policies_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api.model.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1PolicyRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdatePolicyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_policy_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update policy - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdatePolicy(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_policy( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_policy_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_policy_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_preferences/__init__.py b/frontier_api/paths/v1beta1_preferences/__init__.py deleted file mode 100644 index 52f3461..0000000 --- a/frontier_api/paths/v1beta1_preferences/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_preferences import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PREFERENCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_preferences/get.py b/frontier_api/paths/v1beta1_preferences/get.py deleted file mode 100644 index bd857a3..0000000 --- a/frontier_api/paths/v1beta1_preferences/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List platform preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_preferences/get.pyi b/frontier_api/paths/v1beta1_preferences/get.pyi deleted file mode 100644 index 3c9d7e5..0000000 --- a/frontier_api/paths/v1beta1_preferences/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_list_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_list_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_list_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_list_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List platform preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceListPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_list_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_list_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_list_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_list_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_list_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_preferences/post.py b/frontier_api/paths/v1beta1_preferences/post.py deleted file mode 100644 index 2e993f3..0000000 --- a/frontier_api/paths/v1beta1_preferences/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreatePreferencesRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreatePreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create platform preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceCreatePreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_preferences/post.pyi b/frontier_api/paths/v1beta1_preferences/post.pyi deleted file mode 100644 index d0d30a8..0000000 --- a/frontier_api/paths/v1beta1_preferences/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreatePreferencesRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreatePreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_create_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create platform preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceCreatePreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_create_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_preferences_traits/__init__.py b/frontier_api/paths/v1beta1_preferences_traits/__init__.py deleted file mode 100644 index 17f6556..0000000 --- a/frontier_api/paths/v1beta1_preferences_traits/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_preferences_traits import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PREFERENCES_TRAITS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_preferences_traits/get.py b/frontier_api/paths/v1beta1_preferences_traits/get.py deleted file mode 100644 index 3a9fb32..0000000 --- a/frontier_api/paths/v1beta1_preferences_traits/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1DescribePreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_describe_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_describe_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_describe_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_describe_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Describe preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDescribePreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_describe_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_describe_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_describe_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_describe_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_describe_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_describe_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_preferences_traits/get.pyi b/frontier_api/paths/v1beta1_preferences_traits/get.pyi deleted file mode 100644 index 1df3672..0000000 --- a/frontier_api/paths/v1beta1_preferences_traits/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1DescribePreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_describe_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_describe_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_describe_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_describe_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Describe preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDescribePreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_describe_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_describe_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_describe_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_describe_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_describe_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_describe_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects/__init__.py b/frontier_api/paths/v1beta1_projects/__init__.py deleted file mode 100644 index f7ca52e..0000000 --- a/frontier_api/paths/v1beta1_projects/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects/post.py b/frontier_api/paths/v1beta1_projects/post.py deleted file mode 100644 index 8c71371..0000000 --- a/frontier_api/paths/v1beta1_projects/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_project_response import V1beta1CreateProjectResponse -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1ProjectRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateProjectResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects/post.pyi b/frontier_api/paths/v1beta1_projects/post.pyi deleted file mode 100644 index 2498551..0000000 --- a/frontier_api/paths/v1beta1_projects/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_project_response import V1beta1CreateProjectResponse -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1ProjectRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateProjectResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id/__init__.py b/frontier_api/paths/v1beta1_projects_id/__init__.py deleted file mode 100644 index e23e1ba..0000000 --- a/frontier_api/paths/v1beta1_projects_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id/delete.py b/frontier_api/paths/v1beta1_projects_id/delete.py deleted file mode 100644 index c2bcea6..0000000 --- a/frontier_api/paths/v1beta1_projects_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_project_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete Project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_project( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id/delete.pyi b/frontier_api/paths/v1beta1_projects_id/delete.pyi deleted file mode 100644 index 9e0b2e9..0000000 --- a/frontier_api/paths/v1beta1_projects_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_project_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete Project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_project( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id/get.py b/frontier_api/paths/v1beta1_projects_id/get.py deleted file mode 100644 index ed14ae9..0000000 --- a/frontier_api/paths/v1beta1_projects_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_project_response import V1beta1GetProjectResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetProjectResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_project_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_project( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id/get.pyi b/frontier_api/paths/v1beta1_projects_id/get.pyi deleted file mode 100644 index f56706f..0000000 --- a/frontier_api/paths/v1beta1_projects_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_project_response import V1beta1GetProjectResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetProjectResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_project_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_project_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_project( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_project( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id/put.py b/frontier_api/paths/v1beta1_projects_id/put.py deleted file mode 100644 index ca9c4c2..0000000 --- a/frontier_api/paths/v1beta1_projects_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody -from frontier_api.model.v1beta1_update_project_response import V1beta1UpdateProjectResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1ProjectRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateProjectResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id/put.pyi b/frontier_api/paths/v1beta1_projects_id/put.pyi deleted file mode 100644 index a580fba..0000000 --- a/frontier_api/paths/v1beta1_projects_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody -from frontier_api.model.v1beta1_update_project_response import V1beta1UpdateProjectResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1ProjectRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateProjectResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_admins/__init__.py b/frontier_api/paths/v1beta1_projects_id_admins/__init__.py deleted file mode 100644 index 6c35f93..0000000 --- a/frontier_api/paths/v1beta1_projects_id_admins/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id_admins import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID_ADMINS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id_admins/get.py b/frontier_api/paths/v1beta1_projects_id_admins/get.py deleted file mode 100644 index 45487ae..0000000 --- a/frontier_api/paths/v1beta1_projects_id_admins/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectAdminsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_admins_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project admins - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectAdmins(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_admins( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_admins/get.pyi b/frontier_api/paths/v1beta1_projects_id_admins/get.pyi deleted file mode 100644 index 9ea650e..0000000 --- a/frontier_api/paths/v1beta1_projects_id_admins/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectAdminsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_admins_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_admins_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project admins - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectAdmins(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_admins( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_admins( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_admins_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_disable/__init__.py b/frontier_api/paths/v1beta1_projects_id_disable/__init__.py deleted file mode 100644 index 7591b92..0000000 --- a/frontier_api/paths/v1beta1_projects_id_disable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id_disable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID_DISABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id_disable/post.py b/frontier_api/paths/v1beta1_projects_id_disable/post.py deleted file mode 100644 index 8788beb..0000000 --- a/frontier_api/paths/v1beta1_projects_id_disable/post.py +++ /dev/null @@ -1,527 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_disable/post.pyi b/frontier_api/paths/v1beta1_projects_id_disable/post.pyi deleted file mode 100644 index f9a42b2..0000000 --- a/frontier_api/paths/v1beta1_projects_id_disable/post.pyi +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_enable/__init__.py b/frontier_api/paths/v1beta1_projects_id_enable/__init__.py deleted file mode 100644 index 3c656b1..0000000 --- a/frontier_api/paths/v1beta1_projects_id_enable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id_enable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID_ENABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id_enable/post.py b/frontier_api/paths/v1beta1_projects_id_enable/post.py deleted file mode 100644 index e408850..0000000 --- a/frontier_api/paths/v1beta1_projects_id_enable/post.py +++ /dev/null @@ -1,527 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_enable/post.pyi b/frontier_api/paths/v1beta1_projects_id_enable/post.pyi deleted file mode 100644 index 5cf00dc..0000000 --- a/frontier_api/paths/v1beta1_projects_id_enable/post.pyi +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_project_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable project - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableProject(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_project( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_project_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_preferences/__init__.py b/frontier_api/paths/v1beta1_projects_id_preferences/__init__.py deleted file mode 100644 index 1044f47..0000000 --- a/frontier_api/paths/v1beta1_projects_id_preferences/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id_preferences import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID_PREFERENCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id_preferences/get.py b/frontier_api/paths/v1beta1_projects_id_preferences/get.py deleted file mode 100644 index fcf012a..0000000 --- a/frontier_api/paths/v1beta1_projects_id_preferences/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_preferences/get.pyi b/frontier_api/paths/v1beta1_projects_id_preferences/get.pyi deleted file mode 100644 index 51d91cc..0000000 --- a/frontier_api/paths/v1beta1_projects_id_preferences/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_preferences/post.py b/frontier_api/paths/v1beta1_projects_id_preferences/post.py deleted file mode 100644 index 950c11c..0000000 --- a/frontier_api/paths/v1beta1_projects_id_preferences/post.py +++ /dev/null @@ -1,603 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateProjectPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create project preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateProjectPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_preferences/post.pyi b/frontier_api/paths/v1beta1_projects_id_preferences/post.pyi deleted file mode 100644 index b5dbdad..0000000 --- a/frontier_api/paths/v1beta1_projects_id_preferences/post.pyi +++ /dev/null @@ -1,589 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateProjectPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_project_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create project preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateProjectPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_project_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_serviceusers/__init__.py b/frontier_api/paths/v1beta1_projects_id_serviceusers/__init__.py deleted file mode 100644 index 82cfc63..0000000 --- a/frontier_api/paths/v1beta1_projects_id_serviceusers/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id_serviceusers import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID_SERVICEUSERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id_serviceusers/get.py b/frontier_api/paths/v1beta1_projects_id_serviceusers/get.py deleted file mode 100644 index 76f73da..0000000 --- a/frontier_api/paths/v1beta1_projects_id_serviceusers/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse - -from . import path - -# Query params -WithRolesSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'withRoles': typing.Union[WithRolesSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_with_roles = api_client.QueryParameter( - name="withRoles", - style=api_client.ParameterStyle.FORM, - schema=WithRolesSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectServiceUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_service_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project serviceusers - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_with_roles, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectServiceUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_service_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_service_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_service_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_serviceusers/get.pyi b/frontier_api/paths/v1beta1_projects_id_serviceusers/get.pyi deleted file mode 100644 index 7e8cf66..0000000 --- a/frontier_api/paths/v1beta1_projects_id_serviceusers/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse - -# Query params -WithRolesSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'withRoles': typing.Union[WithRolesSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_with_roles = api_client.QueryParameter( - name="withRoles", - style=api_client.ParameterStyle.FORM, - schema=WithRolesSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectServiceUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_service_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project serviceusers - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_with_roles, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectServiceUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_service_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_service_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_service_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_users/__init__.py b/frontier_api/paths/v1beta1_projects_id_users/__init__.py deleted file mode 100644 index ba4e5ea..0000000 --- a/frontier_api/paths/v1beta1_projects_id_users/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_id_users import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_ID_USERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_id_users/get.py b/frontier_api/paths/v1beta1_projects_id_users/get.py deleted file mode 100644 index f686d34..0000000 --- a/frontier_api/paths/v1beta1_projects_id_users/get.py +++ /dev/null @@ -1,491 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse - -from . import path - -# Query params -PermissionFilterSchema = schemas.StrSchema -WithRolesSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'permissionFilter': typing.Union[PermissionFilterSchema, str, ], - 'withRoles': typing.Union[WithRolesSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_permission_filter = api_client.QueryParameter( - name="permissionFilter", - style=api_client.ParameterStyle.FORM, - schema=PermissionFilterSchema, - explode=True, -) -request_query_with_roles = api_client.QueryParameter( - name="withRoles", - style=api_client.ParameterStyle.FORM, - schema=WithRolesSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_permission_filter, - request_query_with_roles, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_id_users/get.pyi b/frontier_api/paths/v1beta1_projects_id_users/get.pyi deleted file mode 100644 index 6a65526..0000000 --- a/frontier_api/paths/v1beta1_projects_id_users/get.pyi +++ /dev/null @@ -1,477 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse - -# Query params -PermissionFilterSchema = schemas.StrSchema -WithRolesSchema = schemas.BoolSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'permissionFilter': typing.Union[PermissionFilterSchema, str, ], - 'withRoles': typing.Union[WithRolesSchema, bool, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_permission_filter = api_client.QueryParameter( - name="permissionFilter", - style=api_client.ParameterStyle.FORM, - schema=PermissionFilterSchema, - explode=True, -) -request_query_with_roles = api_client.QueryParameter( - name="withRoles", - style=api_client.ParameterStyle.FORM, - schema=WithRolesSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List project users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_permission_filter, - request_query_with_roles, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_users_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources/__init__.py b/frontier_api/paths/v1beta1_projects_project_id_resources/__init__.py deleted file mode 100644 index 64da717..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_project_id_resources import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_PROJECT_ID_RESOURCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources/get.py b/frontier_api/paths/v1beta1_projects_project_id_resources/get.py deleted file mode 100644 index 3f23a2f..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -NamespaceSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'namespace': typing.Union[NamespaceSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_namespace = api_client.QueryParameter( - name="namespace", - style=api_client.ParameterStyle.FORM, - schema=NamespaceSchema, - explode=True, -) -# Path params -ProjectIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectResourcesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_resources_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get all resources - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_namespace, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectResources(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_resources( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_resources_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_resources_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources/get.pyi b/frontier_api/paths/v1beta1_projects_project_id_resources/get.pyi deleted file mode 100644 index 6bf0f6e..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse -from frontier_api.model.rpc_status import RpcStatus - -# Query params -NamespaceSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'namespace': typing.Union[NamespaceSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_namespace = api_client.QueryParameter( - name="namespace", - style=api_client.ParameterStyle.FORM, - schema=NamespaceSchema, - explode=True, -) -# Path params -ProjectIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectResourcesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_project_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_project_resources_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_project_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_project_resources_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get all resources - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_namespace, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectResources(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_project_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_project_resources( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_project_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_project_resources( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_resources_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_project_resources_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources/post.py b/frontier_api/paths/v1beta1_projects_project_id_resources/post.py deleted file mode 100644 index b069c78..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources/post.py +++ /dev/null @@ -1,586 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody - -from . import path - -# Query params -IdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'id': typing.Union[IdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_id = api_client.QueryParameter( - name="id", - style=api_client.ParameterStyle.FORM, - schema=IdSchema, - explode=True, -) -# Path params -ProjectIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1ResourceRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateProjectResourceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_resource_oapg( - body=body, - query_params=query_params, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_resource_oapg( - body=body, - query_params=query_params, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources/post.pyi b/frontier_api/paths/v1beta1_projects_project_id_resources/post.pyi deleted file mode 100644 index 70511fb..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources/post.pyi +++ /dev/null @@ -1,572 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody - -# Query params -IdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'id': typing.Union[IdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_id = api_client.QueryParameter( - name="id", - style=api_client.ParameterStyle.FORM, - schema=IdSchema, - explode=True, -) -# Path params -ProjectIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1ResourceRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateProjectResourceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_resource_oapg( - body=body, - query_params=query_params, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_project_resource_oapg( - body=body, - query_params=query_params, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/__init__.py b/frontier_api/paths/v1beta1_projects_project_id_resources_id/__init__.py deleted file mode 100644 index 6cef646..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_projects_project_id_resources_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_PROJECTS_PROJECT_ID_RESOURCES_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.py b/frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.py deleted file mode 100644 index 26d69e3..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -ProjectIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_project_resource_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_project_resource( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.pyi b/frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.pyi deleted file mode 100644 index 528076a..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -ProjectIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_project_resource_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_project_resource( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/get.py b/frontier_api/paths/v1beta1_projects_project_id_resources_id/get.py deleted file mode 100644 index 6dd9a2f..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse - -from . import path - -# Path params -ProjectIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetProjectResourceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_project_resource_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_project_resource( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/get.pyi b/frontier_api/paths/v1beta1_projects_project_id_resources_id/get.pyi deleted file mode 100644 index 9f2d33f..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse - -# Path params -ProjectIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetProjectResourceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_project_resource_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_project_resource_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_project_resource( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_project_resource( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_project_resource_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/put.py b/frontier_api/paths/v1beta1_projects_project_id_resources_id/put.py deleted file mode 100644 index 1f5f179..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/put.py +++ /dev/null @@ -1,538 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody - -from . import path - -# Path params -ProjectIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1ResourceRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateProjectResourceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_resource_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_resource_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_projects_project_id_resources_id/put.pyi b/frontier_api/paths/v1beta1_projects_project_id_resources_id/put.pyi deleted file mode 100644 index 484a1e4..0000000 --- a/frontier_api/paths/v1beta1_projects_project_id_resources_id/put.pyi +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody - -# Path params -ProjectIdSchema = schemas.StrSchema -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'projectId': typing.Union[ProjectIdSchema, str, ], - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_project_id = api_client.PathParameter( - name="projectId", - style=api_client.ParameterStyle.SIMPLE, - schema=ProjectIdSchema, - required=True, -) -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1ResourceRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateProjectResourceResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_project_resource_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update resource - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_project_id, - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateProjectResource(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_project_resource( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_resource_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_project_resource_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_relations/__init__.py b/frontier_api/paths/v1beta1_relations/__init__.py deleted file mode 100644 index e5cc863..0000000 --- a/frontier_api/paths/v1beta1_relations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_relations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_RELATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_relations/post.py b/frontier_api/paths/v1beta1_relations/post.py deleted file mode 100644 index 33c9a89..0000000 --- a/frontier_api/paths/v1beta1_relations/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_relation_response import V1beta1CreateRelationResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_relation_request_body import V1beta1RelationRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1RelationRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateRelationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create relation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateRelation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_relation_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_relation_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_relations/post.pyi b/frontier_api/paths/v1beta1_relations/post.pyi deleted file mode 100644 index 300b6e3..0000000 --- a/frontier_api/paths/v1beta1_relations/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_relation_response import V1beta1CreateRelationResponse -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_relation_request_body import V1beta1RelationRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1RelationRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateRelationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_relation_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create relation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateRelation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_relation( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_relation_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_relation_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_relations_id/__init__.py b/frontier_api/paths/v1beta1_relations_id/__init__.py deleted file mode 100644 index 81f3b65..0000000 --- a/frontier_api/paths/v1beta1_relations_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_relations_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_RELATIONS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_relations_id/get.py b/frontier_api/paths/v1beta1_relations_id/get.py deleted file mode 100644 index 46dceb7..0000000 --- a/frontier_api/paths/v1beta1_relations_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_get_relation_response import V1beta1GetRelationResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetRelationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_relation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get relation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetRelation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_relation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_relations_id/get.pyi b/frontier_api/paths/v1beta1_relations_id/get.pyi deleted file mode 100644 index 3df9f63..0000000 --- a/frontier_api/paths/v1beta1_relations_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_get_relation_response import V1beta1GetRelationResponse -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetRelationResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_relation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get relation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetRelation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_relation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/__init__.py b/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/__init__.py deleted file mode 100644 index c0c2973..0000000 --- a/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_relations_relation_object_object_subject_subject import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_RELATIONS_RELATION_OBJECT_OBJECT_SUBJECT_SUBJECT \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.py b/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.py deleted file mode 100644 index baedd93..0000000 --- a/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -RelationSchema = schemas.StrSchema -ObjectSchema = schemas.StrSchema -SubjectSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'relation': typing.Union[RelationSchema, str, ], - 'object': typing.Union[ObjectSchema, str, ], - 'subject': typing.Union[SubjectSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_relation = api_client.PathParameter( - name="relation", - style=api_client.ParameterStyle.SIMPLE, - schema=RelationSchema, - required=True, -) -request_path_object = api_client.PathParameter( - name="object", - style=api_client.ParameterStyle.SIMPLE, - schema=ObjectSchema, - required=True, -) -request_path_subject = api_client.PathParameter( - name="subject", - style=api_client.ParameterStyle.SIMPLE, - schema=SubjectSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_relation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete relation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_relation, - request_path_object, - request_path_subject, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteRelation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_relation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.pyi b/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.pyi deleted file mode 100644 index 5340d85..0000000 --- a/frontier_api/paths/v1beta1_relations_relation_object_object_subject_subject/delete.pyi +++ /dev/null @@ -1,431 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -RelationSchema = schemas.StrSchema -ObjectSchema = schemas.StrSchema -SubjectSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'relation': typing.Union[RelationSchema, str, ], - 'object': typing.Union[ObjectSchema, str, ], - 'subject': typing.Union[SubjectSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_relation = api_client.PathParameter( - name="relation", - style=api_client.ParameterStyle.SIMPLE, - schema=RelationSchema, - required=True, -) -request_path_object = api_client.PathParameter( - name="object", - style=api_client.ParameterStyle.SIMPLE, - schema=ObjectSchema, - required=True, -) -request_path_subject = api_client.PathParameter( - name="subject", - style=api_client.ParameterStyle.SIMPLE, - schema=SubjectSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_relation_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_relation_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete relation - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_relation, - request_path_object, - request_path_subject, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteRelation(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_relation( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_relation( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_relation_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles/__init__.py b/frontier_api/paths/v1beta1_roles/__init__.py deleted file mode 100644 index 9ea7c4d..0000000 --- a/frontier_api/paths/v1beta1_roles/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_roles import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ROLES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_roles/get.py b/frontier_api/paths/v1beta1_roles/get.py deleted file mode 100644 index 953a62f..0000000 --- a/frontier_api/paths/v1beta1_roles/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_roles_response import V1beta1ListRolesResponse - -from . import path - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListRolesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_roles_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List platform roles - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListRoles(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_roles( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_roles_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_roles_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles/get.pyi b/frontier_api/paths/v1beta1_roles/get.pyi deleted file mode 100644 index 2594895..0000000 --- a/frontier_api/paths/v1beta1_roles/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_roles_response import V1beta1ListRolesResponse - -# Query params -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListRolesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_roles_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_roles_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List platform roles - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListRoles(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_roles( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_roles( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_roles_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_roles_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles/post.py b/frontier_api/paths/v1beta1_roles/post.py deleted file mode 100644 index fd79843..0000000 --- a/frontier_api/paths/v1beta1_roles/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_role_response import V1beta1CreateRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create platform role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceCreateRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_role_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_role_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles/post.pyi b/frontier_api/paths/v1beta1_roles/post.pyi deleted file mode 100644 index 69b2819..0000000 --- a/frontier_api/paths/v1beta1_roles/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_role_response import V1beta1CreateRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_create_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create platform role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceCreateRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_create_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_role_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_create_role_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles_id/__init__.py b/frontier_api/paths/v1beta1_roles_id/__init__.py deleted file mode 100644 index 19fe423..0000000 --- a/frontier_api/paths/v1beta1_roles_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_roles_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_ROLES_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_roles_id/delete.py b/frontier_api/paths/v1beta1_roles_id/delete.py deleted file mode 100644 index d369c94..0000000 --- a/frontier_api/paths/v1beta1_roles_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_delete_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_delete_role_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_delete_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_delete_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete platform role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceDeleteRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_delete_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_delete_role( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_delete_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_delete_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles_id/delete.pyi b/frontier_api/paths/v1beta1_roles_id/delete.pyi deleted file mode 100644 index 4136f80..0000000 --- a/frontier_api/paths/v1beta1_roles_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_delete_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_delete_role_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_delete_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_delete_role_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete platform role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceDeleteRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_delete_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_delete_role( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_delete_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_delete_role( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_delete_role_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles_id/put.py b/frontier_api/paths/v1beta1_roles_id/put.py deleted file mode 100644 index 59bf422..0000000 --- a/frontier_api/paths/v1beta1_roles_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_role_response import V1beta1UpdateRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceUpdateRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_roles_id/put.pyi b/frontier_api/paths/v1beta1_roles_id/put.pyi deleted file mode 100644 index 3598115..0000000 --- a/frontier_api/paths/v1beta1_roles_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_role_response import V1beta1UpdateRoleResponse -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1RoleRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateRoleResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _admin_service_update_role_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update role - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class AdminServiceUpdateRole(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def admin_service_update_role( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._admin_service_update_role_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers/__init__.py b/frontier_api/paths/v1beta1_serviceusers/__init__.py deleted file mode 100644 index 115f3c2..0000000 --- a/frontier_api/paths/v1beta1_serviceusers/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_serviceusers import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_SERVICEUSERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_serviceusers/get.py b/frontier_api/paths/v1beta1_serviceusers/get.py deleted file mode 100644 index 21f0630..0000000 --- a/frontier_api/paths/v1beta1_serviceusers/get.py +++ /dev/null @@ -1,438 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - required=True, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListServiceUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_service_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List org service users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListServiceUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_service_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers/get.pyi b/frontier_api/paths/v1beta1_serviceusers/get.pyi deleted file mode 100644 index 74da1df..0000000 --- a/frontier_api/paths/v1beta1_serviceusers/get.pyi +++ /dev/null @@ -1,424 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse - -# Query params -OrgIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - required=True, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListServiceUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_service_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_service_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List org service users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListServiceUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_service_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_service_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers/post.py b/frontier_api/paths/v1beta1_serviceusers/post.py deleted file mode 100644 index a0343a6..0000000 --- a/frontier_api/paths/v1beta1_serviceusers/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreateServiceUserRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateServiceUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create service user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateServiceUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers/post.pyi b/frontier_api/paths/v1beta1_serviceusers/post.pyi deleted file mode 100644 index b7d200a..0000000 --- a/frontier_api/paths/v1beta1_serviceusers/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreateServiceUserRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateServiceUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_service_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create service user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateServiceUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_service_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id/__init__.py b/frontier_api/paths/v1beta1_serviceusers_id/__init__.py deleted file mode 100644 index 5c03116..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_serviceusers_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_SERVICEUSERS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_serviceusers_id/delete.py b/frontier_api/paths/v1beta1_serviceusers_id/delete.py deleted file mode 100644 index f176680..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id/delete.py +++ /dev/null @@ -1,481 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_service_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_service_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_service_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_service_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete service user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteServiceUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_service_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_service_user( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_service_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_service_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id/delete.pyi b/frontier_api/paths/v1beta1_serviceusers_id/delete.pyi deleted file mode 100644 index 8da686e..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id/delete.pyi +++ /dev/null @@ -1,467 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Query params -OrgIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_service_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_service_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_service_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_service_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete service user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteServiceUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_service_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_service_user( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_service_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_service_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id/get.py b/frontier_api/paths/v1beta1_serviceusers_id/get.py deleted file mode 100644 index 173bd8c..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetServiceUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_service_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_service_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_service_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_service_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get service user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetServiceUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_service_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_service_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_service_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_service_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id/get.pyi b/frontier_api/paths/v1beta1_serviceusers_id/get.pyi deleted file mode 100644 index 0d0f580..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetServiceUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_service_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_service_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_service_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_service_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get service user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetServiceUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_service_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_service_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_service_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_service_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys/__init__.py b/frontier_api/paths/v1beta1_serviceusers_id_keys/__init__.py deleted file mode 100644 index 6df3c13..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_serviceusers_id_keys import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_SERVICEUSERS_ID_KEYS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys/get.py b/frontier_api/paths/v1beta1_serviceusers_id_keys/get.py deleted file mode 100644 index 3690716..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListServiceUserKeysResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_service_user_keys_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_service_user_keys_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_service_user_keys_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_service_user_keys_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List service user keys - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListServiceUserKeys(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_service_user_keys( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_service_user_keys( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_service_user_keys( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_service_user_keys( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_keys_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_keys_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys/get.pyi b/frontier_api/paths/v1beta1_serviceusers_id_keys/get.pyi deleted file mode 100644 index 0e1d825..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListServiceUserKeysResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_service_user_keys_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_service_user_keys_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_service_user_keys_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_service_user_keys_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List service user keys - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListServiceUserKeys(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_service_user_keys( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_service_user_keys( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_service_user_keys( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_service_user_keys( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_keys_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_keys_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys/post.py b/frontier_api/paths/v1beta1_serviceusers_id_keys/post.py deleted file mode 100644 index 64e6cea..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys/post.py +++ /dev/null @@ -1,577 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - title = schemas.StrSchema - __annotations__ = { - "title": title, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - title=title, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateServiceUserKeyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create service user key - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateServiceUserKey(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_key_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_key_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys/post.pyi b/frontier_api/paths/v1beta1_serviceusers_id_keys/post.pyi deleted file mode 100644 index 203eca4..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys/post.pyi +++ /dev/null @@ -1,563 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - title = schemas.StrSchema - __annotations__ = { - "title": title, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - title=title, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateServiceUserKeyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_service_user_key_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create service user key - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateServiceUserKey(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_service_user_key( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_key_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_key_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/__init__.py b/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/__init__.py deleted file mode 100644 index 62cef11..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_SERVICEUSERS_ID_KEYS_KEY_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.py b/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.py deleted file mode 100644 index cc13a10..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -KeyIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'keyId': typing.Union[KeyIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_key_id = api_client.PathParameter( - name="keyId", - style=api_client.ParameterStyle.SIMPLE, - schema=KeyIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_service_user_key_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete service user key - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_key_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteServiceUserKey(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_service_user_key( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.pyi b/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.pyi deleted file mode 100644 index 2b6696a..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -KeyIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'keyId': typing.Union[KeyIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_key_id = api_client.PathParameter( - name="keyId", - style=api_client.ParameterStyle.SIMPLE, - schema=KeyIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_service_user_key_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete service user key - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_key_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteServiceUserKey(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_service_user_key( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.py b/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.py deleted file mode 100644 index 97cb323..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.py +++ /dev/null @@ -1,437 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -KeyIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'keyId': typing.Union[KeyIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_key_id = api_client.PathParameter( - name="keyId", - style=api_client.ParameterStyle.SIMPLE, - schema=KeyIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetServiceUserKeyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_service_user_key_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get service user key - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_key_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetServiceUserKey(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_service_user_key( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.pyi b/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.pyi deleted file mode 100644 index 48bd89e..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_keys_key_id/get.pyi +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse - -# Path params -IdSchema = schemas.StrSchema -KeyIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'keyId': typing.Union[KeyIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_key_id = api_client.PathParameter( - name="keyId", - style=api_client.ParameterStyle.SIMPLE, - schema=KeyIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetServiceUserKeyResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_service_user_key_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_service_user_key_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get service user key - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_key_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetServiceUserKey(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_service_user_key( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_service_user_key( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_service_user_key_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets/__init__.py b/frontier_api/paths/v1beta1_serviceusers_id_secrets/__init__.py deleted file mode 100644 index c3e3d25..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_serviceusers_id_secrets import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_SERVICEUSERS_ID_SECRETS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets/get.py b/frontier_api/paths/v1beta1_serviceusers_id_secrets/get.py deleted file mode 100644 index 1ced9cc..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListServiceUserSecretsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_service_user_secrets_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_service_user_secrets_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_service_user_secrets_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_service_user_secrets_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List service user secrets - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListServiceUserSecrets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_service_user_secrets( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_service_user_secrets( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_service_user_secrets( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_service_user_secrets( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_secrets_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_secrets_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets/get.pyi b/frontier_api/paths/v1beta1_serviceusers_id_secrets/get.pyi deleted file mode 100644 index 1466865..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListServiceUserSecretsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_service_user_secrets_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_service_user_secrets_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_service_user_secrets_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_service_user_secrets_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List service user secrets - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListServiceUserSecrets(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_service_user_secrets( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_service_user_secrets( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_service_user_secrets( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_service_user_secrets( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_secrets_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_service_user_secrets_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets/post.py b/frontier_api/paths/v1beta1_serviceusers_id_secrets/post.py deleted file mode 100644 index 054bc5a..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets/post.py +++ /dev/null @@ -1,577 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - title = schemas.StrSchema - __annotations__ = { - "title": title, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - title=title, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateServiceUserSecretResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create service user secret - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateServiceUserSecret(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_secret_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_secret_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets/post.pyi b/frontier_api/paths/v1beta1_serviceusers_id_secrets/post.pyi deleted file mode 100644 index 85b2e69..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets/post.pyi +++ /dev/null @@ -1,563 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - title = schemas.StrSchema - __annotations__ = { - "title": title, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["title"]) -> MetaOapg.properties.title: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["title"]) -> typing.Union[MetaOapg.properties.title, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["title", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - title: typing.Union[MetaOapg.properties.title, str, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - title=title, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateServiceUserSecretResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_service_user_secret_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create service user secret - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateServiceUserSecret(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_service_user_secret( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_secret_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_service_user_secret_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/__init__.py b/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/__init__.py deleted file mode 100644 index b0c6f88..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_serviceusers_id_secrets_secret_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_SERVICEUSERS_ID_SECRETS_SECRET_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.py b/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.py deleted file mode 100644 index f98188d..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.py +++ /dev/null @@ -1,436 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -SecretIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'secretId': typing.Union[SecretIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_secret_id = api_client.PathParameter( - name="secretId", - style=api_client.ParameterStyle.SIMPLE, - schema=SecretIdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_service_user_secret_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_service_user_secret_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_service_user_secret_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_service_user_secret_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete service user secret - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_secret_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteServiceUserSecret(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_service_user_secret( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_service_user_secret( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_service_user_secret( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_service_user_secret( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_secret_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_secret_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.pyi b/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.pyi deleted file mode 100644 index 5509d59..0000000 --- a/frontier_api/paths/v1beta1_serviceusers_id_secrets_secret_id/delete.pyi +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -SecretIdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - 'secretId': typing.Union[SecretIdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -request_path_secret_id = api_client.PathParameter( - name="secretId", - style=api_client.ParameterStyle.SIMPLE, - schema=SecretIdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_service_user_secret_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_service_user_secret_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_service_user_secret_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_service_user_secret_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete service user secret - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - request_path_secret_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteServiceUserSecret(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_service_user_secret( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_service_user_secret( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_service_user_secret( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_service_user_secret( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_secret_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_service_user_secret_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users/__init__.py b/frontier_api/paths/v1beta1_users/__init__.py deleted file mode 100644 index 3161a17..0000000 --- a/frontier_api/paths/v1beta1_users/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users/get.py b/frontier_api/paths/v1beta1_users/get.py deleted file mode 100644 index 175ac05..0000000 --- a/frontier_api/paths/v1beta1_users/get.py +++ /dev/null @@ -1,473 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_users_response import V1beta1ListUsersResponse - -from . import path - -# Query params -PageSizeSchema = schemas.Int32Schema -PageNumSchema = schemas.Int32Schema -KeywordSchema = schemas.StrSchema -OrgIdSchema = schemas.StrSchema -GroupIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, ], - 'pageNum': typing.Union[PageNumSchema, decimal.Decimal, int, ], - 'keyword': typing.Union[KeywordSchema, str, ], - 'orgId': typing.Union[OrgIdSchema, str, ], - 'groupId': typing.Union[GroupIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_page_num = api_client.QueryParameter( - name="pageNum", - style=api_client.ParameterStyle.FORM, - schema=PageNumSchema, - explode=True, -) -request_query_keyword = api_client.QueryParameter( - name="keyword", - style=api_client.ParameterStyle.FORM, - schema=KeywordSchema, - explode=True, -) -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_group_id = api_client.QueryParameter( - name="groupId", - style=api_client.ParameterStyle.FORM, - schema=GroupIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List public users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_page_size, - request_query_page_num, - request_query_keyword, - request_query_org_id, - request_query_group_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users/get.pyi b/frontier_api/paths/v1beta1_users/get.pyi deleted file mode 100644 index 74ca8f3..0000000 --- a/frontier_api/paths/v1beta1_users/get.pyi +++ /dev/null @@ -1,459 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_users_response import V1beta1ListUsersResponse - -# Query params -PageSizeSchema = schemas.Int32Schema -PageNumSchema = schemas.Int32Schema -KeywordSchema = schemas.StrSchema -OrgIdSchema = schemas.StrSchema -GroupIdSchema = schemas.StrSchema -StateSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'pageSize': typing.Union[PageSizeSchema, decimal.Decimal, int, ], - 'pageNum': typing.Union[PageNumSchema, decimal.Decimal, int, ], - 'keyword': typing.Union[KeywordSchema, str, ], - 'orgId': typing.Union[OrgIdSchema, str, ], - 'groupId': typing.Union[GroupIdSchema, str, ], - 'state': typing.Union[StateSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_page_size = api_client.QueryParameter( - name="pageSize", - style=api_client.ParameterStyle.FORM, - schema=PageSizeSchema, - explode=True, -) -request_query_page_num = api_client.QueryParameter( - name="pageNum", - style=api_client.ParameterStyle.FORM, - schema=PageNumSchema, - explode=True, -) -request_query_keyword = api_client.QueryParameter( - name="keyword", - style=api_client.ParameterStyle.FORM, - schema=KeywordSchema, - explode=True, -) -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_group_id = api_client.QueryParameter( - name="groupId", - style=api_client.ParameterStyle.FORM, - schema=GroupIdSchema, - explode=True, -) -request_query_state = api_client.QueryParameter( - name="state", - style=api_client.ParameterStyle.FORM, - schema=StateSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUsersResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_users_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_users_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List public users - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_page_size, - request_query_page_num, - request_query_keyword, - request_query_org_id, - request_query_group_id, - request_query_state, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUsers(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_users( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_users( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_users_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users/post.py b/frontier_api/paths/v1beta1_users/post.py deleted file mode 100644 index 882ca77..0000000 --- a/frontier_api/paths/v1beta1_users/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_user_response import V1beta1CreateUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1UserRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users/post.pyi b/frontier_api/paths/v1beta1_users/post.pyi deleted file mode 100644 index b89c6b8..0000000 --- a/frontier_api/paths/v1beta1_users/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_user_response import V1beta1CreateUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1UserRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id/__init__.py b/frontier_api/paths/v1beta1_users_id/__init__.py deleted file mode 100644 index 1841904..0000000 --- a/frontier_api/paths/v1beta1_users_id/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id/delete.py b/frontier_api/paths/v1beta1_users_id/delete.py deleted file mode 100644 index 1e68670..0000000 --- a/frontier_api/paths/v1beta1_users_id/delete.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id/delete.pyi b/frontier_api/paths/v1beta1_users_id/delete.pyi deleted file mode 100644 index d8499fa..0000000 --- a/frontier_api/paths/v1beta1_users_id/delete.pyi +++ /dev/null @@ -1,413 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_delete_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_delete_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_delete_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_delete_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Delete user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='delete'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDeleteUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_delete_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_delete_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_delete_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_delete_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiFordelete(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def delete( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def delete( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_delete_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id/get.py b/frontier_api/paths/v1beta1_users_id/get.py deleted file mode 100644 index b3de941..0000000 --- a/frontier_api/paths/v1beta1_users_id/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_user_response import V1beta1GetUserResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id/get.pyi b/frontier_api/paths/v1beta1_users_id/get.pyi deleted file mode 100644 index c011b75..0000000 --- a/frontier_api/paths/v1beta1_users_id/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_user_response import V1beta1GetUserResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1GetUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id/put.py b/frontier_api/paths/v1beta1_users_id/put.py deleted file mode 100644 index cfaac2a..0000000 --- a/frontier_api/paths/v1beta1_users_id/put.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_user_response import V1beta1UpdateUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1UserRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id/put.pyi b/frontier_api/paths/v1beta1_users_id/put.pyi deleted file mode 100644 index eeffc94..0000000 --- a/frontier_api/paths/v1beta1_users_id/put.pyi +++ /dev/null @@ -1,515 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_user_response import V1beta1UpdateUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = V1beta1UserRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_disable/__init__.py b/frontier_api/paths/v1beta1_users_id_disable/__init__.py deleted file mode 100644 index d69b9a6..0000000 --- a/frontier_api/paths/v1beta1_users_id_disable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_disable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_DISABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_disable/post.py b/frontier_api/paths/v1beta1_users_id_disable/post.py deleted file mode 100644 index 4bed534..0000000 --- a/frontier_api/paths/v1beta1_users_id_disable/post.py +++ /dev/null @@ -1,527 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_disable/post.pyi b/frontier_api/paths/v1beta1_users_id_disable/post.pyi deleted file mode 100644 index 008dd96..0000000 --- a/frontier_api/paths/v1beta1_users_id_disable/post.pyi +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_disable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Disable user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceDisableUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_disable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_disable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_enable/__init__.py b/frontier_api/paths/v1beta1_users_id_enable/__init__.py deleted file mode 100644 index 9624507..0000000 --- a/frontier_api/paths/v1beta1_users_id_enable/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_enable import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_ENABLE \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_enable/post.py b/frontier_api/paths/v1beta1_users_id_enable/post.py deleted file mode 100644 index 76da23a..0000000 --- a/frontier_api/paths/v1beta1_users_id_enable/post.py +++ /dev/null @@ -1,527 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_enable/post.pyi b/frontier_api/paths/v1beta1_users_id_enable/post.pyi deleted file mode 100644 index 018989a..0000000 --- a/frontier_api/paths/v1beta1_users_id_enable/post.pyi +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param -SchemaForRequestBodyApplicationJson = schemas.DictSchema - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_enable_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Enable user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceEnableUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_enable_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_enable_user_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_groups/__init__.py b/frontier_api/paths/v1beta1_users_id_groups/__init__.py deleted file mode 100644 index 651864a..0000000 --- a/frontier_api/paths/v1beta1_users_id_groups/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_groups import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_GROUPS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_groups/get.py b/frontier_api/paths/v1beta1_users_id_groups/get.py deleted file mode 100644 index 744b8e7..0000000 --- a/frontier_api/paths/v1beta1_users_id_groups/get.py +++ /dev/null @@ -1,482 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUserGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_user_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List user groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUserGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_user_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_groups/get.pyi b/frontier_api/paths/v1beta1_users_id_groups/get.pyi deleted file mode 100644 index 502cad0..0000000 --- a/frontier_api/paths/v1beta1_users_id_groups/get.pyi +++ /dev/null @@ -1,468 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse -from frontier_api.model.rpc_status import RpcStatus - -# Query params -OrgIdSchema = schemas.StrSchema -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUserGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_user_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List user groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUserGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_user_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_groups_oapg( - query_params=query_params, - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_invitations/__init__.py b/frontier_api/paths/v1beta1_users_id_invitations/__init__.py deleted file mode 100644 index a35fcec..0000000 --- a/frontier_api/paths/v1beta1_users_id_invitations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_invitations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_INVITATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_invitations/get.py b/frontier_api/paths/v1beta1_users_id_invitations/get.py deleted file mode 100644 index 040eb86..0000000 --- a/frontier_api/paths/v1beta1_users_id_invitations/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUserInvitationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_user_invitations_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_user_invitations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_user_invitations_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_user_invitations_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List user invitations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUserInvitations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_user_invitations( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_user_invitations( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_user_invitations( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_user_invitations( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_invitations_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_invitations_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_invitations/get.pyi b/frontier_api/paths/v1beta1_users_id_invitations/get.pyi deleted file mode 100644 index e687e7c..0000000 --- a/frontier_api/paths/v1beta1_users_id_invitations/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUserInvitationsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_user_invitations_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_user_invitations_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_user_invitations_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_user_invitations_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List user invitations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUserInvitations(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_user_invitations( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_user_invitations( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_user_invitations( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_user_invitations( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_invitations_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_invitations_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_organizations/__init__.py b/frontier_api/paths/v1beta1_users_id_organizations/__init__.py deleted file mode 100644 index 336adb8..0000000 --- a/frontier_api/paths/v1beta1_users_id_organizations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_organizations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_ORGANIZATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_organizations/get.py b/frontier_api/paths/v1beta1_users_id_organizations/get.py deleted file mode 100644 index b16abf7..0000000 --- a/frontier_api/paths/v1beta1_users_id_organizations/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationsByUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organizations_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organizations_by_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organizations_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organizations_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get user organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationsByUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organizations_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organizations_by_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organizations_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organizations_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_organizations/get.pyi b/frontier_api/paths/v1beta1_users_id_organizations/get.pyi deleted file mode 100644 index 877c9a4..0000000 --- a/frontier_api/paths/v1beta1_users_id_organizations/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationsByUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organizations_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organizations_by_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organizations_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organizations_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get user organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationsByUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organizations_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organizations_by_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organizations_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organizations_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_preferences/__init__.py b/frontier_api/paths/v1beta1_users_id_preferences/__init__.py deleted file mode 100644 index 5edc9cc..0000000 --- a/frontier_api/paths/v1beta1_users_id_preferences/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_preferences import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_PREFERENCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_preferences/get.py b/frontier_api/paths/v1beta1_users_id_preferences/get.py deleted file mode 100644 index 2d09a1c..0000000 --- a/frontier_api/paths/v1beta1_users_id_preferences/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_user_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_user_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_user_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_user_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_user_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_user_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_user_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_user_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_preferences/get.pyi b/frontier_api/paths/v1beta1_users_id_preferences/get.pyi deleted file mode 100644 index e3c48d8..0000000 --- a/frontier_api/paths/v1beta1_users_id_preferences/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_user_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_user_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_user_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_user_preferences_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_user_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_user_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_user_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_user_preferences( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_user_preferences_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_preferences/post.py b/frontier_api/paths/v1beta1_users_id_preferences/post.py deleted file mode 100644 index 3f814a7..0000000 --- a/frontier_api/paths/v1beta1_users_id_preferences/post.py +++ /dev/null @@ -1,603 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_preferences/post.pyi b/frontier_api/paths/v1beta1_users_id_preferences/post.pyi deleted file mode 100644 index 0481c8f..0000000 --- a/frontier_api/paths/v1beta1_users_id_preferences/post.pyi +++ /dev/null @@ -1,589 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api.model.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -# body param - - -class SchemaForRequestBodyApplicationJson( - schemas.DictSchema -): - - - class MetaOapg: - - class properties: - - - class bodies( - schemas.ListSchema - ): - - - class MetaOapg: - - @staticmethod - def items() -> typing.Type['V1beta1PreferenceRequestBody']: - return V1beta1PreferenceRequestBody - - def __new__( - cls, - _arg: typing.Union[typing.Tuple['V1beta1PreferenceRequestBody'], typing.List['V1beta1PreferenceRequestBody']], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'bodies': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> 'V1beta1PreferenceRequestBody': - return super().__getitem__(i) - __annotations__ = { - "bodies": bodies, - } - - @typing.overload - def __getitem__(self, name: typing_extensions.Literal["bodies"]) -> MetaOapg.properties.bodies: ... - - @typing.overload - def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - - def __getitem__(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - # dict_instance[name] accessor - return super().__getitem__(name) - - - @typing.overload - def get_item_oapg(self, name: typing_extensions.Literal["bodies"]) -> typing.Union[MetaOapg.properties.bodies, schemas.Unset]: ... - - @typing.overload - def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bodies", ], str]): - return super().get_item_oapg(name) - - - def __new__( - cls, - *_args: typing.Union[dict, frozendict.frozendict, ], - bodies: typing.Union[MetaOapg.properties.bodies, list, tuple, schemas.Unset] = schemas.unset, - _configuration: typing.Optional[schemas.Configuration] = None, - **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], - ) -> 'SchemaForRequestBodyApplicationJson': - return super().__new__( - cls, - *_args, - bodies=bodies, - _configuration=_configuration, - **kwargs, - ) - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: typing_extensions.Literal["application/json"] = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = ..., - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], - content_type: str = 'application/json', - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_user_preferences_oapg( - body=body, - path_params=path_params, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_projects/__init__.py b/frontier_api/paths/v1beta1_users_id_projects/__init__.py deleted file mode 100644 index 6801cfa..0000000 --- a/frontier_api/paths/v1beta1_users_id_projects/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_id_projects import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_ID_PROJECTS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_id_projects/get.py b/frontier_api/paths/v1beta1_users_id_projects/get.py deleted file mode 100644 index 4d227cb..0000000 --- a/frontier_api/paths/v1beta1_users_id_projects/get.py +++ /dev/null @@ -1,428 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse - -from . import path - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectsByUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_projects_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_projects_by_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_projects_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_projects_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get user projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectsByUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_projects_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_projects_by_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_projects_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_projects_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_id_projects/get.pyi b/frontier_api/paths/v1beta1_users_id_projects/get.pyi deleted file mode 100644 index dcb83e0..0000000 --- a/frontier_api/paths/v1beta1_users_id_projects/get.pyi +++ /dev/null @@ -1,414 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse - -# Path params -IdSchema = schemas.StrSchema -RequestRequiredPathParams = typing_extensions.TypedDict( - 'RequestRequiredPathParams', - { - 'id': typing.Union[IdSchema, str, ], - } -) -RequestOptionalPathParams = typing_extensions.TypedDict( - 'RequestOptionalPathParams', - { - }, - total=False -) - - -class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams): - pass - - -request_path_id = api_client.PathParameter( - name="id", - style=api_client.ParameterStyle.SIMPLE, - schema=IdSchema, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectsByUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_projects_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_projects_by_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_projects_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_projects_by_user_oapg( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get user projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params) - used_path = path.value - - _path_params = {} - for parameter in ( - request_path_id, - ): - parameter_data = path_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - serialized_data = parameter.serialize(parameter_data) - _path_params.update(serialized_data) - - for k, v in _path_params.items(): - used_path = used_path.replace('{%s}' % k, v) - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectsByUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_projects_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_projects_by_user( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_projects_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_projects_by_user( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_user_oapg( - path_params=path_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self/__init__.py b/frontier_api/paths/v1beta1_users_self/__init__.py deleted file mode 100644 index 169a0c5..0000000 --- a/frontier_api/paths/v1beta1_users_self/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_self import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_SELF \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_self/get.py b/frontier_api/paths/v1beta1_users_self/get.py deleted file mode 100644 index ded505f..0000000 --- a/frontier_api/paths/v1beta1_users_self/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_current_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get current user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_current_user( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self/get.pyi b/frontier_api/paths/v1beta1_users_self/get.pyi deleted file mode 100644 index 6e76fd5..0000000 --- a/frontier_api/paths/v1beta1_users_self/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1GetCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_current_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get current user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_current_user( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self/put.py b/frontier_api/paths/v1beta1_users_self/put.py deleted file mode 100644 index 30f75dd..0000000 --- a/frontier_api/paths/v1beta1_users_self/put.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1UserRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update current user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_current_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_current_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self/put.pyi b/frontier_api/paths/v1beta1_users_self/put.pyi deleted file mode 100644 index edefe0d..0000000 --- a/frontier_api/paths/v1beta1_users_self/put.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody - -# body param -SchemaForRequestBodyApplicationJson = V1beta1UserRequestBody - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1UpdateCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_update_current_user_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Update current user - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='put'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceUpdateCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_update_current_user( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_current_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForput(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def put( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_update_current_user_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_groups/__init__.py b/frontier_api/paths/v1beta1_users_self_groups/__init__.py deleted file mode 100644 index 288ae1b..0000000 --- a/frontier_api/paths/v1beta1_users_self_groups/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_self_groups import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_SELF_GROUPS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_self_groups/get.py b/frontier_api/paths/v1beta1_users_self_groups/get.py deleted file mode 100644 index f921c55..0000000 --- a/frontier_api/paths/v1beta1_users_self_groups/get.py +++ /dev/null @@ -1,459 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema - - -class WithPermissionsSchema( - schemas.ListSchema -): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'WithPermissionsSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'withPermissions': typing.Union[WithPermissionsSchema, list, tuple, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_with_permissions = api_client.QueryParameter( - name="withPermissions", - style=api_client.ParameterStyle.FORM, - schema=WithPermissionsSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListCurrentUserGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_current_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_current_user_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_current_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_current_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List my groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_with_permissions, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListCurrentUserGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_current_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_current_user_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_current_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_current_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_groups/get.pyi b/frontier_api/paths/v1beta1_users_self_groups/get.pyi deleted file mode 100644 index 625c5e3..0000000 --- a/frontier_api/paths/v1beta1_users_self_groups/get.pyi +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse - -# Query params -OrgIdSchema = schemas.StrSchema - - -class WithPermissionsSchema( - schemas.ListSchema -): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'WithPermissionsSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'withPermissions': typing.Union[WithPermissionsSchema, list, tuple, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_with_permissions = api_client.QueryParameter( - name="withPermissions", - style=api_client.ParameterStyle.FORM, - schema=WithPermissionsSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListCurrentUserGroupsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_current_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_current_user_groups_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_current_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_current_user_groups_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List my groups - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_with_permissions, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListCurrentUserGroups(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_current_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_current_user_groups( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_current_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_current_user_groups( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_groups_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_organizations/__init__.py b/frontier_api/paths/v1beta1_users_self_organizations/__init__.py deleted file mode 100644 index 5856824..0000000 --- a/frontier_api/paths/v1beta1_users_self_organizations/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_self_organizations import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_SELF_ORGANIZATIONS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_self_organizations/get.py b/frontier_api/paths/v1beta1_users_self_organizations/get.py deleted file mode 100644 index a252923..0000000 --- a/frontier_api/paths/v1beta1_users_self_organizations/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationsByCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organizations_by_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organizations_by_current_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organizations_by_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organizations_by_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get my organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationsByCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organizations_by_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organizations_by_current_user( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organizations_by_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organizations_by_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_organizations/get.pyi b/frontier_api/paths/v1beta1_users_self_organizations/get.pyi deleted file mode 100644 index 4b2df26..0000000 --- a/frontier_api/paths/v1beta1_users_self_organizations/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListOrganizationsByCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_organizations_by_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_organizations_by_current_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_organizations_by_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_organizations_by_current_user_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get my organizations - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListOrganizationsByCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_organizations_by_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_organizations_by_current_user( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_organizations_by_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_organizations_by_current_user( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_organizations_by_current_user_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_preferences/__init__.py b/frontier_api/paths/v1beta1_users_self_preferences/__init__.py deleted file mode 100644 index 2f50e39..0000000 --- a/frontier_api/paths/v1beta1_users_self_preferences/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_self_preferences import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_SELF_PREFERENCES \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_self_preferences/get.py b/frontier_api/paths/v1beta1_users_self_preferences/get.py deleted file mode 100644 index 44350cb..0000000 --- a/frontier_api/paths/v1beta1_users_self_preferences/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListCurrentUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_current_user_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_current_user_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_current_user_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_current_user_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List current user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListCurrentUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_current_user_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_current_user_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_current_user_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_current_user_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_preferences/get.pyi b/frontier_api/paths/v1beta1_users_self_preferences/get.pyi deleted file mode 100644 index fd1c1a7..0000000 --- a/frontier_api/paths/v1beta1_users_self_preferences/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1ListCurrentUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_current_user_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_current_user_preferences_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_current_user_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_current_user_preferences_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - List current user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListCurrentUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_current_user_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_current_user_preferences( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_current_user_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_current_user_preferences( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_current_user_preferences_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_preferences/post.py b/frontier_api/paths/v1beta1_users_self_preferences/post.py deleted file mode 100644 index 450d275..0000000 --- a/frontier_api/paths/v1beta1_users_self_preferences/post.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse -from frontier_api.model.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest - -from . import path - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreateCurrentUserPreferencesRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateCurrentUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create current user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateCurrentUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_current_user_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_current_user_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_preferences/post.pyi b/frontier_api/paths/v1beta1_users_self_preferences/post.pyi deleted file mode 100644 index d8d199e..0000000 --- a/frontier_api/paths/v1beta1_users_self_preferences/post.pyi +++ /dev/null @@ -1,458 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse -from frontier_api.model.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest - -# body param -SchemaForRequestBodyApplicationJson = V1beta1CreateCurrentUserPreferencesRequest - - -request_body_body = api_client.RequestBody( - content={ - 'application/json': api_client.MediaType( - schema=SchemaForRequestBodyApplicationJson), - }, - required=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1CreateCurrentUserPreferencesResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_create_current_user_preferences_oapg( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Create current user preferences - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - if body is schemas.unset: - raise exceptions.ApiValueError( - 'The required body parameter has an invalid value of: unset. Set a valid value instead') - _fields = None - _body = None - serialized_data = request_body_body.serialize(body, content_type) - _headers.add('Content-Type', content_type) - if 'fields' in serialized_data: - _fields = serialized_data['fields'] - elif 'body' in serialized_data: - _body = serialized_data['body'] - response = self.api_client.call_api( - resource_path=used_path, - method='post'.upper(), - headers=_headers, - fields=_fields, - body=_body, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceCreateCurrentUserPreferences(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_create_current_user_preferences( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_current_user_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForpost(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: typing_extensions.Literal["application/json"] = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - skip_deserialization: typing_extensions.Literal[True], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = ..., - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def post( - self, - body: typing.Union[SchemaForRequestBodyApplicationJson,], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_create_current_user_preferences_oapg( - body=body, - content_type=content_type, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_projects/__init__.py b/frontier_api/paths/v1beta1_users_self_projects/__init__.py deleted file mode 100644 index 0106de8..0000000 --- a/frontier_api/paths/v1beta1_users_self_projects/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.v1beta1_users_self_projects import Api - -from frontier_api.paths import PathValues - -path = PathValues.V1BETA1_USERS_SELF_PROJECTS \ No newline at end of file diff --git a/frontier_api/paths/v1beta1_users_self_projects/get.py b/frontier_api/paths/v1beta1_users_self_projects/get.py deleted file mode 100644 index ecc6afa..0000000 --- a/frontier_api/paths/v1beta1_users_self_projects/get.py +++ /dev/null @@ -1,459 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse -from frontier_api.model.rpc_status import RpcStatus - -from . import path - -# Query params -OrgIdSchema = schemas.StrSchema - - -class WithPermissionsSchema( - schemas.ListSchema -): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'WithPermissionsSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'withPermissions': typing.Union[WithPermissionsSchema, list, tuple, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_with_permissions = api_client.QueryParameter( - name="withPermissions", - style=api_client.ParameterStyle.FORM, - schema=WithPermissionsSchema, - explode=True, -) -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectsByCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_projects_by_current_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_projects_by_current_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_projects_by_current_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_projects_by_current_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get my projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_with_permissions, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectsByCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_projects_by_current_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_projects_by_current_user( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_projects_by_current_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_projects_by_current_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_current_user_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_current_user_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/v1beta1_users_self_projects/get.pyi b/frontier_api/paths/v1beta1_users_self_projects/get.pyi deleted file mode 100644 index 498fc97..0000000 --- a/frontier_api/paths/v1beta1_users_self_projects/get.pyi +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse -from frontier_api.model.rpc_status import RpcStatus - -# Query params -OrgIdSchema = schemas.StrSchema - - -class WithPermissionsSchema( - schemas.ListSchema -): - - - class MetaOapg: - items = schemas.StrSchema - - def __new__( - cls, - _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, str, ]], typing.List[typing.Union[MetaOapg.items, str, ]]], - _configuration: typing.Optional[schemas.Configuration] = None, - ) -> 'WithPermissionsSchema': - return super().__new__( - cls, - _arg, - _configuration=_configuration, - ) - - def __getitem__(self, i: int) -> MetaOapg.items: - return super().__getitem__(i) -RequestRequiredQueryParams = typing_extensions.TypedDict( - 'RequestRequiredQueryParams', - { - } -) -RequestOptionalQueryParams = typing_extensions.TypedDict( - 'RequestOptionalQueryParams', - { - 'orgId': typing.Union[OrgIdSchema, str, ], - 'withPermissions': typing.Union[WithPermissionsSchema, list, tuple, ], - }, - total=False -) - - -class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams): - pass - - -request_query_org_id = api_client.QueryParameter( - name="orgId", - style=api_client.ParameterStyle.FORM, - schema=OrgIdSchema, - explode=True, -) -request_query_with_permissions = api_client.QueryParameter( - name="withPermissions", - style=api_client.ParameterStyle.FORM, - schema=WithPermissionsSchema, - explode=True, -) -SchemaFor200ResponseBodyApplicationJson = V1beta1ListProjectsByCurrentUserResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_list_projects_by_current_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_list_projects_by_current_user_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_list_projects_by_current_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_list_projects_by_current_user_oapg( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get my projects - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params) - used_path = path.value - - prefix_separator_iterator = None - for parameter in ( - request_query_org_id, - request_query_with_permissions, - ): - parameter_data = query_params.get(parameter.name, schemas.unset) - if parameter_data is schemas.unset: - continue - if prefix_separator_iterator is None: - prefix_separator_iterator = parameter.get_prefix_separator_iterator() - serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator) - for serialized_value in serialized_data.values(): - used_path += serialized_value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceListProjectsByCurrentUser(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_list_projects_by_current_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_list_projects_by_current_user( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_list_projects_by_current_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_list_projects_by_current_user( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_current_user_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_list_projects_by_current_user_oapg( - query_params=query_params, - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/well_known_jwks_json/__init__.py b/frontier_api/paths/well_known_jwks_json/__init__.py deleted file mode 100644 index 54e55d2..0000000 --- a/frontier_api/paths/well_known_jwks_json/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# do not import all endpoints into this module because that uses a lot of memory and stack frames -# if you need the ability to import all endpoints from this module, import them with -# from frontier_api.paths.well_known_jwks_json import Api - -from frontier_api.paths import PathValues - -path = PathValues._WELLKNOWN_JWKS_JSON \ No newline at end of file diff --git a/frontier_api/paths/well_known_jwks_json/get.py b/frontier_api/paths/well_known_jwks_json/get.py deleted file mode 100644 index 0e52f2e..0000000 --- a/frontier_api/paths/well_known_jwks_json/get.py +++ /dev/null @@ -1,374 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse - -from . import path - -_auth = [ - 'Basic', -] -SchemaFor200ResponseBodyApplicationJson = V1beta1GetJWKsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_status_code_to_response = { - '200': _response_for_200, - '400': _response_for_400, - '401': _response_for_401, - '403': _response_for_403, - '404': _response_for_404, - '500': _response_for_500, - 'default': _response_for_default, -} -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_jwks2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_jwks2_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_jwks2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_jwks2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get well known JWKs - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetJwks2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_jwks2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_jwks2( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_jwks2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_jwks2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/frontier_api/paths/well_known_jwks_json/get.pyi b/frontier_api/paths/well_known_jwks_json/get.pyi deleted file mode 100644 index 968c006..0000000 --- a/frontier_api/paths/well_known_jwks_json/get.pyi +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -from dataclasses import dataclass -import typing_extensions -import urllib3 -from urllib3._collections import HTTPHeaderDict - -from frontier_api import api_client, exceptions -from datetime import date, datetime # noqa: F401 -import decimal # noqa: F401 -import functools # noqa: F401 -import io # noqa: F401 -import re # noqa: F401 -import typing # noqa: F401 -import typing_extensions # noqa: F401 -import uuid # noqa: F401 - -import frozendict # noqa: F401 - -from frontier_api import schemas # noqa: F401 - -from frontier_api.model.rpc_status import RpcStatus -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse - -SchemaFor200ResponseBodyApplicationJson = V1beta1GetJWKsResponse - - -@dataclass -class ApiResponseFor200(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor200ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_200 = api_client.OpenApiResponse( - response_cls=ApiResponseFor200, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor200ResponseBodyApplicationJson), - }, -) -SchemaFor400ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor400(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor400ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_400 = api_client.OpenApiResponse( - response_cls=ApiResponseFor400, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor400ResponseBodyApplicationJson), - }, -) -SchemaFor401ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor401(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor401ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_401 = api_client.OpenApiResponse( - response_cls=ApiResponseFor401, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor401ResponseBodyApplicationJson), - }, -) -SchemaFor403ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor403(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor403ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_403 = api_client.OpenApiResponse( - response_cls=ApiResponseFor403, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor403ResponseBodyApplicationJson), - }, -) -SchemaFor404ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor404(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor404ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_404 = api_client.OpenApiResponse( - response_cls=ApiResponseFor404, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor404ResponseBodyApplicationJson), - }, -) -SchemaFor500ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseFor500(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor500ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_500 = api_client.OpenApiResponse( - response_cls=ApiResponseFor500, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor500ResponseBodyApplicationJson), - }, -) -SchemaFor0ResponseBodyApplicationJson = RpcStatus - - -@dataclass -class ApiResponseForDefault(api_client.ApiResponse): - response: urllib3.HTTPResponse - body: typing.Union[ - SchemaFor0ResponseBodyApplicationJson, - ] - headers: schemas.Unset = schemas.unset - - -_response_for_default = api_client.OpenApiResponse( - response_cls=ApiResponseForDefault, - content={ - 'application/json': api_client.MediaType( - schema=SchemaFor0ResponseBodyApplicationJson), - }, -) -_all_accept_content_types = ( - 'application/json', -) - - -class BaseApi(api_client.Api): - @typing.overload - def _frontier_service_get_jwks2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def _frontier_service_get_jwks2_oapg( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def _frontier_service_get_jwks2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def _frontier_service_get_jwks2_oapg( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - """ - Get well known JWKs - :param skip_deserialization: If true then api_response.response will be set but - api_response.body and api_response.headers will not be deserialized into schema - class instances - """ - used_path = path.value - - _headers = HTTPHeaderDict() - # TODO add cookie handling - if accept_content_types: - for accept_content_type in accept_content_types: - _headers.add('Accept', accept_content_type) - - response = self.api_client.call_api( - resource_path=used_path, - method='get'.upper(), - headers=_headers, - auth_settings=_auth, - stream=stream, - timeout=timeout, - ) - - if skip_deserialization: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - else: - response_for_status = _status_code_to_response.get(str(response.status)) - if response_for_status: - api_response = response_for_status.deserialize(response, self.api_client.configuration) - else: - default_response = _status_code_to_response.get('default') - if default_response: - api_response = default_response.deserialize(response, self.api_client.configuration) - else: - api_response = api_client.ApiResponseWithoutDeserialization(response=response) - - if not 200 <= response.status <= 299: - raise exceptions.ApiException( - status=response.status, - reason=response.reason, - api_response=api_response - ) - - return api_response - - -class FrontierServiceGetJwks2(BaseApi): - # this class is used by api classes that refer to endpoints with operationId fn names - - @typing.overload - def frontier_service_get_jwks2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def frontier_service_get_jwks2( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def frontier_service_get_jwks2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def frontier_service_get_jwks2( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - -class ApiForget(BaseApi): - # this class is used by api classes that refer to endpoints by path and http method names - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[False] = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: ... - - @typing.overload - def get( - self, - skip_deserialization: typing_extensions.Literal[True], - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> api_client.ApiResponseWithoutDeserialization: ... - - @typing.overload - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = ..., - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization, - ]: ... - - def get( - self, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ): - return self._frontier_service_get_jwks2_oapg( - accept_content_types=accept_content_types, - stream=stream, - timeout=timeout, - skip_deserialization=skip_deserialization - ) - - diff --git a/test/test_models/__init__.py b/frontier_api/py.typed similarity index 100% rename from test/test_models/__init__.py rename to frontier_api/py.typed diff --git a/frontier_api/rest.py b/frontier_api/rest.py index c674fb2..94fa012 100644 --- a/frontier_api/rest.py +++ b/frontier_api/rest.py @@ -3,35 +3,55 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import logging + +import io +import json +import re import ssl -from urllib.parse import urlencode -import typing -import certifi import urllib3 -from urllib3._collections import HTTPHeaderDict from frontier_api.exceptions import ApiException, ApiValueError +RESTResponseType = urllib3.HTTPResponse + +class RESTResponse(io.IOBase): + + def __init__(self, resp) -> None: + self.response = resp + self.status = resp.status + self.reason = resp.reason + self.data = None + + def read(self): + if self.data is None: + self.data = self.response.data + return self.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.response.headers -logger = logging.getLogger(__name__) + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.response.headers.get(name, default) -class RESTClientObject(object): +class RESTClientObject: - def __init__(self, configuration, pools_size=4, maxsize=None): + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 # cert_reqs @@ -40,16 +60,11 @@ def __init__(self, configuration, pools_size=4, maxsize=None): else: cert_reqs = ssl.CERT_NONE - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + addition_pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) if configuration.retries is not None: addition_pool_args['retries'] = configuration.retries @@ -57,22 +72,15 @@ def __init__(self, configuration, pools_size=4, maxsize=None): if configuration.tls_server_name: addition_pool_args['server_hostname'] = configuration.tls_server_name + if configuration.socket_options is not None: addition_pool_args['socket_options'] = configuration.socket_options - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - # https pool manager if configuration.proxy: self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, cert_reqs=cert_reqs, - ca_certs=ca_certs, + ca_certs=configuration.ssl_ca_cert, cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, @@ -81,10 +89,8 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ) else: self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, cert_reqs=cert_reqs, - ca_certs=ca_certs, + ca_certs=configuration.ssl_ca_cert, cert_file=configuration.cert_file, key_file=configuration.key_file, **addition_pool_args @@ -92,93 +98,117 @@ def __init__(self, configuration, pools_size=4, maxsize=None): def request( self, - method: str, - url: str, - headers: typing.Optional[HTTPHeaderDict] = None, - fields: typing.Optional[typing.Tuple[typing.Tuple[str, typing.Any], ...]] = None, - body: typing.Optional[typing.Union[str, bytes]] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - ) -> urllib3.HTTPResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): """Perform requests. :param method: http request method :param url: http request url :param headers: http request headers - :param body: request body, for other types - :param fields: request parameters for - `application/x-www-form-urlencoded` - or `multipart/form-data` - :param stream: if True, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is False. - :param timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. """ method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if fields and body: + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] + + if post_params and body: raise ApiValueError( - "body parameter cannot be used with fields parameter." + "body parameter cannot be used with post_params parameter." ) - fields = fields or {} + post_params = post_params or {} headers = headers or {} - if timeout: - if isinstance(timeout, (int, float)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=timeout) - elif (isinstance(timeout, tuple) and - len(timeout) == 2): - timeout = urllib3.Timeout(connect=timeout[0], read=timeout[1]) + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): + timeout = urllib3.Timeout(total=_request_timeout) + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): + timeout = urllib3.Timeout( + connect=_request_timeout[0], + read=_request_timeout[1] + ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if 'Content-Type' not in headers and body is None: + + # no content type provided or payload is json + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): + request_body = None + if body is not None: + request_body = json.dumps(body) r = self.pool_manager.request( method, url, - preload_content=not stream, + body=request_body, timeout=timeout, - headers=headers + headers=headers, + preload_content=False ) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + elif content_type == 'application/x-www-form-urlencoded': r = self.pool_manager.request( - method, url, - body=body, - fields=fields, + method, + url, + fields=post_params, encode_multipart=False, - preload_content=not stream, timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': + headers=headers, + preload_content=False + ) + elif content_type == 'multipart/form-data': # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. del headers['Content-Type'] r = self.pool_manager.request( - method, url, - fields=fields, + method, + url, + fields=post_params, encode_multipart=True, - preload_content=not stream, timeout=timeout, - headers=headers) + headers=headers, + preload_content=False + ) # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( - method, url, + method, + url, body=request_body, - preload_content=not stream, timeout=timeout, - headers=headers) + headers=headers, + preload_content=False + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -187,72 +217,16 @@ def request( raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: - r = self.pool_manager.request(method, url, - preload_content=not stream, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, + url, + fields={}, + timeout=timeout, + headers=headers, + preload_content=False + ) except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) + msg = "\n".join([type(e).__name__, str(e)]) raise ApiException(status=0, reason=msg) - if not stream: - # log response body - logger.debug("response body: %s", r.data) - - return r - - def GET(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("GET", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def HEAD(self, url, headers=None, stream=False, - timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("HEAD", url, - headers=headers, - stream=stream, - timeout=timeout, - fields=fields) - - def OPTIONS(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("OPTIONS", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def DELETE(self, url, headers=None, body=None, - stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("DELETE", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def POST(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("POST", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PUT(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PUT", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) - - def PATCH(self, url, headers=None, - body=None, stream=False, timeout=None, fields=None) -> urllib3.HTTPResponse: - return self.request("PATCH", url, - headers=headers, - stream=stream, - timeout=timeout, - body=body, fields=fields) + return RESTResponse(r) diff --git a/frontier_api/schemas.py b/frontier_api/schemas.py deleted file mode 100644 index a46dd5e..0000000 --- a/frontier_api/schemas.py +++ /dev/null @@ -1,2476 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -from collections import defaultdict -from datetime import date, datetime, timedelta # noqa: F401 -import functools -import decimal -import io -import re -import types -import typing -import uuid - -from dateutil.parser.isoparser import isoparser, _takes_ascii -import frozendict - -from frontier_api.exceptions import ( - ApiTypeError, - ApiValueError, -) -from frontier_api.configuration import ( - Configuration, -) - - -class Unset(object): - """ - An instance of this class is set as the default value for object type(dict) properties that are optional - When a property has an unset value, that property will not be assigned in the dict - """ - pass - -unset = Unset() - -none_type = type(None) -file_type = io.IOBase - - -class FileIO(io.FileIO): - """ - A class for storing files - Note: this class is not immutable - """ - - def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader]): - if isinstance(_arg, (io.FileIO, io.BufferedReader)): - if _arg.closed: - raise ApiValueError('Invalid file state; file is closed and must be open') - _arg.close() - inst = super(FileIO, cls).__new__(cls, _arg.name) - super(FileIO, inst).__init__(_arg.name) - return inst - raise ApiValueError('FileIO must be passed _arg which contains the open file') - - def __init__(self, _arg: typing.Union[io.FileIO, io.BufferedReader]): - pass - - -def update(d: dict, u: dict): - """ - Adds u to d - Where each dict is defaultdict(set) - """ - if not u: - return d - for k, v in u.items(): - if k not in d: - d[k] = v - else: - d[k] = d[k] | v - - -class ValidationMetadata(frozendict.frozendict): - """ - A class storing metadata that is needed to validate OpenApi Schema payloads - """ - def __new__( - cls, - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), - from_server: bool = False, - configuration: typing.Optional[Configuration] = None, - seen_classes: typing.FrozenSet[typing.Type] = frozenset(), - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]] = frozendict.frozendict() - ): - """ - Args: - path_to_item: the path to the current data being instantiated. - For {'a': [1]} if the code is handling, 1, then the path is ('args[0]', 'a', 0) - This changes from location to location - from_server: whether or not this data came form the server - True when receiving server data - False when instantiating model with client side data not form the server - This does not change from location to location - configuration: the Configuration instance to use - This is needed because in Configuration: - - one can disable validation checking - This does not change from location to location - seen_classes: when deserializing data that matches multiple schemas, this is used to store - the schemas that have been traversed. This is used to stop processing when a cycle is seen. - This changes from location to location - validated_path_to_schemas: stores the already validated schema classes for a given path location - This does not change from location to location - """ - return super().__new__( - cls, - path_to_item=path_to_item, - from_server=from_server, - configuration=configuration, - seen_classes=seen_classes, - validated_path_to_schemas=validated_path_to_schemas - ) - - def validation_ran_earlier(self, cls: type) -> bool: - validated_schemas = self.validated_path_to_schemas.get(self.path_to_item, set()) - validation_ran_earlier = validated_schemas and cls in validated_schemas - if validation_ran_earlier: - return True - if cls in self.seen_classes: - return True - return False - - @property - def path_to_item(self) -> typing.Tuple[typing.Union[str, int], ...]: - return self.get('path_to_item') - - @property - def from_server(self) -> bool: - return self.get('from_server') - - @property - def configuration(self) -> typing.Optional[Configuration]: - return self.get('configuration') - - @property - def seen_classes(self) -> typing.FrozenSet[typing.Type]: - return self.get('seen_classes') - - @property - def validated_path_to_schemas(self) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Type]]: - return self.get('validated_path_to_schemas') - - -def add_deeper_validated_schemas(validation_metadata: ValidationMetadata, path_to_schemas: dict): - # this is called if validation_ran_earlier and current and deeper locations need to be added - current_path_to_item = validation_metadata.path_to_item - other_path_to_schemas = {} - for path_to_item, schemas in validation_metadata.validated_path_to_schemas.items(): - if len(path_to_item) < len(current_path_to_item): - continue - path_begins_with_current_path = path_to_item[:len(current_path_to_item)] == current_path_to_item - if path_begins_with_current_path: - other_path_to_schemas[path_to_item] = schemas - update(path_to_schemas, other_path_to_schemas) - - -class Singleton: - """ - Enums and singletons are the same - The same instance is returned for a given key of (cls, _arg) - """ - _instances = {} - - def __new__(cls, _arg: typing.Any, **kwargs): - """ - cls base classes: BoolClass, NoneClass, str, decimal.Decimal - The 3rd key is used in the tuple below for a corner case where an enum contains integer 1 - However 1.0 can also be ingested into that enum schema because 1.0 == 1 and - Decimal('1.0') == Decimal('1') - But if we omitted the 3rd value in the key, then Decimal('1.0') would be stored as Decimal('1') - and json serializing that instance would be '1' rather than the expected '1.0' - Adding the 3rd value, the str of _arg ensures that 1.0 -> Decimal('1.0') which is serialized as 1.0 - """ - key = (cls, _arg, str(_arg)) - if key not in cls._instances: - if isinstance(_arg, (none_type, bool, BoolClass, NoneClass)): - inst = super().__new__(cls) - cls._instances[key] = inst - else: - cls._instances[key] = super().__new__(cls, _arg) - return cls._instances[key] - - def __repr__(self): - if isinstance(self, NoneClass): - return f'<{self.__class__.__name__}: None>' - elif isinstance(self, BoolClass): - if bool(self): - return f'<{self.__class__.__name__}: True>' - return f'<{self.__class__.__name__}: False>' - return f'<{self.__class__.__name__}: {super().__repr__()}>' - - -class classproperty: - - def __init__(self, fget): - self.fget = fget - - def __get__(self, owner_self, owner_cls): - return self.fget(owner_cls) - - -class NoneClass(Singleton): - @classproperty - def NONE(cls): - return cls(None) - - def __bool__(self) -> bool: - return False - - -class BoolClass(Singleton): - @classproperty - def TRUE(cls): - return cls(True) - - @classproperty - def FALSE(cls): - return cls(False) - - @functools.lru_cache() - def __bool__(self) -> bool: - for key, instance in self._instances.items(): - if self is instance: - return bool(key[1]) - raise ValueError('Unable to find the boolean value of this instance') - - -class MetaOapgTyped: - exclusive_maximum: typing.Union[int, float] - inclusive_maximum: typing.Union[int, float] - exclusive_minimum: typing.Union[int, float] - inclusive_minimum: typing.Union[int, float] - max_items: int - min_items: int - discriminator: typing.Dict[str, typing.Dict[str, typing.Type['Schema']]] - - - class properties: - # to hold object properties - pass - - additional_properties: typing.Optional[typing.Type['Schema']] - max_properties: int - min_properties: int - all_of: typing.List[typing.Type['Schema']] - one_of: typing.List[typing.Type['Schema']] - any_of: typing.List[typing.Type['Schema']] - not_schema: typing.Type['Schema'] - max_length: int - min_length: int - items: typing.Type['Schema'] - - -class Schema: - """ - the base class of all swagger/openapi schemas/models - """ - __inheritable_primitive_types_set = {decimal.Decimal, str, tuple, frozendict.frozendict, FileIO, bytes, BoolClass, NoneClass} - _types: typing.Set[typing.Type] - MetaOapg = MetaOapgTyped - - @staticmethod - def __get_valid_classes_phrase(input_classes): - """Returns a string phrase describing what types are allowed""" - all_classes = list(input_classes) - all_classes = sorted(all_classes, key=lambda cls: cls.__name__) - all_class_names = [cls.__name__ for cls in all_classes] - if len(all_class_names) == 1: - return "is {0}".format(all_class_names[0]) - return "is one of [{0}]".format(", ".join(all_class_names)) - - @staticmethod - def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']: - if isinstance(item_cls, types.FunctionType): - # referenced schema - return item_cls() - elif isinstance(item_cls, staticmethod): - # referenced schema - return item_cls.__func__() - return item_cls - - @classmethod - def __type_error_message( - cls, var_value=None, var_name=None, valid_classes=None, key_type=None - ): - """ - Keyword Args: - var_value (any): the variable which has the type_error - var_name (str): the name of the variable which has the typ error - valid_classes (tuple): the accepted classes for current_item's - value - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a tuple - """ - key_or_value = "value" - if key_type: - key_or_value = "key" - valid_classes_phrase = cls.__get_valid_classes_phrase(valid_classes) - msg = "Invalid type. Required {1} type {2} and " "passed type was {3}".format( - var_name, - key_or_value, - valid_classes_phrase, - type(var_value).__name__, - ) - return msg - - @classmethod - def __get_type_error(cls, var_value, path_to_item, valid_classes, key_type=False): - error_msg = cls.__type_error_message( - var_name=path_to_item[-1], - var_value=var_value, - valid_classes=valid_classes, - key_type=key_type, - ) - return ApiTypeError( - error_msg, - path_to_item=path_to_item, - valid_classes=valid_classes, - key_type=key_type, - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - Schema _validate_oapg - All keyword validation except for type checking was done in calling stack frames - If those validations passed, the validated classes are collected in path_to_schemas - - Returns: - path_to_schemas: a map of path to schemas - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - base_class = type(arg) - if base_class not in cls._types: - raise cls.__get_type_error( - arg, - validation_metadata.path_to_item, - cls._types, - key_type=False, - ) - - path_to_schemas = {validation_metadata.path_to_item: set()} - path_to_schemas[validation_metadata.path_to_item].add(cls) - path_to_schemas[validation_metadata.path_to_item].add(base_class) - return path_to_schemas - - @staticmethod - def _process_schema_classes_oapg( - schema_classes: typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]] - ): - """ - Processes and mutates schema_classes - If a SomeSchema is a subclass of DictSchema then remove DictSchema because it is already included - """ - if len(schema_classes) < 2: - return - if len(schema_classes) > 2 and UnsetAnyTypeSchema in schema_classes: - schema_classes.remove(UnsetAnyTypeSchema) - x_schema = schema_type_classes & schema_classes - if not x_schema: - return - x_schema = x_schema.pop() - if any(c is not x_schema and issubclass(c, x_schema) for c in schema_classes): - # needed to not have a mro error in get_new_class - schema_classes.remove(x_schema) - - @classmethod - def __get_new_cls( - cls, - arg, - validation_metadata: ValidationMetadata - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']]: - """ - Make a new dynamic class and return an instance of that class - We are making an instance of cls, but instead of making cls - make a new class, new_cls - which includes dynamic bases including cls - return an instance of that new class - - Dict property + List Item Assignment Use cases: - 1. value is NOT an instance of the required schema class - the value is validated by _validate_oapg - _validate_oapg returns a key value pair - where the key is the path to the item, and the value will be the required manufactured class - made out of the matching schemas - 2. value is an instance of the correct schema type - the value is NOT validated by _validate_oapg, _validate_oapg only checks that the instance is of the correct schema type - for this value, _validate_oapg does NOT return an entry for it in _path_to_schemas - and in list/dict _get_items_oapg,_get_properties_oapg the value will be directly assigned - because value is of the correct type, and validation was run earlier when the instance was created - """ - _path_to_schemas = {} - if validation_metadata.validation_ran_earlier(cls): - add_deeper_validated_schemas(validation_metadata, _path_to_schemas) - else: - other_path_to_schemas = cls._validate_oapg(arg, validation_metadata=validation_metadata) - update(_path_to_schemas, other_path_to_schemas) - # loop through it make a new class for each entry - # do not modify the returned result because it is cached and we would be modifying the cached value - path_to_schemas = {} - for path, schema_classes in _path_to_schemas.items(): - """ - Use cases - 1. N number of schema classes + enum + type != bool/None, classes in path_to_schemas: tuple/frozendict.frozendict/str/Decimal/bytes/FileIo - needs Singleton added - 2. N number of schema classes + enum + type == bool/None, classes in path_to_schemas: BoolClass/NoneClass - Singleton already added - 3. N number of schema classes, classes in path_to_schemas: BoolClass/NoneClass/tuple/frozendict.frozendict/str/Decimal/bytes/FileIo - """ - cls._process_schema_classes_oapg(schema_classes) - enum_schema = any( - issubclass(this_cls, EnumBase) for this_cls in schema_classes) - inheritable_primitive_type = schema_classes.intersection(cls.__inheritable_primitive_types_set) - chosen_schema_classes = schema_classes - inheritable_primitive_type - suffix = tuple(inheritable_primitive_type) - if enum_schema and suffix[0] not in {NoneClass, BoolClass}: - suffix = (Singleton,) + suffix - - used_classes = tuple(sorted(chosen_schema_classes, key=lambda a_cls: a_cls.__name__)) + suffix - mfg_cls = get_new_class(class_name='DynamicSchema', bases=used_classes) - path_to_schemas[path] = mfg_cls - - return path_to_schemas - - @classmethod - def _get_new_instance_without_conversion_oapg( - cls, - arg: typing.Any, - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] - ): - # We have a Dynamic class and we are making an instance of it - if issubclass(cls, frozendict.frozendict) and issubclass(cls, DictBase): - properties = cls._get_properties_oapg(arg, path_to_item, path_to_schemas) - return super(Schema, cls).__new__(cls, properties) - elif issubclass(cls, tuple) and issubclass(cls, ListBase): - items = cls._get_items_oapg(arg, path_to_item, path_to_schemas) - return super(Schema, cls).__new__(cls, items) - """ - str = openapi str, date, and datetime - decimal.Decimal = openapi int and float - FileIO = openapi binary type and the user inputs a file - bytes = openapi binary type and the user inputs bytes - """ - return super(Schema, cls).__new__(cls, arg) - - @classmethod - def from_openapi_data_oapg( - cls, - arg: typing.Union[ - str, - date, - datetime, - int, - float, - decimal.Decimal, - bool, - None, - 'Schema', - dict, - frozendict.frozendict, - tuple, - list, - io.FileIO, - io.BufferedReader, - bytes - ], - _configuration: typing.Optional[Configuration] - ): - """ - Schema from_openapi_data_oapg - """ - from_server = True - validated_path_to_schemas = {} - arg = cast_to_allowed_types(arg, from_server, validated_path_to_schemas) - validation_metadata = ValidationMetadata( - from_server=from_server, configuration=_configuration, validated_path_to_schemas=validated_path_to_schemas) - path_to_schemas = cls.__get_new_cls(arg, validation_metadata) - new_cls = path_to_schemas[validation_metadata.path_to_item] - new_inst = new_cls._get_new_instance_without_conversion_oapg( - arg, - validation_metadata.path_to_item, - path_to_schemas - ) - return new_inst - - @staticmethod - def __get_input_dict(*args, **kwargs) -> frozendict.frozendict: - input_dict = {} - if args and isinstance(args[0], (dict, frozendict.frozendict)): - input_dict.update(args[0]) - if kwargs: - input_dict.update(kwargs) - return frozendict.frozendict(input_dict) - - @staticmethod - def __remove_unsets(kwargs): - return {key: val for key, val in kwargs.items() if val is not unset} - - def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], _configuration: typing.Optional[Configuration] = None, **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset]): - """ - Schema __new__ - - Args: - _args (int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): the value - kwargs (str, int/float/decimal.Decimal/str/list/tuple/dict/frozendict.frozendict/bool/None): dict values - _configuration: contains the Configuration that enables json schema validation keywords - like minItems, minLength etc - - Note: double underscores are used here because pycharm thinks that these variables - are instance properties if they are named normally :( - """ - __kwargs = cls.__remove_unsets(kwargs) - if not _args and not __kwargs: - raise TypeError( - 'No input given. args or kwargs must be given.' - ) - if not __kwargs and _args and not isinstance(_args[0], dict): - __arg = _args[0] - else: - __arg = cls.__get_input_dict(*_args, **__kwargs) - __from_server = False - __validated_path_to_schemas = {} - __arg = cast_to_allowed_types( - __arg, __from_server, __validated_path_to_schemas) - __validation_metadata = ValidationMetadata( - configuration=_configuration, from_server=__from_server, validated_path_to_schemas=__validated_path_to_schemas) - __path_to_schemas = cls.__get_new_cls(__arg, __validation_metadata) - __new_cls = __path_to_schemas[__validation_metadata.path_to_item] - return __new_cls._get_new_instance_without_conversion_oapg( - __arg, - __validation_metadata.path_to_item, - __path_to_schemas - ) - - def __init__( - self, - *_args: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema'], - _configuration: typing.Optional[Configuration] = None, - **kwargs: typing.Union[ - dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, 'Schema', Unset - ] - ): - """ - this is needed to fix 'Unexpected argument' warning in pycharm - this code does nothing because all Schema instances are immutable - this means that all input data is passed into and used in new, and after the new instance is made - no new attributes are assigned and init is not used - """ - pass - -""" -import itertools -data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') -type_to_cls = { - 'None': 'NoneClass', - 'FrozenDict': 'frozendict.frozendict', - 'Tuple': 'tuple', - 'Str': 'str', - 'Decimal': 'decimal.Decimal', - 'Bool': 'BoolClass' -} -cls_tuples = [v for v in itertools.combinations(data_types, 5)] -typed_classes = [f"class {''.join(cls_tuple)}Mixin({', '.join(type_to_cls[typ] for typ in cls_tuple)}):\n pass" for cls_tuple in cls_tuples] -for cls in typed_classes: - print(cls) -object_classes = [f"{''.join(cls_tuple)}Mixin = object" for cls_tuple in cls_tuples] -for cls in object_classes: - print(cls) -""" -if typing.TYPE_CHECKING: - # qty 1 - NoneMixin = NoneClass - FrozenDictMixin = frozendict.frozendict - TupleMixin = tuple - StrMixin = str - DecimalMixin = decimal.Decimal - BoolMixin = BoolClass - BytesMixin = bytes - FileMixin = FileIO - # qty 2 - class BinaryMixin(bytes, FileIO): - pass - class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): - pass - class NoneTupleMixin(NoneClass, tuple): - pass - class NoneStrMixin(NoneClass, str): - pass - class NoneDecimalMixin(NoneClass, decimal.Decimal): - pass - class NoneBoolMixin(NoneClass, BoolClass): - pass - class FrozenDictTupleMixin(frozendict.frozendict, tuple): - pass - class FrozenDictStrMixin(frozendict.frozendict, str): - pass - class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): - pass - class FrozenDictBoolMixin(frozendict.frozendict, BoolClass): - pass - class TupleStrMixin(tuple, str): - pass - class TupleDecimalMixin(tuple, decimal.Decimal): - pass - class TupleBoolMixin(tuple, BoolClass): - pass - class StrDecimalMixin(str, decimal.Decimal): - pass - class StrBoolMixin(str, BoolClass): - pass - class DecimalBoolMixin(decimal.Decimal, BoolClass): - pass - # qty 3 - class NoneFrozenDictTupleMixin(NoneClass, frozendict.frozendict, tuple): - pass - class NoneFrozenDictStrMixin(NoneClass, frozendict.frozendict, str): - pass - class NoneFrozenDictDecimalMixin(NoneClass, frozendict.frozendict, decimal.Decimal): - pass - class NoneFrozenDictBoolMixin(NoneClass, frozendict.frozendict, BoolClass): - pass - class NoneTupleStrMixin(NoneClass, tuple, str): - pass - class NoneTupleDecimalMixin(NoneClass, tuple, decimal.Decimal): - pass - class NoneTupleBoolMixin(NoneClass, tuple, BoolClass): - pass - class NoneStrDecimalMixin(NoneClass, str, decimal.Decimal): - pass - class NoneStrBoolMixin(NoneClass, str, BoolClass): - pass - class NoneDecimalBoolMixin(NoneClass, decimal.Decimal, BoolClass): - pass - class FrozenDictTupleStrMixin(frozendict.frozendict, tuple, str): - pass - class FrozenDictTupleDecimalMixin(frozendict.frozendict, tuple, decimal.Decimal): - pass - class FrozenDictTupleBoolMixin(frozendict.frozendict, tuple, BoolClass): - pass - class FrozenDictStrDecimalMixin(frozendict.frozendict, str, decimal.Decimal): - pass - class FrozenDictStrBoolMixin(frozendict.frozendict, str, BoolClass): - pass - class FrozenDictDecimalBoolMixin(frozendict.frozendict, decimal.Decimal, BoolClass): - pass - class TupleStrDecimalMixin(tuple, str, decimal.Decimal): - pass - class TupleStrBoolMixin(tuple, str, BoolClass): - pass - class TupleDecimalBoolMixin(tuple, decimal.Decimal, BoolClass): - pass - class StrDecimalBoolMixin(str, decimal.Decimal, BoolClass): - pass - # qty 4 - class NoneFrozenDictTupleStrMixin(NoneClass, frozendict.frozendict, tuple, str): - pass - class NoneFrozenDictTupleDecimalMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal): - pass - class NoneFrozenDictTupleBoolMixin(NoneClass, frozendict.frozendict, tuple, BoolClass): - pass - class NoneFrozenDictStrDecimalMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal): - pass - class NoneFrozenDictStrBoolMixin(NoneClass, frozendict.frozendict, str, BoolClass): - pass - class NoneFrozenDictDecimalBoolMixin(NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass): - pass - class NoneTupleStrDecimalMixin(NoneClass, tuple, str, decimal.Decimal): - pass - class NoneTupleStrBoolMixin(NoneClass, tuple, str, BoolClass): - pass - class NoneTupleDecimalBoolMixin(NoneClass, tuple, decimal.Decimal, BoolClass): - pass - class NoneStrDecimalBoolMixin(NoneClass, str, decimal.Decimal, BoolClass): - pass - class FrozenDictTupleStrDecimalMixin(frozendict.frozendict, tuple, str, decimal.Decimal): - pass - class FrozenDictTupleStrBoolMixin(frozendict.frozendict, tuple, str, BoolClass): - pass - class FrozenDictTupleDecimalBoolMixin(frozendict.frozendict, tuple, decimal.Decimal, BoolClass): - pass - class FrozenDictStrDecimalBoolMixin(frozendict.frozendict, str, decimal.Decimal, BoolClass): - pass - class TupleStrDecimalBoolMixin(tuple, str, decimal.Decimal, BoolClass): - pass - # qty 5 - class NoneFrozenDictTupleStrDecimalMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal): - pass - class NoneFrozenDictTupleStrBoolMixin(NoneClass, frozendict.frozendict, tuple, str, BoolClass): - pass - class NoneFrozenDictTupleDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass): - pass - class NoneFrozenDictStrDecimalBoolMixin(NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass): - pass - class NoneTupleStrDecimalBoolMixin(NoneClass, tuple, str, decimal.Decimal, BoolClass): - pass - class FrozenDictTupleStrDecimalBoolMixin(frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): - pass - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass): - pass - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes): - pass -else: - # qty 1 - class NoneMixin: - _types = {NoneClass} - class FrozenDictMixin: - _types = {frozendict.frozendict} - class TupleMixin: - _types = {tuple} - class StrMixin: - _types = {str} - class DecimalMixin: - _types = {decimal.Decimal} - class BoolMixin: - _types = {BoolClass} - class BytesMixin: - _types = {bytes} - class FileMixin: - _types = {FileIO} - # qty 2 - class BinaryMixin: - _types = {bytes, FileIO} - class NoneFrozenDictMixin: - _types = {NoneClass, frozendict.frozendict} - class NoneTupleMixin: - _types = {NoneClass, tuple} - class NoneStrMixin: - _types = {NoneClass, str} - class NoneDecimalMixin: - _types = {NoneClass, decimal.Decimal} - class NoneBoolMixin: - _types = {NoneClass, BoolClass} - class FrozenDictTupleMixin: - _types = {frozendict.frozendict, tuple} - class FrozenDictStrMixin: - _types = {frozendict.frozendict, str} - class FrozenDictDecimalMixin: - _types = {frozendict.frozendict, decimal.Decimal} - class FrozenDictBoolMixin: - _types = {frozendict.frozendict, BoolClass} - class TupleStrMixin: - _types = {tuple, str} - class TupleDecimalMixin: - _types = {tuple, decimal.Decimal} - class TupleBoolMixin: - _types = {tuple, BoolClass} - class StrDecimalMixin: - _types = {str, decimal.Decimal} - class StrBoolMixin: - _types = {str, BoolClass} - class DecimalBoolMixin: - _types = {decimal.Decimal, BoolClass} - # qty 3 - class NoneFrozenDictTupleMixin: - _types = {NoneClass, frozendict.frozendict, tuple} - class NoneFrozenDictStrMixin: - _types = {NoneClass, frozendict.frozendict, str} - class NoneFrozenDictDecimalMixin: - _types = {NoneClass, frozendict.frozendict, decimal.Decimal} - class NoneFrozenDictBoolMixin: - _types = {NoneClass, frozendict.frozendict, BoolClass} - class NoneTupleStrMixin: - _types = {NoneClass, tuple, str} - class NoneTupleDecimalMixin: - _types = {NoneClass, tuple, decimal.Decimal} - class NoneTupleBoolMixin: - _types = {NoneClass, tuple, BoolClass} - class NoneStrDecimalMixin: - _types = {NoneClass, str, decimal.Decimal} - class NoneStrBoolMixin: - _types = {NoneClass, str, BoolClass} - class NoneDecimalBoolMixin: - _types = {NoneClass, decimal.Decimal, BoolClass} - class FrozenDictTupleStrMixin: - _types = {frozendict.frozendict, tuple, str} - class FrozenDictTupleDecimalMixin: - _types = {frozendict.frozendict, tuple, decimal.Decimal} - class FrozenDictTupleBoolMixin: - _types = {frozendict.frozendict, tuple, BoolClass} - class FrozenDictStrDecimalMixin: - _types = {frozendict.frozendict, str, decimal.Decimal} - class FrozenDictStrBoolMixin: - _types = {frozendict.frozendict, str, BoolClass} - class FrozenDictDecimalBoolMixin: - _types = {frozendict.frozendict, decimal.Decimal, BoolClass} - class TupleStrDecimalMixin: - _types = {tuple, str, decimal.Decimal} - class TupleStrBoolMixin: - _types = {tuple, str, BoolClass} - class TupleDecimalBoolMixin: - _types = {tuple, decimal.Decimal, BoolClass} - class StrDecimalBoolMixin: - _types = {str, decimal.Decimal, BoolClass} - # qty 4 - class NoneFrozenDictTupleStrMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str} - class NoneFrozenDictTupleDecimalMixin: - _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal} - class NoneFrozenDictTupleBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, BoolClass} - class NoneFrozenDictStrDecimalMixin: - _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal} - class NoneFrozenDictStrBoolMixin: - _types = {NoneClass, frozendict.frozendict, str, BoolClass} - class NoneFrozenDictDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalMixin: - _types = {NoneClass, tuple, str, decimal.Decimal} - class NoneTupleStrBoolMixin: - _types = {NoneClass, tuple, str, BoolClass} - class NoneTupleDecimalBoolMixin: - _types = {NoneClass, tuple, decimal.Decimal, BoolClass} - class NoneStrDecimalBoolMixin: - _types = {NoneClass, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalMixin: - _types = {frozendict.frozendict, tuple, str, decimal.Decimal} - class FrozenDictTupleStrBoolMixin: - _types = {frozendict.frozendict, tuple, str, BoolClass} - class FrozenDictTupleDecimalBoolMixin: - _types = {frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class FrozenDictStrDecimalBoolMixin: - _types = {frozendict.frozendict, str, decimal.Decimal, BoolClass} - class TupleStrDecimalBoolMixin: - _types = {tuple, str, decimal.Decimal, BoolClass} - # qty 5 - class NoneFrozenDictTupleStrDecimalMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal} - class NoneFrozenDictTupleStrBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, BoolClass} - class NoneFrozenDictTupleDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, decimal.Decimal, BoolClass} - class NoneFrozenDictStrDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, str, decimal.Decimal, BoolClass} - class NoneTupleStrDecimalBoolMixin: - _types = {NoneClass, tuple, str, decimal.Decimal, BoolClass} - class FrozenDictTupleStrDecimalBoolMixin: - _types = {frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 6 - class NoneFrozenDictTupleStrDecimalBoolMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass} - # qty 8 - class NoneFrozenDictTupleStrDecimalBoolFileBytesMixin: - _types = {NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, BoolClass, FileIO, bytes} - - -class ValidatorBase: - @staticmethod - def _is_json_validation_enabled_oapg(schema_keyword, configuration=None): - """Returns true if JSON schema validation is enabled for the specified - validation keyword. This can be used to skip JSON schema structural validation - as requested in the configuration. - Note: the suffix _oapg stands for openapi python (experimental) generator and - it has been added to prevent collisions with other methods and properties - - Args: - schema_keyword (string): the name of a JSON schema validation keyword. - configuration (Configuration): the configuration class. - """ - - return (configuration is None or - not hasattr(configuration, '_disabled_client_side_validations') or - schema_keyword not in configuration._disabled_client_side_validations) - - @staticmethod - def _raise_validation_error_message_oapg(value, constraint_msg, constraint_value, path_to_item, additional_txt=""): - raise ApiValueError( - "Invalid value `{value}`, {constraint_msg} `{constraint_value}`{additional_txt} at {path_to_item}".format( - value=value, - constraint_msg=constraint_msg, - constraint_value=constraint_value, - additional_txt=additional_txt, - path_to_item=path_to_item, - ) - ) - - -class EnumBase: - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - EnumBase _validate_oapg - Validates that arg is in the enum's allowed values - """ - try: - cls.MetaOapg.enum_value_to_name[arg] - except KeyError: - raise ApiValueError("Invalid value {} passed in to {}, allowed_values={}".format(arg, cls, cls.MetaOapg.enum_value_to_name.keys())) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class BoolBase: - def is_true_oapg(self) -> bool: - """ - A replacement for x is True - True if the instance is a BoolClass True Singleton - """ - if not issubclass(self.__class__, BoolClass): - return False - return bool(self) - - def is_false_oapg(self) -> bool: - """ - A replacement for x is False - True if the instance is a BoolClass False Singleton - """ - if not issubclass(self.__class__, BoolClass): - return False - return bool(self) is False - - -class NoneBase: - def is_none_oapg(self) -> bool: - """ - A replacement for x is None - True if the instance is a NoneClass None Singleton - """ - if issubclass(self.__class__, NoneClass): - return True - return False - - -class StrBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @property - def as_str_oapg(self) -> str: - return self - - @property - def as_date_oapg(self) -> date: - raise Exception('not implemented') - - @property - def as_datetime_oapg(self) -> datetime: - raise Exception('not implemented') - - @property - def as_decimal_oapg(self) -> decimal.Decimal: - raise Exception('not implemented') - - @property - def as_uuid_oapg(self) -> uuid.UUID: - raise Exception('not implemented') - - @classmethod - def __check_str_validations( - cls, - arg: str, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): - return - if (cls._is_json_validation_enabled_oapg('maxLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_length') and - len(arg) > cls.MetaOapg.max_length): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="length must be less than or equal to", - constraint_value=cls.MetaOapg.max_length, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minLength', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_length') and - len(arg) < cls.MetaOapg.min_length): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="length must be greater than or equal to", - constraint_value=cls.MetaOapg.min_length, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('pattern', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'regex')): - for regex_dict in cls.MetaOapg.regex: - flags = regex_dict.get('flags', 0) - if not re.search(regex_dict['pattern'], arg, flags=flags): - if flags != 0: - # Don't print the regex flags if the flags are not - # specified in the OAS document. - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], - path_to_item=validation_metadata.path_to_item, - additional_txt=" with flags=`{}`".format(flags) - ) - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must match regular expression", - constraint_value=regex_dict['pattern'], - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - StrBase _validate_oapg - Validates that validations pass - """ - if isinstance(arg, str): - cls.__check_str_validations(arg, validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class UUIDBase: - @property - @functools.lru_cache() - def as_uuid_oapg(self) -> uuid.UUID: - return uuid.UUID(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - uuid.UUID(arg) - return True - except ValueError: - raise ApiValueError( - "Invalid value '{}' for type UUID at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: typing.Optional[ValidationMetadata] = None, - ): - """ - UUIDBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class CustomIsoparser(isoparser): - - @_takes_ascii - def parse_isodatetime(self, dt_str): - components, pos = self._parse_isodate(dt_str) - if len(dt_str) > pos: - if self._sep is None or dt_str[pos:pos + 1] == self._sep: - components += self._parse_isotime(dt_str[pos + 1:]) - else: - raise ValueError('String contains unknown ISO components') - - if len(components) > 3 and components[3] == 24: - components[3] = 0 - return datetime(*components) + timedelta(days=1) - - if len(components) <= 3: - raise ValueError('Value is not a datetime') - - return datetime(*components) - - @_takes_ascii - def parse_isodate(self, datestr): - components, pos = self._parse_isodate(datestr) - - if len(datestr) > pos: - raise ValueError('String contains invalid time components') - - if len(components) > 3: - raise ValueError('String contains invalid time components') - - return date(*components) - - -DEFAULT_ISOPARSER = CustomIsoparser() - - -class DateBase: - @property - @functools.lru_cache() - def as_date_oapg(self) -> date: - return DEFAULT_ISOPARSER.parse_isodate(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - DEFAULT_ISOPARSER.parse_isodate(arg) - return True - except ValueError: - raise ApiValueError( - "Value does not conform to the required ISO-8601 date format. " - "Invalid value '{}' for type date at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: typing.Optional[ValidationMetadata] = None, - ): - """ - DateBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class DateTimeBase: - @property - @functools.lru_cache() - def as_datetime_oapg(self) -> datetime: - return DEFAULT_ISOPARSER.parse_isodatetime(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - DEFAULT_ISOPARSER.parse_isodatetime(arg) - return True - except ValueError: - raise ApiValueError( - "Value does not conform to the required ISO-8601 datetime format. " - "Invalid value '{}' for type datetime at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DateTimeBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class DecimalBase: - """ - A class for storing decimals that are sent over the wire as strings - These schemas must remain based on StrBase rather than NumberBase - because picking base classes must be deterministic - """ - - @property - @functools.lru_cache() - def as_decimal_oapg(self) -> decimal.Decimal: - return decimal.Decimal(self) - - @classmethod - def __validate_format(cls, arg: typing.Optional[str], validation_metadata: ValidationMetadata): - if isinstance(arg, str): - try: - decimal.Decimal(arg) - return True - except decimal.InvalidOperation: - raise ApiValueError( - "Value cannot be converted to a decimal. " - "Invalid value '{}' for type decimal at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DecimalBase _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class NumberBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @property - def as_int_oapg(self) -> int: - try: - return self._as_int - except AttributeError: - """ - Note: for some numbers like 9.0 they could be represented as an - integer but our code chooses to store them as - >>> Decimal('9.0').as_tuple() - DecimalTuple(sign=0, digits=(9, 0), exponent=-1) - so we can tell that the value came from a float and convert it back to a float - during later serialization - """ - if self.as_tuple().exponent < 0: - # this could be represented as an integer but should be represented as a float - # because that's what it was serialized from - raise ApiValueError(f'{self} is not an integer') - self._as_int = int(self) - return self._as_int - - @property - def as_float_oapg(self) -> float: - try: - return self._as_float - except AttributeError: - if self.as_tuple().exponent >= 0: - raise ApiValueError(f'{self} is not a float') - self._as_float = float(self) - return self._as_float - - @classmethod - def __check_numeric_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): - return - if cls._is_json_validation_enabled_oapg('multipleOf', - validation_metadata.configuration) and hasattr(cls.MetaOapg, 'multiple_of'): - multiple_of_value = cls.MetaOapg.multiple_of - if (not (float(arg) / multiple_of_value).is_integer()): - # Note 'multipleOf' will be as good as the floating point arithmetic. - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="value must be a multiple of", - constraint_value=multiple_of_value, - path_to_item=validation_metadata.path_to_item - ) - - checking_max_or_min_values = any( - hasattr(cls.MetaOapg, validation_key) for validation_key in { - 'exclusive_maximum', - 'inclusive_maximum', - 'exclusive_minimum', - 'inclusive_minimum', - } - ) - if not checking_max_or_min_values: - return - - if (cls._is_json_validation_enabled_oapg('exclusiveMaximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_maximum') and - arg >= cls.MetaOapg.exclusive_maximum): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value less than", - constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('maximum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_maximum') and - arg > cls.MetaOapg.inclusive_maximum): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value less than or equal to", - constraint_value=cls.MetaOapg.inclusive_maximum, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('exclusiveMinimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'exclusive_minimum') and - arg <= cls.MetaOapg.exclusive_minimum): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value greater than", - constraint_value=cls.MetaOapg.exclusive_maximum, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minimum', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'inclusive_minimum') and - arg < cls.MetaOapg.inclusive_minimum): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="must be a value greater than or equal to", - constraint_value=cls.MetaOapg.inclusive_minimum, - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - NumberBase _validate_oapg - Validates that validations pass - """ - if isinstance(arg, decimal.Decimal): - cls.__check_numeric_validations(arg, validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class ListBase(ValidatorBase): - MetaOapg: MetaOapgTyped - - @classmethod - def __validate_items(cls, list_items, validation_metadata: ValidationMetadata): - """ - Ensures that: - - values passed in for items are valid - Exceptions will be raised if: - - invalid arguments were passed in - - Args: - list_items: the input list of items - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - - # if we have definitions for an items schema, use it - # otherwise accept anything - item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema) - item_cls = cls._get_class_oapg(item_cls) - path_to_schemas = {} - for i, value in enumerate(list_items): - item_validation_metadata = ValidationMetadata( - from_server=validation_metadata.from_server, - configuration=validation_metadata.configuration, - path_to_item=validation_metadata.path_to_item+(i,), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - if item_validation_metadata.validation_ran_earlier(item_cls): - add_deeper_validated_schemas(item_validation_metadata, path_to_schemas) - continue - other_path_to_schemas = item_cls._validate_oapg( - value, validation_metadata=item_validation_metadata) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __check_tuple_validations( - cls, arg, - validation_metadata: ValidationMetadata): - if not hasattr(cls, 'MetaOapg'): - return - if (cls._is_json_validation_enabled_oapg('maxItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_items') and - len(arg) > cls.MetaOapg.max_items): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of items must be less than or equal to", - constraint_value=cls.MetaOapg.max_items, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_items') and - len(arg) < cls.MetaOapg.min_items): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of items must be greater than or equal to", - constraint_value=cls.MetaOapg.min_items, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('uniqueItems', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'unique_items') and cls.MetaOapg.unique_items and arg): - unique_items = set(arg) - if len(arg) > len(unique_items): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="duplicate items were found, and the tuple must not contain duplicates because", - constraint_value='unique_items==True', - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - ListBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - if isinstance(arg, tuple): - cls.__check_tuple_validations(arg, validation_metadata) - _path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata) - if not isinstance(arg, tuple): - return _path_to_schemas - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - other_path_to_schemas = cls.__validate_items(arg, validation_metadata=updated_vm) - update(_path_to_schemas, other_path_to_schemas) - return _path_to_schemas - - @classmethod - def _get_items_oapg( - cls: 'Schema', - arg: typing.List[typing.Any], - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] - ): - ''' - ListBase _get_items_oapg - ''' - cast_items = [] - - for i, value in enumerate(arg): - item_path_to_item = path_to_item + (i,) - item_cls = path_to_schemas[item_path_to_item] - new_value = item_cls._get_new_instance_without_conversion_oapg( - value, - item_path_to_item, - path_to_schemas - ) - cast_items.append(new_value) - - return cast_items - - -class Discriminable: - MetaOapg: MetaOapgTyped - - @classmethod - def _ensure_discriminator_value_present_oapg(cls, disc_property_name: str, validation_metadata: ValidationMetadata, *args): - if not args or args and disc_property_name not in args[0]: - # The input data does not contain the discriminator property - raise ApiValueError( - "Cannot deserialize input data due to missing discriminator. " - "The discriminator property '{}' is missing at path: {}".format(disc_property_name, validation_metadata.path_to_item) - ) - - @classmethod - def get_discriminated_class_oapg(cls, disc_property_name: str, disc_payload_value: str): - """ - Used in schemas with discriminators - """ - if not hasattr(cls.MetaOapg, 'discriminator'): - return None - disc = cls.MetaOapg.discriminator() - if disc_property_name not in disc: - return None - discriminated_cls = disc[disc_property_name].get(disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if not hasattr(cls, 'MetaOapg'): - return None - elif not ( - hasattr(cls.MetaOapg, 'all_of') or - hasattr(cls.MetaOapg, 'one_of') or - hasattr(cls.MetaOapg, 'any_of') - ): - return None - # TODO stop traveling if a cycle is hit - if hasattr(cls.MetaOapg, 'all_of'): - for allof_cls in cls.MetaOapg.all_of(): - discriminated_cls = allof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if hasattr(cls.MetaOapg, 'one_of'): - for oneof_cls in cls.MetaOapg.one_of(): - discriminated_cls = oneof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - if hasattr(cls.MetaOapg, 'any_of'): - for anyof_cls in cls.MetaOapg.any_of(): - discriminated_cls = anyof_cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=disc_payload_value) - if discriminated_cls is not None: - return discriminated_cls - return None - - -class DictBase(Discriminable, ValidatorBase): - - @classmethod - def __validate_arg_presence(cls, arg): - """ - Ensures that: - - all required arguments are passed in - - the input variable names are valid - - present in properties or - - accepted because additionalProperties exists - Exceptions will be raised if: - - invalid arguments were passed in - - a var_name is invalid if additional_properties == NotAnyTypeSchema - and var_name not in properties.__annotations__ - - required properties were not passed in - - Args: - arg: the input dict - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - seen_required_properties = set() - invalid_arguments = [] - required_property_names = getattr(cls.MetaOapg, 'required', set()) - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) - for property_name in arg: - if property_name in required_property_names: - seen_required_properties.add(property_name) - elif property_name in property_annotations: - continue - elif additional_properties is not NotAnyTypeSchema: - continue - else: - invalid_arguments.append(property_name) - missing_required_arguments = list(required_property_names - seen_required_properties) - if missing_required_arguments: - missing_required_arguments.sort() - raise ApiTypeError( - "{} is missing {} required argument{}: {}".format( - cls.__name__, - len(missing_required_arguments), - "s" if len(missing_required_arguments) > 1 else "", - missing_required_arguments - ) - ) - if invalid_arguments: - invalid_arguments.sort() - raise ApiTypeError( - "{} was passed {} invalid argument{}: {}".format( - cls.__name__, - len(invalid_arguments), - "s" if len(invalid_arguments) > 1 else "", - invalid_arguments - ) - ) - - @classmethod - def __validate_args(cls, arg, validation_metadata: ValidationMetadata): - """ - Ensures that: - - values passed in for properties are valid - Exceptions will be raised if: - - invalid arguments were passed in - - Args: - arg: the input dict - - Raises: - ApiTypeError - for missing required arguments, or for invalid properties - """ - path_to_schemas = {} - additional_properties = getattr(cls.MetaOapg, 'additional_properties', UnsetAnyTypeSchema) - properties = getattr(cls.MetaOapg, 'properties', {}) - property_annotations = getattr(properties, '__annotations__', {}) - for property_name, value in arg.items(): - path_to_item = validation_metadata.path_to_item+(property_name,) - if property_name in property_annotations: - schema = property_annotations[property_name] - elif additional_properties is not NotAnyTypeSchema: - if additional_properties is UnsetAnyTypeSchema: - """ - If additionalProperties is unset and this path_to_item does not yet have - any validations on it, validate it. - If it already has validations on it, skip this validation. - """ - if path_to_item in path_to_schemas: - continue - schema = additional_properties - else: - raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format( - value, cls, validation_metadata.path_to_item+(property_name,) - )) - schema = cls._get_class_oapg(schema) - arg_validation_metadata = ValidationMetadata( - from_server=validation_metadata.from_server, - configuration=validation_metadata.configuration, - path_to_item=path_to_item, - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - if arg_validation_metadata.validation_ran_earlier(schema): - add_deeper_validated_schemas(arg_validation_metadata, path_to_schemas) - continue - other_path_to_schemas = schema._validate_oapg(value, validation_metadata=arg_validation_metadata) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __check_dict_validations( - cls, - arg, - validation_metadata: ValidationMetadata - ): - if not hasattr(cls, 'MetaOapg'): - return - if (cls._is_json_validation_enabled_oapg('maxProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'max_properties') and - len(arg) > cls.MetaOapg.max_properties): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of properties must be less than or equal to", - constraint_value=cls.MetaOapg.max_properties, - path_to_item=validation_metadata.path_to_item - ) - - if (cls._is_json_validation_enabled_oapg('minProperties', validation_metadata.configuration) and - hasattr(cls.MetaOapg, 'min_properties') and - len(arg) < cls.MetaOapg.min_properties): - cls._raise_validation_error_message_oapg( - value=arg, - constraint_msg="number of properties must be greater than or equal to", - constraint_value=cls.MetaOapg.min_properties, - path_to_item=validation_metadata.path_to_item - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - DictBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - if isinstance(arg, frozendict.frozendict): - cls.__check_dict_validations(arg, validation_metadata) - _path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata) - if not isinstance(arg, frozendict.frozendict): - return _path_to_schemas - cls.__validate_arg_presence(arg) - other_path_to_schemas = cls.__validate_args(arg, validation_metadata=validation_metadata) - update(_path_to_schemas, other_path_to_schemas) - try: - discriminator = cls.MetaOapg.discriminator() - except AttributeError: - return _path_to_schemas - # discriminator exists - disc_prop_name = list(discriminator.keys())[0] - cls._ensure_discriminator_value_present_oapg(disc_prop_name, validation_metadata, arg) - discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_prop_name, disc_payload_value=arg[disc_prop_name]) - if discriminated_cls is None: - raise ApiValueError( - "Invalid discriminator value was passed in to {}.{} Only the values {} are allowed at {}".format( - cls.__name__, - disc_prop_name, - list(discriminator[disc_prop_name].keys()), - validation_metadata.path_to_item + (disc_prop_name,) - ) - ) - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - if updated_vm.validation_ran_earlier(discriminated_cls): - add_deeper_validated_schemas(updated_vm, _path_to_schemas) - return _path_to_schemas - other_path_to_schemas = discriminated_cls._validate_oapg(arg, validation_metadata=updated_vm) - update(_path_to_schemas, other_path_to_schemas) - return _path_to_schemas - - @classmethod - def _get_properties_oapg( - cls, - arg: typing.Dict[str, typing.Any], - path_to_item: typing.Tuple[typing.Union[str, int], ...], - path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Type['Schema']] - ): - """ - DictBase _get_properties_oapg, this is how properties are set - These values already passed validation - """ - dict_items = {} - - for property_name_js, value in arg.items(): - property_path_to_item = path_to_item + (property_name_js,) - property_cls = path_to_schemas[property_path_to_item] - new_value = property_cls._get_new_instance_without_conversion_oapg( - value, - property_path_to_item, - path_to_schemas - ) - dict_items[property_name_js] = new_value - - return dict_items - - def __setattr__(self, name: str, value: typing.Any): - if not isinstance(self, FileIO): - raise AttributeError('property setting not supported on immutable instances') - - def __getattr__(self, name: str): - """ - for instance.name access - Properties are only type hinted for required properties - so that hasattr(instance, 'optionalProp') is False when that key is not present - """ - if not isinstance(self, frozendict.frozendict): - return super().__getattr__(name) - if name not in self.__class__.__annotations__: - raise AttributeError(f"{self} has no attribute '{name}'") - try: - value = self[name] - return value - except KeyError as ex: - raise AttributeError(str(ex)) - - def __getitem__(self, name: str): - """ - dict_instance[name] accessor - key errors thrown - """ - if not isinstance(self, frozendict.frozendict): - return super().__getattr__(name) - return super().__getitem__(name) - - def get_item_oapg(self, name: str) -> typing.Union['AnyTypeSchema', Unset]: - # dict_instance[name] accessor - if not isinstance(self, frozendict.frozendict): - raise NotImplementedError() - try: - return super().__getitem__(name) - except KeyError: - return unset - - -def cast_to_allowed_types( - arg: typing.Union[str, date, datetime, uuid.UUID, decimal.Decimal, int, float, None, dict, frozendict.frozendict, list, tuple, bytes, Schema, io.FileIO, io.BufferedReader], - from_server: bool, - validated_path_to_schemas: typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]], - path_to_item: typing.Tuple[typing.Union[str, int], ...] = tuple(['args[0]']), -) -> typing.Union[frozendict.frozendict, tuple, decimal.Decimal, str, bytes, BoolClass, NoneClass, FileIO]: - """ - Casts the input payload arg into the allowed types - The input validated_path_to_schemas is mutated by running this function - - When from_server is False then - - date/datetime is cast to str - - int/float is cast to Decimal - - If a Schema instance is passed in it is converted back to a primitive instance because - One may need to validate that data to the original Schema class AND additional different classes - those additional classes will need to be added to the new manufactured class for that payload - If the code didn't do this and kept the payload as a Schema instance it would fail to validate to other - Schema classes and the code wouldn't be able to mfg a new class that includes all valid schemas - TODO: store the validated schema classes in validation_metadata - - Args: - arg: the payload - from_server: whether this payload came from the server or not - validated_path_to_schemas: a dict that stores the validated classes at any path location in the payload - """ - if isinstance(arg, Schema): - # store the already run validations - schema_classes = set() - for cls in arg.__class__.__bases__: - if cls is Singleton: - # Skip Singleton - continue - schema_classes.add(cls) - validated_path_to_schemas[path_to_item] = schema_classes - - type_error = ApiTypeError(f"Invalid type. Required value type is str and passed type was {type(arg)} at {path_to_item}") - if isinstance(arg, str): - return str(arg) - elif isinstance(arg, (dict, frozendict.frozendict)): - return frozendict.frozendict({key: cast_to_allowed_types(val, from_server, validated_path_to_schemas, path_to_item + (key,)) for key, val in arg.items()}) - elif isinstance(arg, (bool, BoolClass)): - """ - this check must come before isinstance(arg, (int, float)) - because isinstance(True, int) is True - """ - if arg: - return BoolClass.TRUE - return BoolClass.FALSE - elif isinstance(arg, int): - return decimal.Decimal(arg) - elif isinstance(arg, float): - decimal_from_float = decimal.Decimal(arg) - if decimal_from_float.as_integer_ratio()[1] == 1: - # 9.0 -> Decimal('9.0') - # 3.4028234663852886e+38 -> Decimal('340282346638528859811704183484516925440.0') - return decimal.Decimal(str(decimal_from_float)+'.0') - return decimal_from_float - elif isinstance(arg, (tuple, list)): - return tuple([cast_to_allowed_types(item, from_server, validated_path_to_schemas, path_to_item + (i,)) for i, item in enumerate(arg)]) - elif isinstance(arg, (none_type, NoneClass)): - return NoneClass.NONE - elif isinstance(arg, (date, datetime)): - if not from_server: - return arg.isoformat() - raise type_error - elif isinstance(arg, uuid.UUID): - if not from_server: - return str(arg) - raise type_error - elif isinstance(arg, decimal.Decimal): - return decimal.Decimal(arg) - elif isinstance(arg, bytes): - return bytes(arg) - elif isinstance(arg, (io.FileIO, io.BufferedReader)): - return FileIO(arg) - raise ValueError('Invalid type passed in got input={} type={}'.format(arg, type(arg))) - - -class ComposedBase(Discriminable): - - @classmethod - def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata): - path_to_schemas = defaultdict(set) - for allof_cls in cls.MetaOapg.all_of(): - if validation_metadata.validation_ran_earlier(allof_cls): - add_deeper_validated_schemas(validation_metadata, path_to_schemas) - continue - other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata) - update(path_to_schemas, other_path_to_schemas) - return path_to_schemas - - @classmethod - def __get_oneof_class( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata, - ): - oneof_classes = [] - path_to_schemas = defaultdict(set) - for oneof_cls in cls.MetaOapg.one_of(): - if oneof_cls in path_to_schemas[validation_metadata.path_to_item]: - oneof_classes.append(oneof_cls) - continue - if validation_metadata.validation_ran_earlier(oneof_cls): - oneof_classes.append(oneof_cls) - add_deeper_validated_schemas(validation_metadata, path_to_schemas) - continue - try: - path_to_schemas = oneof_cls._validate_oapg(arg, validation_metadata=validation_metadata) - except (ApiValueError, ApiTypeError) as ex: - if discriminated_cls is not None and oneof_cls is discriminated_cls: - raise ex - continue - oneof_classes.append(oneof_cls) - if not oneof_classes: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. None " - "of the oneOf schemas matched the input data.".format(cls) - ) - elif len(oneof_classes) > 1: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. Multiple " - "oneOf schemas {} matched the inputs, but a max of one is allowed.".format(cls, oneof_classes) - ) - # exactly one class matches - return path_to_schemas - - @classmethod - def __get_anyof_classes( - cls, - arg, - discriminated_cls, - validation_metadata: ValidationMetadata - ): - anyof_classes = [] - path_to_schemas = defaultdict(set) - for anyof_cls in cls.MetaOapg.any_of(): - if validation_metadata.validation_ran_earlier(anyof_cls): - anyof_classes.append(anyof_cls) - add_deeper_validated_schemas(validation_metadata, path_to_schemas) - continue - - try: - other_path_to_schemas = anyof_cls._validate_oapg(arg, validation_metadata=validation_metadata) - except (ApiValueError, ApiTypeError) as ex: - if discriminated_cls is not None and anyof_cls is discriminated_cls: - raise ex - continue - anyof_classes.append(anyof_cls) - update(path_to_schemas, other_path_to_schemas) - if not anyof_classes: - raise ApiValueError( - "Invalid inputs given to generate an instance of {}. None " - "of the anyOf schemas matched the input data.".format(cls) - ) - return path_to_schemas - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]: - """ - ComposedBase _validate_oapg - We return dynamic classes of different bases depending upon the inputs - This makes it so: - - the returned instance is always a subclass of our defining schema - - this allows us to check type based on whether an instance is a subclass of a schema - - the returned instance is a serializable type (except for None, True, and False) which are enums - - Returns: - new_cls (type): the new class - - Raises: - ApiValueError: when a string can't be converted into a date or datetime and it must be one of those classes - ApiTypeError: when the input type is not in the list of allowed spec types - """ - # validation checking on types, validations, and enums - path_to_schemas = super()._validate_oapg(arg, validation_metadata=validation_metadata) - - updated_vm = ValidationMetadata( - configuration=validation_metadata.configuration, - from_server=validation_metadata.from_server, - path_to_item=validation_metadata.path_to_item, - seen_classes=validation_metadata.seen_classes | frozenset({cls}), - validated_path_to_schemas=validation_metadata.validated_path_to_schemas - ) - - # process composed schema - discriminator = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'discriminator'): - discriminator = cls.MetaOapg.discriminator() - discriminated_cls = None - if discriminator and arg and isinstance(arg, frozendict.frozendict): - disc_property_name = list(discriminator.keys())[0] - cls._ensure_discriminator_value_present_oapg(disc_property_name, updated_vm, arg) - # get discriminated_cls by looking at the dict in the current class - discriminated_cls = cls.get_discriminated_class_oapg( - disc_property_name=disc_property_name, disc_payload_value=arg[disc_property_name]) - if discriminated_cls is None: - raise ApiValueError( - "Invalid discriminator value '{}' was passed in to {}.{} Only the values {} are allowed at {}".format( - arg[disc_property_name], - cls.__name__, - disc_property_name, - list(discriminator[disc_property_name].keys()), - updated_vm.path_to_item + (disc_property_name,) - ) - ) - - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'all_of'): - other_path_to_schemas = cls.__get_allof_classes(arg, validation_metadata=updated_vm) - update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'one_of'): - other_path_to_schemas = cls.__get_oneof_class( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'any_of'): - other_path_to_schemas = cls.__get_anyof_classes( - arg, - discriminated_cls=discriminated_cls, - validation_metadata=updated_vm - ) - update(path_to_schemas, other_path_to_schemas) - not_cls = None - if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'): - not_cls = cls.MetaOapg.not_schema - not_cls = cls._get_class_oapg(not_cls) - if not_cls: - other_path_to_schemas = None - not_exception = ApiValueError( - "Invalid value '{}' was passed in to {}. Value is invalid because it is disallowed by {}".format( - arg, - cls.__name__, - not_cls.__name__, - ) - ) - if updated_vm.validation_ran_earlier(not_cls): - raise not_exception - - try: - other_path_to_schemas = not_cls._validate_oapg(arg, validation_metadata=updated_vm) - except (ApiValueError, ApiTypeError): - pass - if other_path_to_schemas: - raise not_exception - - if discriminated_cls is not None and not updated_vm.validation_ran_earlier(discriminated_cls): - # TODO use an exception from this package here - add_deeper_validated_schemas(updated_vm, path_to_schemas) - assert discriminated_cls in path_to_schemas[updated_vm.path_to_item] - return path_to_schemas - - -# DictBase, ListBase, NumberBase, StrBase, BoolBase, NoneBase -class ComposedSchema( - ComposedBase, - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolMixin -): - @classmethod - def from_openapi_data_oapg(cls, *args: typing.Any, _configuration: typing.Optional[Configuration] = None, **kwargs): - if not args: - if not kwargs: - raise ApiTypeError('{} is missing required input data in args or kwargs'.format(cls.__name__)) - args = (kwargs, ) - return super().from_openapi_data_oapg(args[0], _configuration=_configuration) - - -class ListSchema( - ListBase, - Schema, - TupleMixin -): - - @classmethod - def from_openapi_data_oapg(cls, arg: typing.List[typing.Any], _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: typing.Union[typing.List[typing.Any], typing.Tuple[typing.Any]], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class NoneSchema( - NoneBase, - Schema, - NoneMixin -): - - @classmethod - def from_openapi_data_oapg(cls, arg: None, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: None, **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class NumberSchema( - NumberBase, - Schema, - DecimalMixin -): - """ - This is used for type: number with no format - Both integers AND floats are accepted - """ - - @classmethod - def from_openapi_data_oapg(cls, arg: typing.Union[int, float], _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: typing.Union[decimal.Decimal, int, float], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class IntBase: - @property - def as_int_oapg(self) -> int: - try: - return self._as_int - except AttributeError: - self._as_int = int(self) - return self._as_int - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal): - - denominator = arg.as_integer_ratio()[-1] - if denominator != 1: - raise ApiValueError( - "Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - IntBase _validate_oapg - TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class IntSchema(IntBase, NumberSchema): - - @classmethod - def from_openapi_data_oapg(cls, arg: int, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: typing.Union[decimal.Decimal, int], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class Int32Base: - __inclusive_minimum = decimal.Decimal(-2147483648) - __inclusive_maximum = decimal.Decimal(2147483647) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type int32 at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Int32Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Int32Schema( - Int32Base, - IntSchema -): - pass - - -class Int64Base: - __inclusive_minimum = decimal.Decimal(-9223372036854775808) - __inclusive_maximum = decimal.Decimal(9223372036854775807) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal) and arg.as_tuple().exponent == 0: - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type int64 at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Int64Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Int64Schema( - Int64Base, - IntSchema -): - pass - - -class Float32Base: - __inclusive_minimum = decimal.Decimal(-3.4028234663852886e+38) - __inclusive_maximum = decimal.Decimal(3.4028234663852886e+38) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal): - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type float at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Float32Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - - -class Float32Schema( - Float32Base, - NumberSchema -): - - @classmethod - def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - -class Float64Base: - __inclusive_minimum = decimal.Decimal(-1.7976931348623157E+308) - __inclusive_maximum = decimal.Decimal(1.7976931348623157E+308) - - @classmethod - def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata): - if isinstance(arg, decimal.Decimal): - if not cls.__inclusive_minimum <= arg <= cls.__inclusive_maximum: - raise ApiValueError( - "Invalid value '{}' for type double at {}".format(arg, validation_metadata.path_to_item) - ) - - @classmethod - def _validate_oapg( - cls, - arg, - validation_metadata: ValidationMetadata, - ): - """ - Float64Base _validate_oapg - """ - cls.__validate_format(arg, validation_metadata=validation_metadata) - return super()._validate_oapg(arg, validation_metadata=validation_metadata) - -class Float64Schema( - Float64Base, - NumberSchema -): - - @classmethod - def from_openapi_data_oapg(cls, arg: float, _configuration: typing.Optional[Configuration] = None): - # todo check format - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - -class StrSchema( - StrBase, - Schema, - StrMixin -): - """ - date + datetime string types must inherit from this class - That is because one can validate a str payload as both: - - type: string (format unset) - - type: string, format: date - """ - - @classmethod - def from_openapi_data_oapg(cls, arg: str, _configuration: typing.Optional[Configuration] = None) -> 'StrSchema': - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: typing.Union[str, date, datetime, uuid.UUID], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class UUIDSchema(UUIDBase, StrSchema): - - def __new__(cls, _arg: typing.Union[str, uuid.UUID], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class DateSchema(DateBase, StrSchema): - - def __new__(cls, _arg: typing.Union[str, date], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class DateTimeSchema(DateTimeBase, StrSchema): - - def __new__(cls, _arg: typing.Union[str, datetime], **kwargs: Configuration): - return super().__new__(cls, _arg, **kwargs) - - -class DecimalSchema(DecimalBase, StrSchema): - - def __new__(cls, _arg: str, **kwargs: Configuration): - """ - Note: Decimals may not be passed in because cast_to_allowed_types is only invoked once for payloads - which can be simple (str) or complex (dicts or lists with nested values) - Because casting is only done once and recursively casts all values prior to validation then for a potential - client side Decimal input if Decimal was accepted as an input in DecimalSchema then one would not know - if one was using it for a StrSchema (where it should be cast to str) or one is using it for NumberSchema - where it should stay as Decimal. - """ - return super().__new__(cls, _arg, **kwargs) - - -class BytesSchema( - Schema, - BytesMixin -): - """ - this class will subclass bytes and is immutable - """ - def __new__(cls, _arg: bytes, **kwargs: Configuration): - return super(Schema, cls).__new__(cls, _arg) - - -class FileSchema( - Schema, - FileMixin -): - """ - This class is NOT immutable - Dynamic classes are built using it for example when AnyType allows in binary data - Al other schema classes ARE immutable - If one wanted to make this immutable one could make this a DictSchema with required properties: - - data = BytesSchema (which would be an immutable bytes based schema) - - file_name = StrSchema - and cast_to_allowed_types would convert bytes and file instances into dicts containing data + file_name - The downside would be that data would be stored in memory which one may not want to do for very large files - - The developer is responsible for closing this file and deleting it - - This class was kept as mutable: - - to allow file reading and writing to disk - - to be able to preserve file name info - """ - - def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader], **kwargs: Configuration): - return super(Schema, cls).__new__(cls, _arg) - - -class BinaryBase: - pass - - -class BinarySchema( - ComposedBase, - BinaryBase, - Schema, - BinaryMixin -): - class MetaOapg: - @staticmethod - def one_of(): - return [ - BytesSchema, - FileSchema, - ] - - def __new__(cls, _arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration): - return super().__new__(cls, _arg) - - -class BoolSchema( - BoolBase, - Schema, - BoolMixin -): - - @classmethod - def from_openapi_data_oapg(cls, arg: bool, _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, _arg: bool, **kwargs: ValidationMetadata): - return super().__new__(cls, _arg, **kwargs) - - -class AnyTypeSchema( - DictBase, - ListBase, - NumberBase, - StrBase, - BoolBase, - NoneBase, - Schema, - NoneFrozenDictTupleStrDecimalBoolFileBytesMixin -): - # Python representation of a schema defined as true or {} - pass - - -class UnsetAnyTypeSchema(AnyTypeSchema): - # Used when additionalProperties/items was not explicitly defined and a defining schema is needed - pass - - -class NotAnyTypeSchema( - ComposedSchema, -): - """ - Python representation of a schema defined as false or {'not': {}} - Does not allow inputs in of AnyType - Note: validations on this class are never run because the code knows that no inputs will ever validate - """ - - class MetaOapg: - not_schema = AnyTypeSchema - - def __new__( - cls, - *_args, - _configuration: typing.Optional[Configuration] = None, - ) -> 'NotAnyTypeSchema': - return super().__new__( - cls, - *_args, - _configuration=_configuration, - ) - - -class DictSchema( - DictBase, - Schema, - FrozenDictMixin -): - @classmethod - def from_openapi_data_oapg(cls, arg: typing.Dict[str, typing.Any], _configuration: typing.Optional[Configuration] = None): - return super().from_openapi_data_oapg(arg, _configuration=_configuration) - - def __new__(cls, *_args: typing.Union[dict, frozendict.frozendict], **kwargs: typing.Union[dict, frozendict.frozendict, list, tuple, decimal.Decimal, float, int, str, date, datetime, bool, None, bytes, Schema, Unset, ValidationMetadata]): - return super().__new__(cls, *_args, **kwargs) - - -schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema} - - -@functools.lru_cache() -def get_new_class( - class_name: str, - bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...] -) -> typing.Type[Schema]: - """ - Returns a new class that is made with the subclass bases - """ - new_cls: typing.Type[Schema] = type(class_name, bases, {}) - return new_cls - - -LOG_CACHE_USAGE = False - - -def log_cache_usage(cache_fn): - if LOG_CACHE_USAGE: - print(cache_fn.__name__, cache_fn.cache_info()) \ No newline at end of file diff --git a/git_push.sh b/git_push.sh index 0d268a5..2af83c9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -38,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=`git remote` +git_remote=$(git remote) if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -55,4 +55,3 @@ git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' - diff --git a/pyproject.toml b/pyproject.toml index 5e987ce..db6371f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "raystack-frontier-api" -version = "0.1.2" +version = "0.1.3" description = "Frontier APIs" authors = ["Kush Sharma "] license = "Apache 2.0" diff --git a/requirements.txt b/requirements.txt index 3cb6612..cc85509 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ -certifi >= 14.5.14 -frozendict ~= 2.3.4 -python-dateutil ~= 2.7.0 +python_dateutil >= 2.5.3 setuptools >= 21.0.0 -typing_extensions ~= 4.3.0 -urllib3 ~= 1.26.7 +urllib3 >= 1.25.3, < 2.1.0 +pydantic >= 2 +typing-extensions >= 4.7.1 diff --git a/setup.py b/setup.py index f52e423..398f949 100644 --- a/setup.py +++ b/setup.py @@ -3,31 +3,32 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + from setuptools import setup, find_packages # noqa: H301 -NAME = "frontier-python" -VERSION = "1.0.0" # To install the library, run the following # # python setup.py install # # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools - +NAME = "frontier-python" +VERSION = "0.1.3" +PYTHON_REQUIRES = ">=3.7" REQUIRES = [ - "certifi >= 14.5.14", - "frozendict ~= 2.3.4", - "python-dateutil ~= 2.7.0", - "setuptools >= 21.0.0", - "typing_extensions ~= 4.3.0", - "urllib3 ~= 1.26.7", + "urllib3 >= 1.25.3, < 2.1.0", + "python-dateutil", + "pydantic >= 2", + "typing-extensions >= 4.7.1", ] setup( @@ -38,12 +39,13 @@ author_email="hello@raystack.org", url="https://github.com/raystack/frontier-python", keywords=["OpenAPI", "OpenAPI-Generator", "Frontier Administration API"], - python_requires=">=3.7", install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="Apache 2.0", + long_description_content_type='text/markdown', long_description="""\ - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - """ + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + """, # noqa: E501 + package_data={"frontier_api": ["py.typed"]}, ) diff --git a/temp/list.py b/temp/list.py new file mode 100644 index 0000000..b0408b3 --- /dev/null +++ b/temp/list.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python3 + +import time +from pprint import pprint +from frontier_api import * +from frontier_api.apis.tags import user_api +from frontier_api.model.rpc_status import RpcStatus +from frontier_api.model.v1beta1_list_users_response import V1beta1ListUsersResponse +from frontier_api.model.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse + +HOST = "http://127.0.0.1:7400" + +# Defining the host is optional and defaults to http://127.0.0.1:7400 +# See configuration.py for a list of all supported configuration parameters. +configuration = Configuration( + host = HOST +) + +def fetch_users(): + # Enter a context with an instance of the API client + with ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = user_api.FrontierServiceListUsers(api_client) + try: + api_response = api_instance.frontier_service_list_users() + assert isinstance(api_response.body, V1beta1ListUsersResponse) + pprint(api_response.body) + except ApiException as e: + print("Exception when calling user_api->FrontierServiceListUsers: %s\n" % e) + + +if __name__ == "__main__": + fetch_users() \ No newline at end of file diff --git a/test-requirements.txt b/test-requirements.txt index 2d88b03..3a0d0b9 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,3 +1,3 @@ -pytest~=4.6.7 # needed for python 3.4 +pytest~=7.1.3 pytest-cov>=2.8.1 -pytest-randomly==1.2.3 # needed for python 3.4 +pytest-randomly>=3.12.0 diff --git a/test/test_audit_log_api.py b/test/test_audit_log_api.py new file mode 100644 index 0000000..f54ef6d --- /dev/null +++ b/test/test_audit_log_api.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.audit_log_api import AuditLogApi + + +class TestAuditLogApi(unittest.TestCase): + """AuditLogApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuditLogApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_organization_audit_logs(self) -> None: + """Test case for frontier_service_create_organization_audit_logs + + Create audit log + """ + pass + + def test_frontier_service_get_organization_audit_log(self) -> None: + """Test case for frontier_service_get_organization_audit_log + + Get audit log + """ + pass + + def test_frontier_service_list_organization_audit_logs(self) -> None: + """Test case for frontier_service_list_organization_audit_logs + + List audit logs + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authn_api.py b/test/test_authn_api.py new file mode 100644 index 0000000..1520e6e --- /dev/null +++ b/test/test_authn_api.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.authn_api import AuthnApi + + +class TestAuthnApi(unittest.TestCase): + """AuthnApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuthnApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_auth_callback(self) -> None: + """Test case for frontier_service_auth_callback + + Callback from a strategy + """ + pass + + def test_frontier_service_auth_callback2(self) -> None: + """Test case for frontier_service_auth_callback2 + + Callback from a strategy + """ + pass + + def test_frontier_service_auth_logout(self) -> None: + """Test case for frontier_service_auth_logout + + Logout from a strategy + """ + pass + + def test_frontier_service_auth_logout2(self) -> None: + """Test case for frontier_service_auth_logout2 + + Logout from a strategy + """ + pass + + def test_frontier_service_auth_token(self) -> None: + """Test case for frontier_service_auth_token + + Generate access token by given credentials + """ + pass + + def test_frontier_service_authenticate(self) -> None: + """Test case for frontier_service_authenticate + + Authenticate with a strategy + """ + pass + + def test_frontier_service_authenticate2(self) -> None: + """Test case for frontier_service_authenticate2 + + Authenticate with a strategy + """ + pass + + def test_frontier_service_list_auth_strategies(self) -> None: + """Test case for frontier_service_list_auth_strategies + + List authentication strategies + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_authz_api.py b/test/test_authz_api.py new file mode 100644 index 0000000..339d7ca --- /dev/null +++ b/test/test_authz_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.authz_api import AuthzApi + + +class TestAuthzApi(unittest.TestCase): + """AuthzApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuthzApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_check_federated_resource_permission(self) -> None: + """Test case for admin_service_check_federated_resource_permission + + Check + """ + pass + + def test_frontier_service_batch_check_permission(self) -> None: + """Test case for frontier_service_batch_check_permission + + Batch check + """ + pass + + def test_frontier_service_check_resource_permission(self) -> None: + """Test case for frontier_service_check_resource_permission + + Check + """ + pass + + def test_frontier_service_get_jwks(self) -> None: + """Test case for frontier_service_get_jwks + + Get well known JWKs + """ + pass + + def test_frontier_service_get_jwks2(self) -> None: + """Test case for frontier_service_get_jwks2 + + Get well known JWKs + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_account_address.py b/test/test_billing_account_address.py new file mode 100644 index 0000000..22e691d --- /dev/null +++ b/test/test_billing_account_address.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.billing_account_address import BillingAccountAddress + +class TestBillingAccountAddress(unittest.TestCase): + """BillingAccountAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BillingAccountAddress: + """Test BillingAccountAddress + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BillingAccountAddress` + """ + model = BillingAccountAddress() + if include_optional: + return BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '' + ) + else: + return BillingAccountAddress( + ) + """ + + def testBillingAccountAddress(self): + """Test BillingAccountAddress""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_account_balance.py b/test/test_billing_account_balance.py new file mode 100644 index 0000000..0599037 --- /dev/null +++ b/test/test_billing_account_balance.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.billing_account_balance import BillingAccountBalance + +class TestBillingAccountBalance(unittest.TestCase): + """BillingAccountBalance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BillingAccountBalance: + """Test BillingAccountBalance + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BillingAccountBalance` + """ + model = BillingAccountBalance() + if include_optional: + return BillingAccountBalance( + amount = '', + currency = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return BillingAccountBalance( + ) + """ + + def testBillingAccountBalance(self): + """Test BillingAccountBalance""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_api.py b/test/test_billing_api.py new file mode 100644 index 0000000..6d30c3e --- /dev/null +++ b/test/test_billing_api.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.billing_api import BillingApi + + +class TestBillingApi(unittest.TestCase): + """BillingApi unit test stubs""" + + def setUp(self) -> None: + self.api = BillingApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_billing_account(self) -> None: + """Test case for frontier_service_create_billing_account + + Create billing account + """ + pass + + def test_frontier_service_delete_billing_account(self) -> None: + """Test case for frontier_service_delete_billing_account + + Delete billing account + """ + pass + + def test_frontier_service_get_billing_account(self) -> None: + """Test case for frontier_service_get_billing_account + + Get billing account + """ + pass + + def test_frontier_service_get_billing_balance(self) -> None: + """Test case for frontier_service_get_billing_balance + + Get billing balance + """ + pass + + def test_frontier_service_list_billing_accounts(self) -> None: + """Test case for frontier_service_list_billing_accounts + + List billing accounts + """ + pass + + def test_frontier_service_update_billing_account(self) -> None: + """Test case for frontier_service_update_billing_account + + Update billing account + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_checkout_api.py b/test/test_checkout_api.py new file mode 100644 index 0000000..6c88bfb --- /dev/null +++ b/test/test_checkout_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.checkout_api import CheckoutApi + + +class TestCheckoutApi(unittest.TestCase): + """CheckoutApi unit test stubs""" + + def setUp(self) -> None: + self.api = CheckoutApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_checkout(self) -> None: + """Test case for frontier_service_create_checkout + + Checkout a feature or subscription + """ + pass + + def test_frontier_service_list_checkouts(self) -> None: + """Test case for frontier_service_list_checkouts + + List checkouts + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_models/test_v1beta1_batch_check_permission_request.py b/test/test_entitlement_api.py similarity index 60% rename from test/test_models/test_v1beta1_batch_check_permission_request.py rename to test/test_entitlement_api.py index d35ef1a..8f05cf3 100644 --- a/test/test_models/test_v1beta1_batch_check_permission_request.py +++ b/test/test_entitlement_api.py @@ -3,23 +3,36 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import unittest -import frontier_api -from frontier_api.model.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest -from frontier_api import configuration +from frontier_api.api.entitlement_api import EntitlementApi + + +class TestEntitlementApi(unittest.TestCase): + """EntitlementApi unit test stubs""" + + def setUp(self) -> None: + self.api = EntitlementApi() + + def tearDown(self) -> None: + pass + def test_frontier_service_check_feature_entitlement(self) -> None: + """Test case for frontier_service_check_feature_entitlement -class TestV1beta1BatchCheckPermissionRequest(unittest.TestCase): - """V1beta1BatchCheckPermissionRequest unit test stubs""" - _configuration = configuration.Configuration() + Check entitlement + """ + pass if __name__ == '__main__': diff --git a/test/test_feature_api.py b/test/test_feature_api.py new file mode 100644 index 0000000..86d81e5 --- /dev/null +++ b/test/test_feature_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.feature_api import FeatureApi + + +class TestFeatureApi(unittest.TestCase): + """FeatureApi unit test stubs""" + + def setUp(self) -> None: + self.api = FeatureApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_feature(self) -> None: + """Test case for frontier_service_create_feature + + Create feature + """ + pass + + def test_frontier_service_get_feature(self) -> None: + """Test case for frontier_service_get_feature + + Get feature + """ + pass + + def test_frontier_service_list_features(self) -> None: + """Test case for frontier_service_list_features + + List features + """ + pass + + def test_frontier_service_update_feature(self) -> None: + """Test case for frontier_service_update_feature + + Update feature + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_add_group_users_request.py b/test/test_frontier_service_add_group_users_request.py new file mode 100644 index 0000000..d6abbd4 --- /dev/null +++ b/test/test_frontier_service_add_group_users_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_add_group_users_request import FrontierServiceAddGroupUsersRequest + +class TestFrontierServiceAddGroupUsersRequest(unittest.TestCase): + """FrontierServiceAddGroupUsersRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceAddGroupUsersRequest: + """Test FrontierServiceAddGroupUsersRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceAddGroupUsersRequest` + """ + model = FrontierServiceAddGroupUsersRequest() + if include_optional: + return FrontierServiceAddGroupUsersRequest( + user_ids = [ + '' + ] + ) + else: + return FrontierServiceAddGroupUsersRequest( + ) + """ + + def testFrontierServiceAddGroupUsersRequest(self): + """Test FrontierServiceAddGroupUsersRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_add_organization_users_request.py b/test/test_frontier_service_add_organization_users_request.py new file mode 100644 index 0000000..410fae2 --- /dev/null +++ b/test/test_frontier_service_add_organization_users_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_add_organization_users_request import FrontierServiceAddOrganizationUsersRequest + +class TestFrontierServiceAddOrganizationUsersRequest(unittest.TestCase): + """FrontierServiceAddOrganizationUsersRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceAddOrganizationUsersRequest: + """Test FrontierServiceAddOrganizationUsersRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceAddOrganizationUsersRequest` + """ + model = FrontierServiceAddOrganizationUsersRequest() + if include_optional: + return FrontierServiceAddOrganizationUsersRequest( + user_ids = [ + '' + ] + ) + else: + return FrontierServiceAddOrganizationUsersRequest( + ) + """ + + def testFrontierServiceAddOrganizationUsersRequest(self): + """Test FrontierServiceAddOrganizationUsersRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_authenticate2_request.py b/test/test_frontier_service_authenticate2_request.py new file mode 100644 index 0000000..a87678b --- /dev/null +++ b/test/test_frontier_service_authenticate2_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_authenticate2_request import FrontierServiceAuthenticate2Request + +class TestFrontierServiceAuthenticate2Request(unittest.TestCase): + """FrontierServiceAuthenticate2Request unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceAuthenticate2Request: + """Test FrontierServiceAuthenticate2Request + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceAuthenticate2Request` + """ + model = FrontierServiceAuthenticate2Request() + if include_optional: + return FrontierServiceAuthenticate2Request( + redirect_onstart = True, + return_to = '', + email = '', + callback_url = '' + ) + else: + return FrontierServiceAuthenticate2Request( + ) + """ + + def testFrontierServiceAuthenticate2Request(self): + """Test FrontierServiceAuthenticate2Request""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_check_feature_entitlement_request.py b/test/test_frontier_service_check_feature_entitlement_request.py new file mode 100644 index 0000000..f892508 --- /dev/null +++ b/test/test_frontier_service_check_feature_entitlement_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_check_feature_entitlement_request import FrontierServiceCheckFeatureEntitlementRequest + +class TestFrontierServiceCheckFeatureEntitlementRequest(unittest.TestCase): + """FrontierServiceCheckFeatureEntitlementRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCheckFeatureEntitlementRequest: + """Test FrontierServiceCheckFeatureEntitlementRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCheckFeatureEntitlementRequest` + """ + model = FrontierServiceCheckFeatureEntitlementRequest() + if include_optional: + return FrontierServiceCheckFeatureEntitlementRequest( + feature = '' + ) + else: + return FrontierServiceCheckFeatureEntitlementRequest( + ) + """ + + def testFrontierServiceCheckFeatureEntitlementRequest(self): + """Test FrontierServiceCheckFeatureEntitlementRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_billing_account_request.py b/test/test_frontier_service_create_billing_account_request.py new file mode 100644 index 0000000..c96ca97 --- /dev/null +++ b/test/test_frontier_service_create_billing_account_request.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_billing_account_request import FrontierServiceCreateBillingAccountRequest + +class TestFrontierServiceCreateBillingAccountRequest(unittest.TestCase): + """FrontierServiceCreateBillingAccountRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateBillingAccountRequest: + """Test FrontierServiceCreateBillingAccountRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateBillingAccountRequest` + """ + model = FrontierServiceCreateBillingAccountRequest() + if include_optional: + return FrontierServiceCreateBillingAccountRequest( + body = frontier_api.models.v1beta1_billing_account_request_body.v1beta1BillingAccountRequestBody( + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + currency = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return FrontierServiceCreateBillingAccountRequest( + ) + """ + + def testFrontierServiceCreateBillingAccountRequest(self): + """Test FrontierServiceCreateBillingAccountRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_billing_usage_request.py b/test/test_frontier_service_create_billing_usage_request.py new file mode 100644 index 0000000..3ac5ade --- /dev/null +++ b/test/test_frontier_service_create_billing_usage_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_billing_usage_request import FrontierServiceCreateBillingUsageRequest + +class TestFrontierServiceCreateBillingUsageRequest(unittest.TestCase): + """FrontierServiceCreateBillingUsageRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateBillingUsageRequest: + """Test FrontierServiceCreateBillingUsageRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateBillingUsageRequest` + """ + model = FrontierServiceCreateBillingUsageRequest() + if include_optional: + return FrontierServiceCreateBillingUsageRequest( + usages = [ + frontier_api.models.v1beta1_usage.v1beta1Usage( + id = '', + customer_id = '', + source = '', + description = '', + type = '', + amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return FrontierServiceCreateBillingUsageRequest( + ) + """ + + def testFrontierServiceCreateBillingUsageRequest(self): + """Test FrontierServiceCreateBillingUsageRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_checkout_request.py b/test/test_frontier_service_create_checkout_request.py new file mode 100644 index 0000000..6e8c163 --- /dev/null +++ b/test/test_frontier_service_create_checkout_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_checkout_request import FrontierServiceCreateCheckoutRequest + +class TestFrontierServiceCreateCheckoutRequest(unittest.TestCase): + """FrontierServiceCreateCheckoutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateCheckoutRequest: + """Test FrontierServiceCreateCheckoutRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateCheckoutRequest` + """ + model = FrontierServiceCreateCheckoutRequest() + if include_optional: + return FrontierServiceCreateCheckoutRequest( + success_url = '', + cancel_url = '', + subscription_body = frontier_api.models.v1beta1_checkout_subscription_body.v1beta1CheckoutSubscriptionBody( + plan = '', + trail_days = 56, ), + feature_body = frontier_api.models.v1beta1_checkout_feature_body.v1beta1CheckoutFeatureBody( + feature = '', ) + ) + else: + return FrontierServiceCreateCheckoutRequest( + ) + """ + + def testFrontierServiceCreateCheckoutRequest(self): + """Test FrontierServiceCreateCheckoutRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_group_preferences_request.py b/test/test_frontier_service_create_group_preferences_request.py new file mode 100644 index 0000000..cde5a25 --- /dev/null +++ b/test/test_frontier_service_create_group_preferences_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_group_preferences_request import FrontierServiceCreateGroupPreferencesRequest + +class TestFrontierServiceCreateGroupPreferencesRequest(unittest.TestCase): + """FrontierServiceCreateGroupPreferencesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateGroupPreferencesRequest: + """Test FrontierServiceCreateGroupPreferencesRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateGroupPreferencesRequest` + """ + model = FrontierServiceCreateGroupPreferencesRequest() + if include_optional: + return FrontierServiceCreateGroupPreferencesRequest( + bodies = [ + frontier_api.models.v1beta1_preference_request_body.v1beta1PreferenceRequestBody( + name = '', + value = '', ) + ] + ) + else: + return FrontierServiceCreateGroupPreferencesRequest( + ) + """ + + def testFrontierServiceCreateGroupPreferencesRequest(self): + """Test FrontierServiceCreateGroupPreferencesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_organization_audit_logs_request.py b/test/test_frontier_service_create_organization_audit_logs_request.py new file mode 100644 index 0000000..96e0995 --- /dev/null +++ b/test/test_frontier_service_create_organization_audit_logs_request.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_organization_audit_logs_request import FrontierServiceCreateOrganizationAuditLogsRequest + +class TestFrontierServiceCreateOrganizationAuditLogsRequest(unittest.TestCase): + """FrontierServiceCreateOrganizationAuditLogsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateOrganizationAuditLogsRequest: + """Test FrontierServiceCreateOrganizationAuditLogsRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateOrganizationAuditLogsRequest` + """ + model = FrontierServiceCreateOrganizationAuditLogsRequest() + if include_optional: + return FrontierServiceCreateOrganizationAuditLogsRequest( + logs = [ + frontier_api.models.v1beta1_audit_log.v1beta1AuditLog( + id = '', + source = 'auth', + action = '', + actor = frontier_api.models.v1beta1_audit_log_actor.v1beta1AuditLogActor( + id = '', + type = '', + name = '', ), + target = frontier_api.models.v1beta1_audit_log_target.v1beta1AuditLogTarget( + id = '', + type = '', + name = '', ), + context = { + 'key' : '' + }, + created_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return FrontierServiceCreateOrganizationAuditLogsRequest( + ) + """ + + def testFrontierServiceCreateOrganizationAuditLogsRequest(self): + """Test FrontierServiceCreateOrganizationAuditLogsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_organization_domain_request.py b/test/test_frontier_service_create_organization_domain_request.py new file mode 100644 index 0000000..14fa665 --- /dev/null +++ b/test/test_frontier_service_create_organization_domain_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_organization_domain_request import FrontierServiceCreateOrganizationDomainRequest + +class TestFrontierServiceCreateOrganizationDomainRequest(unittest.TestCase): + """FrontierServiceCreateOrganizationDomainRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateOrganizationDomainRequest: + """Test FrontierServiceCreateOrganizationDomainRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateOrganizationDomainRequest` + """ + model = FrontierServiceCreateOrganizationDomainRequest() + if include_optional: + return FrontierServiceCreateOrganizationDomainRequest( + domain = '' + ) + else: + return FrontierServiceCreateOrganizationDomainRequest( + domain = '', + ) + """ + + def testFrontierServiceCreateOrganizationDomainRequest(self): + """Test FrontierServiceCreateOrganizationDomainRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_organization_invitation_request.py b/test/test_frontier_service_create_organization_invitation_request.py new file mode 100644 index 0000000..0ea3559 --- /dev/null +++ b/test/test_frontier_service_create_organization_invitation_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_organization_invitation_request import FrontierServiceCreateOrganizationInvitationRequest + +class TestFrontierServiceCreateOrganizationInvitationRequest(unittest.TestCase): + """FrontierServiceCreateOrganizationInvitationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateOrganizationInvitationRequest: + """Test FrontierServiceCreateOrganizationInvitationRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateOrganizationInvitationRequest` + """ + model = FrontierServiceCreateOrganizationInvitationRequest() + if include_optional: + return FrontierServiceCreateOrganizationInvitationRequest( + user_ids = [ + '' + ], + group_ids = [ + '' + ], + role_ids = [ + '' + ] + ) + else: + return FrontierServiceCreateOrganizationInvitationRequest( + user_ids = [ + '' + ], + ) + """ + + def testFrontierServiceCreateOrganizationInvitationRequest(self): + """Test FrontierServiceCreateOrganizationInvitationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_create_service_user_key_request.py b/test/test_frontier_service_create_service_user_key_request.py new file mode 100644 index 0000000..ae12e42 --- /dev/null +++ b/test/test_frontier_service_create_service_user_key_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_create_service_user_key_request import FrontierServiceCreateServiceUserKeyRequest + +class TestFrontierServiceCreateServiceUserKeyRequest(unittest.TestCase): + """FrontierServiceCreateServiceUserKeyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceCreateServiceUserKeyRequest: + """Test FrontierServiceCreateServiceUserKeyRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceCreateServiceUserKeyRequest` + """ + model = FrontierServiceCreateServiceUserKeyRequest() + if include_optional: + return FrontierServiceCreateServiceUserKeyRequest( + title = '' + ) + else: + return FrontierServiceCreateServiceUserKeyRequest( + ) + """ + + def testFrontierServiceCreateServiceUserKeyRequest(self): + """Test FrontierServiceCreateServiceUserKeyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_update_feature_request.py b/test/test_frontier_service_update_feature_request.py new file mode 100644 index 0000000..349514c --- /dev/null +++ b/test/test_frontier_service_update_feature_request.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_update_feature_request import FrontierServiceUpdateFeatureRequest + +class TestFrontierServiceUpdateFeatureRequest(unittest.TestCase): + """FrontierServiceUpdateFeatureRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceUpdateFeatureRequest: + """Test FrontierServiceUpdateFeatureRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceUpdateFeatureRequest` + """ + model = FrontierServiceUpdateFeatureRequest() + if include_optional: + return FrontierServiceUpdateFeatureRequest( + body = frontier_api.models.v1beta1_feature_request_body.v1beta1FeatureRequestBody( + name = '', + title = '', + description = '', + plan_id = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return FrontierServiceUpdateFeatureRequest( + ) + """ + + def testFrontierServiceUpdateFeatureRequest(self): + """Test FrontierServiceUpdateFeatureRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_update_plan_request.py b/test/test_frontier_service_update_plan_request.py new file mode 100644 index 0000000..3e8ca38 --- /dev/null +++ b/test/test_frontier_service_update_plan_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_update_plan_request import FrontierServiceUpdatePlanRequest + +class TestFrontierServiceUpdatePlanRequest(unittest.TestCase): + """FrontierServiceUpdatePlanRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceUpdatePlanRequest: + """Test FrontierServiceUpdatePlanRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceUpdatePlanRequest` + """ + model = FrontierServiceUpdatePlanRequest() + if include_optional: + return FrontierServiceUpdatePlanRequest( + body = frontier_api.models.v1beta1_plan_request_body.v1beta1PlanRequestBody( + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return FrontierServiceUpdatePlanRequest( + ) + """ + + def testFrontierServiceUpdatePlanRequest(self): + """Test FrontierServiceUpdatePlanRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_frontier_service_update_subscription_request.py b/test/test_frontier_service_update_subscription_request.py new file mode 100644 index 0000000..98831ca --- /dev/null +++ b/test/test_frontier_service_update_subscription_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.frontier_service_update_subscription_request import FrontierServiceUpdateSubscriptionRequest + +class TestFrontierServiceUpdateSubscriptionRequest(unittest.TestCase): + """FrontierServiceUpdateSubscriptionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FrontierServiceUpdateSubscriptionRequest: + """Test FrontierServiceUpdateSubscriptionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FrontierServiceUpdateSubscriptionRequest` + """ + model = FrontierServiceUpdateSubscriptionRequest() + if include_optional: + return FrontierServiceUpdateSubscriptionRequest( + metadata = None + ) + else: + return FrontierServiceUpdateSubscriptionRequest( + ) + """ + + def testFrontierServiceUpdateSubscriptionRequest(self): + """Test FrontierServiceUpdateSubscriptionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group_api.py b/test/test_group_api.py new file mode 100644 index 0000000..e550f88 --- /dev/null +++ b/test/test_group_api.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.group_api import GroupApi + + +class TestGroupApi(unittest.TestCase): + """GroupApi unit test stubs""" + + def setUp(self) -> None: + self.api = GroupApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_list_groups(self) -> None: + """Test case for admin_service_list_groups + + List all groups + """ + pass + + def test_frontier_service_add_group_users(self) -> None: + """Test case for frontier_service_add_group_users + + Add group user + """ + pass + + def test_frontier_service_create_group(self) -> None: + """Test case for frontier_service_create_group + + Create group + """ + pass + + def test_frontier_service_delete_group(self) -> None: + """Test case for frontier_service_delete_group + + Delete group + """ + pass + + def test_frontier_service_disable_group(self) -> None: + """Test case for frontier_service_disable_group + + Disable group + """ + pass + + def test_frontier_service_enable_group(self) -> None: + """Test case for frontier_service_enable_group + + Enable group + """ + pass + + def test_frontier_service_get_group(self) -> None: + """Test case for frontier_service_get_group + + Get group + """ + pass + + def test_frontier_service_list_group_users(self) -> None: + """Test case for frontier_service_list_group_users + + List group users + """ + pass + + def test_frontier_service_list_organization_groups(self) -> None: + """Test case for frontier_service_list_organization_groups + + List organization groups + """ + pass + + def test_frontier_service_remove_group_user(self) -> None: + """Test case for frontier_service_remove_group_user + + Remove group user + """ + pass + + def test_frontier_service_update_group(self) -> None: + """Test case for frontier_service_update_group + + Update group + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_meta_schema_api.py b/test/test_meta_schema_api.py new file mode 100644 index 0000000..56937c3 --- /dev/null +++ b/test/test_meta_schema_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.meta_schema_api import MetaSchemaApi + + +class TestMetaSchemaApi(unittest.TestCase): + """MetaSchemaApi unit test stubs""" + + def setUp(self) -> None: + self.api = MetaSchemaApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_meta_schema(self) -> None: + """Test case for frontier_service_create_meta_schema + + Create metaschema + """ + pass + + def test_frontier_service_delete_meta_schema(self) -> None: + """Test case for frontier_service_delete_meta_schema + + Delete metaschema + """ + pass + + def test_frontier_service_get_meta_schema(self) -> None: + """Test case for frontier_service_get_meta_schema + + Get metaschema + """ + pass + + def test_frontier_service_list_meta_schemas(self) -> None: + """Test case for frontier_service_list_meta_schemas + + List metaschemas + """ + pass + + def test_frontier_service_update_meta_schema(self) -> None: + """Test case for frontier_service_update_meta_schema + + Update metaschema + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_models/test_protobuf_any.py b/test/test_models/test_protobuf_any.py deleted file mode 100644 index 0c79dde..0000000 --- a/test/test_models/test_protobuf_any.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.protobuf_any import ProtobufAny -from frontier_api import configuration - - -class TestProtobufAny(unittest.TestCase): - """ProtobufAny unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_rpc_status.py b/test/test_models/test_rpc_status.py deleted file mode 100644 index afcf73d..0000000 --- a/test/test_models/test_rpc_status.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.rpc_status import RpcStatus -from frontier_api import configuration - - -class TestRpcStatus(unittest.TestCase): - """RpcStatus unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_audit_log_actor.py b/test/test_models/test_v1beta1_audit_log_actor.py deleted file mode 100644 index 67e598d..0000000 --- a/test/test_models/test_v1beta1_audit_log_actor.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_audit_log_actor import V1beta1AuditLogActor -from frontier_api import configuration - - -class TestV1beta1AuditLogActor(unittest.TestCase): - """V1beta1AuditLogActor unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_audit_log_target.py b/test/test_models/test_v1beta1_audit_log_target.py deleted file mode 100644 index 45af3c4..0000000 --- a/test/test_models/test_v1beta1_audit_log_target.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_audit_log_target import V1beta1AuditLogTarget -from frontier_api import configuration - - -class TestV1beta1AuditLogTarget(unittest.TestCase): - """V1beta1AuditLogTarget unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_auth_callback_request.py b/test/test_models/test_v1beta1_auth_callback_request.py deleted file mode 100644 index ad6aaf9..0000000 --- a/test/test_models/test_v1beta1_auth_callback_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest -from frontier_api import configuration - - -class TestV1beta1AuthCallbackRequest(unittest.TestCase): - """V1beta1AuthCallbackRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_auth_strategy.py b/test/test_models/test_v1beta1_auth_strategy.py deleted file mode 100644 index a85d488..0000000 --- a/test/test_models/test_v1beta1_auth_strategy.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_auth_strategy import V1beta1AuthStrategy -from frontier_api import configuration - - -class TestV1beta1AuthStrategy(unittest.TestCase): - """V1beta1AuthStrategy unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_auth_token_request.py b/test/test_models/test_v1beta1_auth_token_request.py deleted file mode 100644 index 4cf8174..0000000 --- a/test/test_models/test_v1beta1_auth_token_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_auth_token_request import V1beta1AuthTokenRequest -from frontier_api import configuration - - -class TestV1beta1AuthTokenRequest(unittest.TestCase): - """V1beta1AuthTokenRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_auth_token_response.py b/test/test_models/test_v1beta1_auth_token_response.py deleted file mode 100644 index 8724d26..0000000 --- a/test/test_models/test_v1beta1_auth_token_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_auth_token_response import V1beta1AuthTokenResponse -from frontier_api import configuration - - -class TestV1beta1AuthTokenResponse(unittest.TestCase): - """V1beta1AuthTokenResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_authenticate_response.py b/test/test_models/test_v1beta1_authenticate_response.py deleted file mode 100644 index 12493e4..0000000 --- a/test/test_models/test_v1beta1_authenticate_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_authenticate_response import V1beta1AuthenticateResponse -from frontier_api import configuration - - -class TestV1beta1AuthenticateResponse(unittest.TestCase): - """V1beta1AuthenticateResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_batch_check_permission_body.py b/test/test_models/test_v1beta1_batch_check_permission_body.py deleted file mode 100644 index 7d52ddb..0000000 --- a/test/test_models/test_v1beta1_batch_check_permission_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody -from frontier_api import configuration - - -class TestV1beta1BatchCheckPermissionBody(unittest.TestCase): - """V1beta1BatchCheckPermissionBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_batch_check_permission_response.py b/test/test_models/test_v1beta1_batch_check_permission_response.py deleted file mode 100644 index 56f4843..0000000 --- a/test/test_models/test_v1beta1_batch_check_permission_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse -from frontier_api import configuration - - -class TestV1beta1BatchCheckPermissionResponse(unittest.TestCase): - """V1beta1BatchCheckPermissionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_batch_check_permission_response_pair.py b/test/test_models/test_v1beta1_batch_check_permission_response_pair.py deleted file mode 100644 index dc6a969..0000000 --- a/test/test_models/test_v1beta1_batch_check_permission_response_pair.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair -from frontier_api import configuration - - -class TestV1beta1BatchCheckPermissionResponsePair(unittest.TestCase): - """V1beta1BatchCheckPermissionResponsePair unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_check_resource_permission_request.py b/test/test_models/test_v1beta1_check_resource_permission_request.py deleted file mode 100644 index 1923024..0000000 --- a/test/test_models/test_v1beta1_check_resource_permission_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest -from frontier_api import configuration - - -class TestV1beta1CheckResourcePermissionRequest(unittest.TestCase): - """V1beta1CheckResourcePermissionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_current_user_preferences_request.py b/test/test_models/test_v1beta1_create_current_user_preferences_request.py deleted file mode 100644 index 0f3bf4f..0000000 --- a/test/test_models/test_v1beta1_create_current_user_preferences_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest -from frontier_api import configuration - - -class TestV1beta1CreateCurrentUserPreferencesRequest(unittest.TestCase): - """V1beta1CreateCurrentUserPreferencesRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_current_user_preferences_response.py b/test/test_models/test_v1beta1_create_current_user_preferences_response.py deleted file mode 100644 index ca1dc6f..0000000 --- a/test/test_models/test_v1beta1_create_current_user_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1CreateCurrentUserPreferencesResponse(unittest.TestCase): - """V1beta1CreateCurrentUserPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_group_preferences_response.py b/test/test_models/test_v1beta1_create_group_preferences_response.py deleted file mode 100644 index e359318..0000000 --- a/test/test_models/test_v1beta1_create_group_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1CreateGroupPreferencesResponse(unittest.TestCase): - """V1beta1CreateGroupPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_group_response.py b/test/test_models/test_v1beta1_create_group_response.py deleted file mode 100644 index 6064b98..0000000 --- a/test/test_models/test_v1beta1_create_group_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_group_response import V1beta1CreateGroupResponse -from frontier_api import configuration - - -class TestV1beta1CreateGroupResponse(unittest.TestCase): - """V1beta1CreateGroupResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_meta_schema_response.py b/test/test_models/test_v1beta1_create_meta_schema_response.py deleted file mode 100644 index f19b509..0000000 --- a/test/test_models/test_v1beta1_create_meta_schema_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse -from frontier_api import configuration - - -class TestV1beta1CreateMetaSchemaResponse(unittest.TestCase): - """V1beta1CreateMetaSchemaResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_organization_domain_response.py b/test/test_models/test_v1beta1_create_organization_domain_response.py deleted file mode 100644 index eef2ad5..0000000 --- a/test/test_models/test_v1beta1_create_organization_domain_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse -from frontier_api import configuration - - -class TestV1beta1CreateOrganizationDomainResponse(unittest.TestCase): - """V1beta1CreateOrganizationDomainResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_organization_invitation_response.py b/test/test_models/test_v1beta1_create_organization_invitation_response.py deleted file mode 100644 index e773685..0000000 --- a/test/test_models/test_v1beta1_create_organization_invitation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse -from frontier_api import configuration - - -class TestV1beta1CreateOrganizationInvitationResponse(unittest.TestCase): - """V1beta1CreateOrganizationInvitationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_organization_preferences_response.py b/test/test_models/test_v1beta1_create_organization_preferences_response.py deleted file mode 100644 index 29d059b..0000000 --- a/test/test_models/test_v1beta1_create_organization_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1CreateOrganizationPreferencesResponse(unittest.TestCase): - """V1beta1CreateOrganizationPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_organization_response.py b/test/test_models/test_v1beta1_create_organization_response.py deleted file mode 100644 index f41d828..0000000 --- a/test/test_models/test_v1beta1_create_organization_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse -from frontier_api import configuration - - -class TestV1beta1CreateOrganizationResponse(unittest.TestCase): - """V1beta1CreateOrganizationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_organization_role_response.py b/test/test_models/test_v1beta1_create_organization_role_response.py deleted file mode 100644 index 8ce4119..0000000 --- a/test/test_models/test_v1beta1_create_organization_role_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse -from frontier_api import configuration - - -class TestV1beta1CreateOrganizationRoleResponse(unittest.TestCase): - """V1beta1CreateOrganizationRoleResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_permission_request.py b/test/test_models/test_v1beta1_create_permission_request.py deleted file mode 100644 index 194fbac..0000000 --- a/test/test_models/test_v1beta1_create_permission_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_permission_request import V1beta1CreatePermissionRequest -from frontier_api import configuration - - -class TestV1beta1CreatePermissionRequest(unittest.TestCase): - """V1beta1CreatePermissionRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_permission_response.py b/test/test_models/test_v1beta1_create_permission_response.py deleted file mode 100644 index 99e871d..0000000 --- a/test/test_models/test_v1beta1_create_permission_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_permission_response import V1beta1CreatePermissionResponse -from frontier_api import configuration - - -class TestV1beta1CreatePermissionResponse(unittest.TestCase): - """V1beta1CreatePermissionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_policy_response.py b/test/test_models/test_v1beta1_create_policy_response.py deleted file mode 100644 index a2f2517..0000000 --- a/test/test_models/test_v1beta1_create_policy_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_policy_response import V1beta1CreatePolicyResponse -from frontier_api import configuration - - -class TestV1beta1CreatePolicyResponse(unittest.TestCase): - """V1beta1CreatePolicyResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_preferences_request.py b/test/test_models/test_v1beta1_create_preferences_request.py deleted file mode 100644 index 76b36ca..0000000 --- a/test/test_models/test_v1beta1_create_preferences_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest -from frontier_api import configuration - - -class TestV1beta1CreatePreferencesRequest(unittest.TestCase): - """V1beta1CreatePreferencesRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_preferences_response.py b/test/test_models/test_v1beta1_create_preferences_response.py deleted file mode 100644 index dbb411c..0000000 --- a/test/test_models/test_v1beta1_create_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse -from frontier_api import configuration - - -class TestV1beta1CreatePreferencesResponse(unittest.TestCase): - """V1beta1CreatePreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_project_preferences_response.py b/test/test_models/test_v1beta1_create_project_preferences_response.py deleted file mode 100644 index a8a64d3..0000000 --- a/test/test_models/test_v1beta1_create_project_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1CreateProjectPreferencesResponse(unittest.TestCase): - """V1beta1CreateProjectPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_project_resource_response.py b/test/test_models/test_v1beta1_create_project_resource_response.py deleted file mode 100644 index dc5711f..0000000 --- a/test/test_models/test_v1beta1_create_project_resource_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse -from frontier_api import configuration - - -class TestV1beta1CreateProjectResourceResponse(unittest.TestCase): - """V1beta1CreateProjectResourceResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_project_response.py b/test/test_models/test_v1beta1_create_project_response.py deleted file mode 100644 index 40c4c2c..0000000 --- a/test/test_models/test_v1beta1_create_project_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_project_response import V1beta1CreateProjectResponse -from frontier_api import configuration - - -class TestV1beta1CreateProjectResponse(unittest.TestCase): - """V1beta1CreateProjectResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_relation_response.py b/test/test_models/test_v1beta1_create_relation_response.py deleted file mode 100644 index dd3119a..0000000 --- a/test/test_models/test_v1beta1_create_relation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_relation_response import V1beta1CreateRelationResponse -from frontier_api import configuration - - -class TestV1beta1CreateRelationResponse(unittest.TestCase): - """V1beta1CreateRelationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_role_response.py b/test/test_models/test_v1beta1_create_role_response.py deleted file mode 100644 index 765c2ba..0000000 --- a/test/test_models/test_v1beta1_create_role_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_role_response import V1beta1CreateRoleResponse -from frontier_api import configuration - - -class TestV1beta1CreateRoleResponse(unittest.TestCase): - """V1beta1CreateRoleResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_service_user_request.py b/test/test_models/test_v1beta1_create_service_user_request.py deleted file mode 100644 index 9671522..0000000 --- a/test/test_models/test_v1beta1_create_service_user_request.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest -from frontier_api import configuration - - -class TestV1beta1CreateServiceUserRequest(unittest.TestCase): - """V1beta1CreateServiceUserRequest unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_service_user_response.py b/test/test_models/test_v1beta1_create_service_user_response.py deleted file mode 100644 index 4e156db..0000000 --- a/test/test_models/test_v1beta1_create_service_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse -from frontier_api import configuration - - -class TestV1beta1CreateServiceUserResponse(unittest.TestCase): - """V1beta1CreateServiceUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_user_preferences_response.py b/test/test_models/test_v1beta1_create_user_preferences_response.py deleted file mode 100644 index ae13501..0000000 --- a/test/test_models/test_v1beta1_create_user_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1CreateUserPreferencesResponse(unittest.TestCase): - """V1beta1CreateUserPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_user_response.py b/test/test_models/test_v1beta1_create_user_response.py deleted file mode 100644 index 3b5a91a..0000000 --- a/test/test_models/test_v1beta1_create_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_create_user_response import V1beta1CreateUserResponse -from frontier_api import configuration - - -class TestV1beta1CreateUserResponse(unittest.TestCase): - """V1beta1CreateUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_describe_preferences_response.py b/test/test_models/test_v1beta1_describe_preferences_response.py deleted file mode 100644 index a2630d4..0000000 --- a/test/test_models/test_v1beta1_describe_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse -from frontier_api import configuration - - -class TestV1beta1DescribePreferencesResponse(unittest.TestCase): - """V1beta1DescribePreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_domain.py b/test/test_models/test_v1beta1_domain.py deleted file mode 100644 index c63358c..0000000 --- a/test/test_models/test_v1beta1_domain.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_domain import V1beta1Domain -from frontier_api import configuration - - -class TestV1beta1Domain(unittest.TestCase): - """V1beta1Domain unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_current_user_response.py b/test/test_models/test_v1beta1_get_current_user_response.py deleted file mode 100644 index 60abad7..0000000 --- a/test/test_models/test_v1beta1_get_current_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse -from frontier_api import configuration - - -class TestV1beta1GetCurrentUserResponse(unittest.TestCase): - """V1beta1GetCurrentUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_group_response.py b/test/test_models/test_v1beta1_get_group_response.py deleted file mode 100644 index 1ab079f..0000000 --- a/test/test_models/test_v1beta1_get_group_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_group_response import V1beta1GetGroupResponse -from frontier_api import configuration - - -class TestV1beta1GetGroupResponse(unittest.TestCase): - """V1beta1GetGroupResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_jwks_response.py b/test/test_models/test_v1beta1_get_jwks_response.py deleted file mode 100644 index 6920790..0000000 --- a/test/test_models/test_v1beta1_get_jwks_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_jwks_response import V1beta1GetJWKsResponse -from frontier_api import configuration - - -class TestV1beta1GetJWKsResponse(unittest.TestCase): - """V1beta1GetJWKsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_meta_schema_response.py b/test/test_models/test_v1beta1_get_meta_schema_response.py deleted file mode 100644 index ab2cb10..0000000 --- a/test/test_models/test_v1beta1_get_meta_schema_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse -from frontier_api import configuration - - -class TestV1beta1GetMetaSchemaResponse(unittest.TestCase): - """V1beta1GetMetaSchemaResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_namespace_response.py b/test/test_models/test_v1beta1_get_namespace_response.py deleted file mode 100644 index f6abf9a..0000000 --- a/test/test_models/test_v1beta1_get_namespace_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse -from frontier_api import configuration - - -class TestV1beta1GetNamespaceResponse(unittest.TestCase): - """V1beta1GetNamespaceResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_organization_audit_log_response.py b/test/test_models/test_v1beta1_get_organization_audit_log_response.py deleted file mode 100644 index 3624f30..0000000 --- a/test/test_models/test_v1beta1_get_organization_audit_log_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse -from frontier_api import configuration - - -class TestV1beta1GetOrganizationAuditLogResponse(unittest.TestCase): - """V1beta1GetOrganizationAuditLogResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_organization_domain_response.py b/test/test_models/test_v1beta1_get_organization_domain_response.py deleted file mode 100644 index e214620..0000000 --- a/test/test_models/test_v1beta1_get_organization_domain_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse -from frontier_api import configuration - - -class TestV1beta1GetOrganizationDomainResponse(unittest.TestCase): - """V1beta1GetOrganizationDomainResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_organization_invitation_response.py b/test/test_models/test_v1beta1_get_organization_invitation_response.py deleted file mode 100644 index a99f7cd..0000000 --- a/test/test_models/test_v1beta1_get_organization_invitation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse -from frontier_api import configuration - - -class TestV1beta1GetOrganizationInvitationResponse(unittest.TestCase): - """V1beta1GetOrganizationInvitationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_organization_response.py b/test/test_models/test_v1beta1_get_organization_response.py deleted file mode 100644 index 5e339b8..0000000 --- a/test/test_models/test_v1beta1_get_organization_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_organization_response import V1beta1GetOrganizationResponse -from frontier_api import configuration - - -class TestV1beta1GetOrganizationResponse(unittest.TestCase): - """V1beta1GetOrganizationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_organization_role_response.py b/test/test_models/test_v1beta1_get_organization_role_response.py deleted file mode 100644 index 53fea0c..0000000 --- a/test/test_models/test_v1beta1_get_organization_role_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse -from frontier_api import configuration - - -class TestV1beta1GetOrganizationRoleResponse(unittest.TestCase): - """V1beta1GetOrganizationRoleResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_permission_response.py b/test/test_models/test_v1beta1_get_permission_response.py deleted file mode 100644 index 9db39a1..0000000 --- a/test/test_models/test_v1beta1_get_permission_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_permission_response import V1beta1GetPermissionResponse -from frontier_api import configuration - - -class TestV1beta1GetPermissionResponse(unittest.TestCase): - """V1beta1GetPermissionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_policy_response.py b/test/test_models/test_v1beta1_get_policy_response.py deleted file mode 100644 index 3795428..0000000 --- a/test/test_models/test_v1beta1_get_policy_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_policy_response import V1beta1GetPolicyResponse -from frontier_api import configuration - - -class TestV1beta1GetPolicyResponse(unittest.TestCase): - """V1beta1GetPolicyResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_project_resource_response.py b/test/test_models/test_v1beta1_get_project_resource_response.py deleted file mode 100644 index 298d252..0000000 --- a/test/test_models/test_v1beta1_get_project_resource_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse -from frontier_api import configuration - - -class TestV1beta1GetProjectResourceResponse(unittest.TestCase): - """V1beta1GetProjectResourceResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_project_response.py b/test/test_models/test_v1beta1_get_project_response.py deleted file mode 100644 index 49d2571..0000000 --- a/test/test_models/test_v1beta1_get_project_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_project_response import V1beta1GetProjectResponse -from frontier_api import configuration - - -class TestV1beta1GetProjectResponse(unittest.TestCase): - """V1beta1GetProjectResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_relation_response.py b/test/test_models/test_v1beta1_get_relation_response.py deleted file mode 100644 index ff0775a..0000000 --- a/test/test_models/test_v1beta1_get_relation_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_relation_response import V1beta1GetRelationResponse -from frontier_api import configuration - - -class TestV1beta1GetRelationResponse(unittest.TestCase): - """V1beta1GetRelationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_service_user_key_response.py b/test/test_models/test_v1beta1_get_service_user_key_response.py deleted file mode 100644 index dc4219d..0000000 --- a/test/test_models/test_v1beta1_get_service_user_key_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse -from frontier_api import configuration - - -class TestV1beta1GetServiceUserKeyResponse(unittest.TestCase): - """V1beta1GetServiceUserKeyResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_service_user_response.py b/test/test_models/test_v1beta1_get_service_user_response.py deleted file mode 100644 index e917cf3..0000000 --- a/test/test_models/test_v1beta1_get_service_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse -from frontier_api import configuration - - -class TestV1beta1GetServiceUserResponse(unittest.TestCase): - """V1beta1GetServiceUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_get_user_response.py b/test/test_models/test_v1beta1_get_user_response.py deleted file mode 100644 index 9fbfc20..0000000 --- a/test/test_models/test_v1beta1_get_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_get_user_response import V1beta1GetUserResponse -from frontier_api import configuration - - -class TestV1beta1GetUserResponse(unittest.TestCase): - """V1beta1GetUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_group.py b/test/test_models/test_v1beta1_group.py deleted file mode 100644 index bde4d6e..0000000 --- a/test/test_models/test_v1beta1_group.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_group import V1beta1Group -from frontier_api import configuration - - -class TestV1beta1Group(unittest.TestCase): - """V1beta1Group unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_group_request_body.py b/test/test_models/test_v1beta1_group_request_body.py deleted file mode 100644 index ee79cab..0000000 --- a/test/test_models/test_v1beta1_group_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_group_request_body import V1beta1GroupRequestBody -from frontier_api import configuration - - -class TestV1beta1GroupRequestBody(unittest.TestCase): - """V1beta1GroupRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_invitation.py b/test/test_models/test_v1beta1_invitation.py deleted file mode 100644 index 40323e3..0000000 --- a/test/test_models/test_v1beta1_invitation.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_invitation import V1beta1Invitation -from frontier_api import configuration - - -class TestV1beta1Invitation(unittest.TestCase): - """V1beta1Invitation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_json_web_key.py b/test/test_models/test_v1beta1_json_web_key.py deleted file mode 100644 index 077509a..0000000 --- a/test/test_models/test_v1beta1_json_web_key.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_json_web_key import V1beta1JSONWebKey -from frontier_api import configuration - - -class TestV1beta1JSONWebKey(unittest.TestCase): - """V1beta1JSONWebKey unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_key_credential.py b/test/test_models/test_v1beta1_key_credential.py deleted file mode 100644 index 34d2c29..0000000 --- a/test/test_models/test_v1beta1_key_credential.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_key_credential import V1beta1KeyCredential -from frontier_api import configuration - - -class TestV1beta1KeyCredential(unittest.TestCase): - """V1beta1KeyCredential unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_all_organizations_response.py b/test/test_models/test_v1beta1_list_all_organizations_response.py deleted file mode 100644 index febe6cf..0000000 --- a/test/test_models/test_v1beta1_list_all_organizations_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse -from frontier_api import configuration - - -class TestV1beta1ListAllOrganizationsResponse(unittest.TestCase): - """V1beta1ListAllOrganizationsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_all_users_response.py b/test/test_models/test_v1beta1_list_all_users_response.py deleted file mode 100644 index 8e0c1bd..0000000 --- a/test/test_models/test_v1beta1_list_all_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListAllUsersResponse(unittest.TestCase): - """V1beta1ListAllUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_auth_strategies_response.py b/test/test_models/test_v1beta1_list_auth_strategies_response.py deleted file mode 100644 index a815263..0000000 --- a/test/test_models/test_v1beta1_list_auth_strategies_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse -from frontier_api import configuration - - -class TestV1beta1ListAuthStrategiesResponse(unittest.TestCase): - """V1beta1ListAuthStrategiesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_current_user_groups_response.py b/test/test_models/test_v1beta1_list_current_user_groups_response.py deleted file mode 100644 index 21158ef..0000000 --- a/test/test_models/test_v1beta1_list_current_user_groups_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse -from frontier_api import configuration - - -class TestV1beta1ListCurrentUserGroupsResponse(unittest.TestCase): - """V1beta1ListCurrentUserGroupsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_current_user_groups_response_access_pair.py b/test/test_models/test_v1beta1_list_current_user_groups_response_access_pair.py deleted file mode 100644 index ea97725..0000000 --- a/test/test_models/test_v1beta1_list_current_user_groups_response_access_pair.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair -from frontier_api import configuration - - -class TestV1beta1ListCurrentUserGroupsResponseAccessPair(unittest.TestCase): - """V1beta1ListCurrentUserGroupsResponseAccessPair unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_current_user_preferences_response.py b/test/test_models/test_v1beta1_list_current_user_preferences_response.py deleted file mode 100644 index a42458e..0000000 --- a/test/test_models/test_v1beta1_list_current_user_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1ListCurrentUserPreferencesResponse(unittest.TestCase): - """V1beta1ListCurrentUserPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_group_preferences_response.py b/test/test_models/test_v1beta1_list_group_preferences_response.py deleted file mode 100644 index 5020afa..0000000 --- a/test/test_models/test_v1beta1_list_group_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1ListGroupPreferencesResponse(unittest.TestCase): - """V1beta1ListGroupPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_group_users_response.py b/test/test_models/test_v1beta1_list_group_users_response.py deleted file mode 100644 index 23b4d0d..0000000 --- a/test/test_models/test_v1beta1_list_group_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListGroupUsersResponse(unittest.TestCase): - """V1beta1ListGroupUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_group_users_response_role_pair.py b/test/test_models/test_v1beta1_list_group_users_response_role_pair.py deleted file mode 100644 index d7bdd57..0000000 --- a/test/test_models/test_v1beta1_list_group_users_response_role_pair.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair -from frontier_api import configuration - - -class TestV1beta1ListGroupUsersResponseRolePair(unittest.TestCase): - """V1beta1ListGroupUsersResponseRolePair unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_groups_response.py b/test/test_models/test_v1beta1_list_groups_response.py deleted file mode 100644 index 9ca368a..0000000 --- a/test/test_models/test_v1beta1_list_groups_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_groups_response import V1beta1ListGroupsResponse -from frontier_api import configuration - - -class TestV1beta1ListGroupsResponse(unittest.TestCase): - """V1beta1ListGroupsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_meta_schemas_response.py b/test/test_models/test_v1beta1_list_meta_schemas_response.py deleted file mode 100644 index 70ba1d3..0000000 --- a/test/test_models/test_v1beta1_list_meta_schemas_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse -from frontier_api import configuration - - -class TestV1beta1ListMetaSchemasResponse(unittest.TestCase): - """V1beta1ListMetaSchemasResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_namespaces_response.py b/test/test_models/test_v1beta1_list_namespaces_response.py deleted file mode 100644 index acef37a..0000000 --- a/test/test_models/test_v1beta1_list_namespaces_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse -from frontier_api import configuration - - -class TestV1beta1ListNamespacesResponse(unittest.TestCase): - """V1beta1ListNamespacesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_admins_response.py b/test/test_models/test_v1beta1_list_organization_admins_response.py deleted file mode 100644 index 0ad21a8..0000000 --- a/test/test_models/test_v1beta1_list_organization_admins_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationAdminsResponse(unittest.TestCase): - """V1beta1ListOrganizationAdminsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_audit_logs_response.py b/test/test_models/test_v1beta1_list_organization_audit_logs_response.py deleted file mode 100644 index 1bc5b60..0000000 --- a/test/test_models/test_v1beta1_list_organization_audit_logs_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationAuditLogsResponse(unittest.TestCase): - """V1beta1ListOrganizationAuditLogsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_domains_response.py b/test/test_models/test_v1beta1_list_organization_domains_response.py deleted file mode 100644 index 474e429..0000000 --- a/test/test_models/test_v1beta1_list_organization_domains_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationDomainsResponse(unittest.TestCase): - """V1beta1ListOrganizationDomainsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_groups_response.py b/test/test_models/test_v1beta1_list_organization_groups_response.py deleted file mode 100644 index 77e983d..0000000 --- a/test/test_models/test_v1beta1_list_organization_groups_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationGroupsResponse(unittest.TestCase): - """V1beta1ListOrganizationGroupsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_invitations_response.py b/test/test_models/test_v1beta1_list_organization_invitations_response.py deleted file mode 100644 index 8a82975..0000000 --- a/test/test_models/test_v1beta1_list_organization_invitations_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationInvitationsResponse(unittest.TestCase): - """V1beta1ListOrganizationInvitationsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_preferences_response.py b/test/test_models/test_v1beta1_list_organization_preferences_response.py deleted file mode 100644 index dbf6f1e..0000000 --- a/test/test_models/test_v1beta1_list_organization_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationPreferencesResponse(unittest.TestCase): - """V1beta1ListOrganizationPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_projects_response.py b/test/test_models/test_v1beta1_list_organization_projects_response.py deleted file mode 100644 index ffd49d0..0000000 --- a/test/test_models/test_v1beta1_list_organization_projects_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationProjectsResponse(unittest.TestCase): - """V1beta1ListOrganizationProjectsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_roles_response.py b/test/test_models/test_v1beta1_list_organization_roles_response.py deleted file mode 100644 index 30ebf2b..0000000 --- a/test/test_models/test_v1beta1_list_organization_roles_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationRolesResponse(unittest.TestCase): - """V1beta1ListOrganizationRolesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_service_users_response.py b/test/test_models/test_v1beta1_list_organization_service_users_response.py deleted file mode 100644 index 75a1543..0000000 --- a/test/test_models/test_v1beta1_list_organization_service_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationServiceUsersResponse(unittest.TestCase): - """V1beta1ListOrganizationServiceUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organization_users_response.py b/test/test_models/test_v1beta1_list_organization_users_response.py deleted file mode 100644 index 694a4e5..0000000 --- a/test/test_models/test_v1beta1_list_organization_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationUsersResponse(unittest.TestCase): - """V1beta1ListOrganizationUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organizations_by_current_user_response.py b/test/test_models/test_v1beta1_list_organizations_by_current_user_response.py deleted file mode 100644 index 823a650..0000000 --- a/test/test_models/test_v1beta1_list_organizations_by_current_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationsByCurrentUserResponse(unittest.TestCase): - """V1beta1ListOrganizationsByCurrentUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organizations_by_user_response.py b/test/test_models/test_v1beta1_list_organizations_by_user_response.py deleted file mode 100644 index 40edf88..0000000 --- a/test/test_models/test_v1beta1_list_organizations_by_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationsByUserResponse(unittest.TestCase): - """V1beta1ListOrganizationsByUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_organizations_response.py b/test/test_models/test_v1beta1_list_organizations_response.py deleted file mode 100644 index 9d7bcbe..0000000 --- a/test/test_models/test_v1beta1_list_organizations_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse -from frontier_api import configuration - - -class TestV1beta1ListOrganizationsResponse(unittest.TestCase): - """V1beta1ListOrganizationsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_permissions_response.py b/test/test_models/test_v1beta1_list_permissions_response.py deleted file mode 100644 index 3a23e46..0000000 --- a/test/test_models/test_v1beta1_list_permissions_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse -from frontier_api import configuration - - -class TestV1beta1ListPermissionsResponse(unittest.TestCase): - """V1beta1ListPermissionsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_policies_response.py b/test/test_models/test_v1beta1_list_policies_response.py deleted file mode 100644 index bdd1498..0000000 --- a/test/test_models/test_v1beta1_list_policies_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_policies_response import V1beta1ListPoliciesResponse -from frontier_api import configuration - - -class TestV1beta1ListPoliciesResponse(unittest.TestCase): - """V1beta1ListPoliciesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_preferences_response.py b/test/test_models/test_v1beta1_list_preferences_response.py deleted file mode 100644 index 0af83ef..0000000 --- a/test/test_models/test_v1beta1_list_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1ListPreferencesResponse(unittest.TestCase): - """V1beta1ListPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_admins_response.py b/test/test_models/test_v1beta1_list_project_admins_response.py deleted file mode 100644 index c274570..0000000 --- a/test/test_models/test_v1beta1_list_project_admins_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectAdminsResponse(unittest.TestCase): - """V1beta1ListProjectAdminsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_preferences_response.py b/test/test_models/test_v1beta1_list_project_preferences_response.py deleted file mode 100644 index 9d6994e..0000000 --- a/test/test_models/test_v1beta1_list_project_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectPreferencesResponse(unittest.TestCase): - """V1beta1ListProjectPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_resources_response.py b/test/test_models/test_v1beta1_list_project_resources_response.py deleted file mode 100644 index ec2a38a..0000000 --- a/test/test_models/test_v1beta1_list_project_resources_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectResourcesResponse(unittest.TestCase): - """V1beta1ListProjectResourcesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_service_users_response.py b/test/test_models/test_v1beta1_list_project_service_users_response.py deleted file mode 100644 index 2801d97..0000000 --- a/test/test_models/test_v1beta1_list_project_service_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectServiceUsersResponse(unittest.TestCase): - """V1beta1ListProjectServiceUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_service_users_response_role_pair.py b/test/test_models/test_v1beta1_list_project_service_users_response_role_pair.py deleted file mode 100644 index 0100942..0000000 --- a/test/test_models/test_v1beta1_list_project_service_users_response_role_pair.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair -from frontier_api import configuration - - -class TestV1beta1ListProjectServiceUsersResponseRolePair(unittest.TestCase): - """V1beta1ListProjectServiceUsersResponseRolePair unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_users_response.py b/test/test_models/test_v1beta1_list_project_users_response.py deleted file mode 100644 index aef1983..0000000 --- a/test/test_models/test_v1beta1_list_project_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectUsersResponse(unittest.TestCase): - """V1beta1ListProjectUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_project_users_response_role_pair.py b/test/test_models/test_v1beta1_list_project_users_response_role_pair.py deleted file mode 100644 index 19b4cb4..0000000 --- a/test/test_models/test_v1beta1_list_project_users_response_role_pair.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair -from frontier_api import configuration - - -class TestV1beta1ListProjectUsersResponseRolePair(unittest.TestCase): - """V1beta1ListProjectUsersResponseRolePair unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_projects_by_current_user_response.py b/test/test_models/test_v1beta1_list_projects_by_current_user_response.py deleted file mode 100644 index 6625f6c..0000000 --- a/test/test_models/test_v1beta1_list_projects_by_current_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectsByCurrentUserResponse(unittest.TestCase): - """V1beta1ListProjectsByCurrentUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_projects_by_current_user_response_access_pair.py b/test/test_models/test_v1beta1_list_projects_by_current_user_response_access_pair.py deleted file mode 100644 index 9174445..0000000 --- a/test/test_models/test_v1beta1_list_projects_by_current_user_response_access_pair.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair -from frontier_api import configuration - - -class TestV1beta1ListProjectsByCurrentUserResponseAccessPair(unittest.TestCase): - """V1beta1ListProjectsByCurrentUserResponseAccessPair unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_projects_by_user_response.py b/test/test_models/test_v1beta1_list_projects_by_user_response.py deleted file mode 100644 index c050178..0000000 --- a/test/test_models/test_v1beta1_list_projects_by_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectsByUserResponse(unittest.TestCase): - """V1beta1ListProjectsByUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_projects_response.py b/test/test_models/test_v1beta1_list_projects_response.py deleted file mode 100644 index 32c7578..0000000 --- a/test/test_models/test_v1beta1_list_projects_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_projects_response import V1beta1ListProjectsResponse -from frontier_api import configuration - - -class TestV1beta1ListProjectsResponse(unittest.TestCase): - """V1beta1ListProjectsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_relations_response.py b/test/test_models/test_v1beta1_list_relations_response.py deleted file mode 100644 index 88c95cc..0000000 --- a/test/test_models/test_v1beta1_list_relations_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_relations_response import V1beta1ListRelationsResponse -from frontier_api import configuration - - -class TestV1beta1ListRelationsResponse(unittest.TestCase): - """V1beta1ListRelationsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_resources_response.py b/test/test_models/test_v1beta1_list_resources_response.py deleted file mode 100644 index b9016b7..0000000 --- a/test/test_models/test_v1beta1_list_resources_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_resources_response import V1beta1ListResourcesResponse -from frontier_api import configuration - - -class TestV1beta1ListResourcesResponse(unittest.TestCase): - """V1beta1ListResourcesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_roles_response.py b/test/test_models/test_v1beta1_list_roles_response.py deleted file mode 100644 index 155adc5..0000000 --- a/test/test_models/test_v1beta1_list_roles_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_roles_response import V1beta1ListRolesResponse -from frontier_api import configuration - - -class TestV1beta1ListRolesResponse(unittest.TestCase): - """V1beta1ListRolesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_service_user_keys_response.py b/test/test_models/test_v1beta1_list_service_user_keys_response.py deleted file mode 100644 index 0a15da6..0000000 --- a/test/test_models/test_v1beta1_list_service_user_keys_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse -from frontier_api import configuration - - -class TestV1beta1ListServiceUserKeysResponse(unittest.TestCase): - """V1beta1ListServiceUserKeysResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_service_user_secrets_response.py b/test/test_models/test_v1beta1_list_service_user_secrets_response.py deleted file mode 100644 index 51e4da4..0000000 --- a/test/test_models/test_v1beta1_list_service_user_secrets_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse -from frontier_api import configuration - - -class TestV1beta1ListServiceUserSecretsResponse(unittest.TestCase): - """V1beta1ListServiceUserSecretsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_service_users_response.py b/test/test_models/test_v1beta1_list_service_users_response.py deleted file mode 100644 index f2b5d3a..0000000 --- a/test/test_models/test_v1beta1_list_service_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListServiceUsersResponse(unittest.TestCase): - """V1beta1ListServiceUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_user_groups_response.py b/test/test_models/test_v1beta1_list_user_groups_response.py deleted file mode 100644 index 75205ef..0000000 --- a/test/test_models/test_v1beta1_list_user_groups_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse -from frontier_api import configuration - - -class TestV1beta1ListUserGroupsResponse(unittest.TestCase): - """V1beta1ListUserGroupsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_user_invitations_response.py b/test/test_models/test_v1beta1_list_user_invitations_response.py deleted file mode 100644 index 4c37828..0000000 --- a/test/test_models/test_v1beta1_list_user_invitations_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse -from frontier_api import configuration - - -class TestV1beta1ListUserInvitationsResponse(unittest.TestCase): - """V1beta1ListUserInvitationsResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_user_preferences_response.py b/test/test_models/test_v1beta1_list_user_preferences_response.py deleted file mode 100644 index 94af0cb..0000000 --- a/test/test_models/test_v1beta1_list_user_preferences_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse -from frontier_api import configuration - - -class TestV1beta1ListUserPreferencesResponse(unittest.TestCase): - """V1beta1ListUserPreferencesResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_list_users_response.py b/test/test_models/test_v1beta1_list_users_response.py deleted file mode 100644 index e02e259..0000000 --- a/test/test_models/test_v1beta1_list_users_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_list_users_response import V1beta1ListUsersResponse -from frontier_api import configuration - - -class TestV1beta1ListUsersResponse(unittest.TestCase): - """V1beta1ListUsersResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_meta_schema.py b/test/test_models/test_v1beta1_meta_schema.py deleted file mode 100644 index 71d4b9e..0000000 --- a/test/test_models/test_v1beta1_meta_schema.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_meta_schema import V1beta1MetaSchema -from frontier_api import configuration - - -class TestV1beta1MetaSchema(unittest.TestCase): - """V1beta1MetaSchema unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_meta_schema_request_body.py b/test/test_models/test_v1beta1_meta_schema_request_body.py deleted file mode 100644 index 66151c9..0000000 --- a/test/test_models/test_v1beta1_meta_schema_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody -from frontier_api import configuration - - -class TestV1beta1MetaSchemaRequestBody(unittest.TestCase): - """V1beta1MetaSchemaRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_namespace.py b/test/test_models/test_v1beta1_namespace.py deleted file mode 100644 index a933162..0000000 --- a/test/test_models/test_v1beta1_namespace.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_namespace import V1beta1Namespace -from frontier_api import configuration - - -class TestV1beta1Namespace(unittest.TestCase): - """V1beta1Namespace unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_organization.py b/test/test_models/test_v1beta1_organization.py deleted file mode 100644 index 19139de..0000000 --- a/test/test_models/test_v1beta1_organization.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_organization import V1beta1Organization -from frontier_api import configuration - - -class TestV1beta1Organization(unittest.TestCase): - """V1beta1Organization unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_organization_request_body.py b/test/test_models/test_v1beta1_organization_request_body.py deleted file mode 100644 index 28fb1a4..0000000 --- a/test/test_models/test_v1beta1_organization_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_organization_request_body import V1beta1OrganizationRequestBody -from frontier_api import configuration - - -class TestV1beta1OrganizationRequestBody(unittest.TestCase): - """V1beta1OrganizationRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_permission.py b/test/test_models/test_v1beta1_permission.py deleted file mode 100644 index ee071a6..0000000 --- a/test/test_models/test_v1beta1_permission.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_permission import V1beta1Permission -from frontier_api import configuration - - -class TestV1beta1Permission(unittest.TestCase): - """V1beta1Permission unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_permission_request_body.py b/test/test_models/test_v1beta1_permission_request_body.py deleted file mode 100644 index 1ec4529..0000000 --- a/test/test_models/test_v1beta1_permission_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_permission_request_body import V1beta1PermissionRequestBody -from frontier_api import configuration - - -class TestV1beta1PermissionRequestBody(unittest.TestCase): - """V1beta1PermissionRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_policy.py b/test/test_models/test_v1beta1_policy.py deleted file mode 100644 index fe38e9d..0000000 --- a/test/test_models/test_v1beta1_policy.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_policy import V1beta1Policy -from frontier_api import configuration - - -class TestV1beta1Policy(unittest.TestCase): - """V1beta1Policy unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_policy_request_body.py b/test/test_models/test_v1beta1_policy_request_body.py deleted file mode 100644 index ac06112..0000000 --- a/test/test_models/test_v1beta1_policy_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_policy_request_body import V1beta1PolicyRequestBody -from frontier_api import configuration - - -class TestV1beta1PolicyRequestBody(unittest.TestCase): - """V1beta1PolicyRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_preference.py b/test/test_models/test_v1beta1_preference.py deleted file mode 100644 index 96e5f0a..0000000 --- a/test/test_models/test_v1beta1_preference.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_preference import V1beta1Preference -from frontier_api import configuration - - -class TestV1beta1Preference(unittest.TestCase): - """V1beta1Preference unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_preference_request_body.py b/test/test_models/test_v1beta1_preference_request_body.py deleted file mode 100644 index 5d5efbd..0000000 --- a/test/test_models/test_v1beta1_preference_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_preference_request_body import V1beta1PreferenceRequestBody -from frontier_api import configuration - - -class TestV1beta1PreferenceRequestBody(unittest.TestCase): - """V1beta1PreferenceRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_preference_trait.py b/test/test_models/test_v1beta1_preference_trait.py deleted file mode 100644 index 49d4a65..0000000 --- a/test/test_models/test_v1beta1_preference_trait.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_preference_trait import V1beta1PreferenceTrait -from frontier_api import configuration - - -class TestV1beta1PreferenceTrait(unittest.TestCase): - """V1beta1PreferenceTrait unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_project.py b/test/test_models/test_v1beta1_project.py deleted file mode 100644 index 9a07a80..0000000 --- a/test/test_models/test_v1beta1_project.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_project import V1beta1Project -from frontier_api import configuration - - -class TestV1beta1Project(unittest.TestCase): - """V1beta1Project unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_project_request_body.py b/test/test_models/test_v1beta1_project_request_body.py deleted file mode 100644 index f08be8e..0000000 --- a/test/test_models/test_v1beta1_project_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_project_request_body import V1beta1ProjectRequestBody -from frontier_api import configuration - - -class TestV1beta1ProjectRequestBody(unittest.TestCase): - """V1beta1ProjectRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_relation.py b/test/test_models/test_v1beta1_relation.py deleted file mode 100644 index 2760e74..0000000 --- a/test/test_models/test_v1beta1_relation.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_relation import V1beta1Relation -from frontier_api import configuration - - -class TestV1beta1Relation(unittest.TestCase): - """V1beta1Relation unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_relation_request_body.py b/test/test_models/test_v1beta1_relation_request_body.py deleted file mode 100644 index aa9e000..0000000 --- a/test/test_models/test_v1beta1_relation_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_relation_request_body import V1beta1RelationRequestBody -from frontier_api import configuration - - -class TestV1beta1RelationRequestBody(unittest.TestCase): - """V1beta1RelationRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_resource.py b/test/test_models/test_v1beta1_resource.py deleted file mode 100644 index b1c9ebd..0000000 --- a/test/test_models/test_v1beta1_resource.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_resource import V1beta1Resource -from frontier_api import configuration - - -class TestV1beta1Resource(unittest.TestCase): - """V1beta1Resource unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_resource_request_body.py b/test/test_models/test_v1beta1_resource_request_body.py deleted file mode 100644 index 8c0808c..0000000 --- a/test/test_models/test_v1beta1_resource_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_resource_request_body import V1beta1ResourceRequestBody -from frontier_api import configuration - - -class TestV1beta1ResourceRequestBody(unittest.TestCase): - """V1beta1ResourceRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_role.py b/test/test_models/test_v1beta1_role.py deleted file mode 100644 index a049e6c..0000000 --- a/test/test_models/test_v1beta1_role.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_role import V1beta1Role -from frontier_api import configuration - - -class TestV1beta1Role(unittest.TestCase): - """V1beta1Role unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_role_request_body.py b/test/test_models/test_v1beta1_role_request_body.py deleted file mode 100644 index 9445db0..0000000 --- a/test/test_models/test_v1beta1_role_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_role_request_body import V1beta1RoleRequestBody -from frontier_api import configuration - - -class TestV1beta1RoleRequestBody(unittest.TestCase): - """V1beta1RoleRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_secret_credential.py b/test/test_models/test_v1beta1_secret_credential.py deleted file mode 100644 index cf500ed..0000000 --- a/test/test_models/test_v1beta1_secret_credential.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_secret_credential import V1beta1SecretCredential -from frontier_api import configuration - - -class TestV1beta1SecretCredential(unittest.TestCase): - """V1beta1SecretCredential unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_service_user.py b/test/test_models/test_v1beta1_service_user.py deleted file mode 100644 index f84ba7e..0000000 --- a/test/test_models/test_v1beta1_service_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_service_user import V1beta1ServiceUser -from frontier_api import configuration - - -class TestV1beta1ServiceUser(unittest.TestCase): - """V1beta1ServiceUser unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_service_user_key.py b/test/test_models/test_v1beta1_service_user_key.py deleted file mode 100644 index 87acf2b..0000000 --- a/test/test_models/test_v1beta1_service_user_key.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_service_user_key import V1beta1ServiceUserKey -from frontier_api import configuration - - -class TestV1beta1ServiceUserKey(unittest.TestCase): - """V1beta1ServiceUserKey unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_service_user_request_body.py b/test/test_models/test_v1beta1_service_user_request_body.py deleted file mode 100644 index 762bb4a..0000000 --- a/test/test_models/test_v1beta1_service_user_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody -from frontier_api import configuration - - -class TestV1beta1ServiceUserRequestBody(unittest.TestCase): - """V1beta1ServiceUserRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_current_user_response.py b/test/test_models/test_v1beta1_update_current_user_response.py deleted file mode 100644 index 9056174..0000000 --- a/test/test_models/test_v1beta1_update_current_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse -from frontier_api import configuration - - -class TestV1beta1UpdateCurrentUserResponse(unittest.TestCase): - """V1beta1UpdateCurrentUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_group_response.py b/test/test_models/test_v1beta1_update_group_response.py deleted file mode 100644 index 3081f73..0000000 --- a/test/test_models/test_v1beta1_update_group_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_group_response import V1beta1UpdateGroupResponse -from frontier_api import configuration - - -class TestV1beta1UpdateGroupResponse(unittest.TestCase): - """V1beta1UpdateGroupResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_meta_schema_response.py b/test/test_models/test_v1beta1_update_meta_schema_response.py deleted file mode 100644 index d7ed380..0000000 --- a/test/test_models/test_v1beta1_update_meta_schema_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse -from frontier_api import configuration - - -class TestV1beta1UpdateMetaSchemaResponse(unittest.TestCase): - """V1beta1UpdateMetaSchemaResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_organization_response.py b/test/test_models/test_v1beta1_update_organization_response.py deleted file mode 100644 index f60d24a..0000000 --- a/test/test_models/test_v1beta1_update_organization_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse -from frontier_api import configuration - - -class TestV1beta1UpdateOrganizationResponse(unittest.TestCase): - """V1beta1UpdateOrganizationResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_organization_role_response.py b/test/test_models/test_v1beta1_update_organization_role_response.py deleted file mode 100644 index a9f7695..0000000 --- a/test/test_models/test_v1beta1_update_organization_role_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse -from frontier_api import configuration - - -class TestV1beta1UpdateOrganizationRoleResponse(unittest.TestCase): - """V1beta1UpdateOrganizationRoleResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_permission_response.py b/test/test_models/test_v1beta1_update_permission_response.py deleted file mode 100644 index 4e93c7d..0000000 --- a/test/test_models/test_v1beta1_update_permission_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse -from frontier_api import configuration - - -class TestV1beta1UpdatePermissionResponse(unittest.TestCase): - """V1beta1UpdatePermissionResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_policy_response.py b/test/test_models/test_v1beta1_update_policy_response.py deleted file mode 100644 index fece920..0000000 --- a/test/test_models/test_v1beta1_update_policy_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse -from frontier_api import configuration - - -class TestV1beta1UpdatePolicyResponse(unittest.TestCase): - """V1beta1UpdatePolicyResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_project_resource_response.py b/test/test_models/test_v1beta1_update_project_resource_response.py deleted file mode 100644 index edb7cff..0000000 --- a/test/test_models/test_v1beta1_update_project_resource_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse -from frontier_api import configuration - - -class TestV1beta1UpdateProjectResourceResponse(unittest.TestCase): - """V1beta1UpdateProjectResourceResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_project_response.py b/test/test_models/test_v1beta1_update_project_response.py deleted file mode 100644 index 4d99218..0000000 --- a/test/test_models/test_v1beta1_update_project_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_project_response import V1beta1UpdateProjectResponse -from frontier_api import configuration - - -class TestV1beta1UpdateProjectResponse(unittest.TestCase): - """V1beta1UpdateProjectResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_role_response.py b/test/test_models/test_v1beta1_update_role_response.py deleted file mode 100644 index b7be2d6..0000000 --- a/test/test_models/test_v1beta1_update_role_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_role_response import V1beta1UpdateRoleResponse -from frontier_api import configuration - - -class TestV1beta1UpdateRoleResponse(unittest.TestCase): - """V1beta1UpdateRoleResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_update_user_response.py b/test/test_models/test_v1beta1_update_user_response.py deleted file mode 100644 index c0379f7..0000000 --- a/test/test_models/test_v1beta1_update_user_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_update_user_response import V1beta1UpdateUserResponse -from frontier_api import configuration - - -class TestV1beta1UpdateUserResponse(unittest.TestCase): - """V1beta1UpdateUserResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_user.py b/test/test_models/test_v1beta1_user.py deleted file mode 100644 index d8ab15e..0000000 --- a/test/test_models/test_v1beta1_user.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_user import V1beta1User -from frontier_api import configuration - - -class TestV1beta1User(unittest.TestCase): - """V1beta1User unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_user_request_body.py b/test/test_models/test_v1beta1_user_request_body.py deleted file mode 100644 index fb55d76..0000000 --- a/test/test_models/test_v1beta1_user_request_body.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_user_request_body import V1beta1UserRequestBody -from frontier_api import configuration - - -class TestV1beta1UserRequestBody(unittest.TestCase): - """V1beta1UserRequestBody unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_verify_organization_domain_response.py b/test/test_models/test_v1beta1_verify_organization_domain_response.py deleted file mode 100644 index 7e74cf2..0000000 --- a/test/test_models/test_v1beta1_verify_organization_domain_response.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding: utf-8 - -""" - Frontier Administration API - - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 - - The version of the OpenAPI document: 0.2.0 - Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" - -import unittest - -import frontier_api -from frontier_api.model.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse -from frontier_api import configuration - - -class TestV1beta1VerifyOrganizationDomainResponse(unittest.TestCase): - """V1beta1VerifyOrganizationDomainResponse unit test stubs""" - _configuration = configuration.Configuration() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_models/test_v1beta1_create_service_user_secret_response.py b/test/test_namespace_api.py similarity index 55% rename from test/test_models/test_v1beta1_create_service_user_secret_response.py rename to test/test_namespace_api.py index dc910bd..9706500 100644 --- a/test/test_models/test_v1beta1_create_service_user_secret_response.py +++ b/test/test_namespace_api.py @@ -3,23 +3,43 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import unittest -import frontier_api -from frontier_api.model.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse -from frontier_api import configuration +from frontier_api.api.namespace_api import NamespaceApi + + +class TestNamespaceApi(unittest.TestCase): + """NamespaceApi unit test stubs""" + + def setUp(self) -> None: + self.api = NamespaceApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_get_namespace(self) -> None: + """Test case for frontier_service_get_namespace + + Get namespace + """ + pass + def test_frontier_service_list_namespaces(self) -> None: + """Test case for frontier_service_list_namespaces -class TestV1beta1CreateServiceUserSecretResponse(unittest.TestCase): - """V1beta1CreateServiceUserSecretResponse unit test stubs""" - _configuration = configuration.Configuration() + Get all namespaces + """ + pass if __name__ == '__main__': diff --git a/test/test_organization_api.py b/test/test_organization_api.py new file mode 100644 index 0000000..4f7942c --- /dev/null +++ b/test/test_organization_api.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.organization_api import OrganizationApi + + +class TestOrganizationApi(unittest.TestCase): + """OrganizationApi unit test stubs""" + + def setUp(self) -> None: + self.api = OrganizationApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_list_all_organizations(self) -> None: + """Test case for admin_service_list_all_organizations + + List all organizations + """ + pass + + def test_frontier_service_accept_organization_invitation(self) -> None: + """Test case for frontier_service_accept_organization_invitation + + Accept pending invitation + """ + pass + + def test_frontier_service_add_organization_users(self) -> None: + """Test case for frontier_service_add_organization_users + + Add organization user + """ + pass + + def test_frontier_service_create_organization(self) -> None: + """Test case for frontier_service_create_organization + + Create organization + """ + pass + + def test_frontier_service_create_organization_domain(self) -> None: + """Test case for frontier_service_create_organization_domain + + Create org domain + """ + pass + + def test_frontier_service_create_organization_invitation(self) -> None: + """Test case for frontier_service_create_organization_invitation + + Invite user + """ + pass + + def test_frontier_service_delete_organization(self) -> None: + """Test case for frontier_service_delete_organization + + Delete organization + """ + pass + + def test_frontier_service_delete_organization_domain(self) -> None: + """Test case for frontier_service_delete_organization_domain + + Delete org domain + """ + pass + + def test_frontier_service_delete_organization_invitation(self) -> None: + """Test case for frontier_service_delete_organization_invitation + + Delete pending invitation + """ + pass + + def test_frontier_service_disable_organization(self) -> None: + """Test case for frontier_service_disable_organization + + Disable organization + """ + pass + + def test_frontier_service_enable_organization(self) -> None: + """Test case for frontier_service_enable_organization + + Enable organization + """ + pass + + def test_frontier_service_get_organization(self) -> None: + """Test case for frontier_service_get_organization + + Get organization + """ + pass + + def test_frontier_service_get_organization_domain(self) -> None: + """Test case for frontier_service_get_organization_domain + + Get org domain + """ + pass + + def test_frontier_service_get_organization_invitation(self) -> None: + """Test case for frontier_service_get_organization_invitation + + Get pending invitation + """ + pass + + def test_frontier_service_join_organization(self) -> None: + """Test case for frontier_service_join_organization + + Join organization + """ + pass + + def test_frontier_service_list_organization_admins(self) -> None: + """Test case for frontier_service_list_organization_admins + + List organization admins + """ + pass + + def test_frontier_service_list_organization_domains(self) -> None: + """Test case for frontier_service_list_organization_domains + + List org domains + """ + pass + + def test_frontier_service_list_organization_invitations(self) -> None: + """Test case for frontier_service_list_organization_invitations + + List pending invitations + """ + pass + + def test_frontier_service_list_organization_projects(self) -> None: + """Test case for frontier_service_list_organization_projects + + Get organization projects + """ + pass + + def test_frontier_service_list_organization_service_users(self) -> None: + """Test case for frontier_service_list_organization_service_users + + List organization service users + """ + pass + + def test_frontier_service_list_organization_users(self) -> None: + """Test case for frontier_service_list_organization_users + + List organization users + """ + pass + + def test_frontier_service_list_organizations(self) -> None: + """Test case for frontier_service_list_organizations + + List organizations + """ + pass + + def test_frontier_service_remove_organization_user(self) -> None: + """Test case for frontier_service_remove_organization_user + + Remove organization user + """ + pass + + def test_frontier_service_update_organization(self) -> None: + """Test case for frontier_service_update_organization + + Update organization + """ + pass + + def test_frontier_service_verify_organization_domain(self) -> None: + """Test case for frontier_service_verify_organization_domain + + Verify org domain + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paths/__init__.py b/test/test_paths/__init__.py deleted file mode 100644 index 1309632..0000000 --- a/test/test_paths/__init__.py +++ /dev/null @@ -1,68 +0,0 @@ -import json -import typing - -import urllib3 -from urllib3._collections import HTTPHeaderDict - - -class ApiTestMixin: - json_content_type = 'application/json' - user_agent = 'OpenAPI-Generator/1.0.0/python' - - @classmethod - def assert_pool_manager_request_called_with( - cls, - mock_request, - url: str, - method: str = 'POST', - body: typing.Optional[bytes] = None, - content_type: typing.Optional[str] = None, - accept_content_type: typing.Optional[str] = None, - stream: bool = False, - ): - headers = { - 'User-Agent': cls.user_agent - } - if accept_content_type: - headers['Accept'] = accept_content_type - if content_type: - headers['Content-Type'] = content_type - kwargs = dict( - headers=HTTPHeaderDict(headers), - preload_content=not stream, - timeout=None, - ) - if content_type and method != 'GET': - kwargs['body'] = body - mock_request.assert_called_with( - method, - url, - **kwargs - ) - - @staticmethod - def headers_for_content_type(content_type: str) -> typing.Dict[str, str]: - return {'content-type': content_type} - - @classmethod - def response( - cls, - body: typing.Union[str, bytes], - status: int = 200, - content_type: str = json_content_type, - headers: typing.Optional[typing.Dict[str, str]] = None, - preload_content: bool = True - ) -> urllib3.HTTPResponse: - if headers is None: - headers = {} - headers.update(cls.headers_for_content_type(content_type)) - return urllib3.HTTPResponse( - body, - headers=headers, - status=status, - preload_content=preload_content - ) - - @staticmethod - def json_bytes(in_data: typing.Any) -> bytes: - return json.dumps(in_data, separators=(",", ":"), ensure_ascii=False).encode('utf-8') diff --git a/test/test_paths/test_v1beta1_admin_groups/__init__.py b/test/test_paths/test_v1beta1_admin_groups/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_admin_groups/test_get.py b/test/test_paths/test_v1beta1_admin_groups/test_get.py deleted file mode 100644 index ede3188..0000000 --- a/test/test_paths/test_v1beta1_admin_groups/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_admin_groups import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AdminGroups(ApiTestMixin, unittest.TestCase): - """ - V1beta1AdminGroups unit test stubs - List all groups # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_admin_organizations/__init__.py b/test/test_paths/test_v1beta1_admin_organizations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_admin_organizations/test_get.py b/test/test_paths/test_v1beta1_admin_organizations/test_get.py deleted file mode 100644 index 70e48dd..0000000 --- a/test/test_paths/test_v1beta1_admin_organizations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_admin_organizations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AdminOrganizations(ApiTestMixin, unittest.TestCase): - """ - V1beta1AdminOrganizations unit test stubs - List all organizations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_admin_projects/__init__.py b/test/test_paths/test_v1beta1_admin_projects/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_admin_projects/test_get.py b/test/test_paths/test_v1beta1_admin_projects/test_get.py deleted file mode 100644 index 3470233..0000000 --- a/test/test_paths/test_v1beta1_admin_projects/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_admin_projects import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AdminProjects(ApiTestMixin, unittest.TestCase): - """ - V1beta1AdminProjects unit test stubs - List all projects # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_admin_relations/__init__.py b/test/test_paths/test_v1beta1_admin_relations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_admin_relations/test_get.py b/test/test_paths/test_v1beta1_admin_relations/test_get.py deleted file mode 100644 index fa408ae..0000000 --- a/test/test_paths/test_v1beta1_admin_relations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_admin_relations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AdminRelations(ApiTestMixin, unittest.TestCase): - """ - V1beta1AdminRelations unit test stubs - List all relations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_admin_resources/__init__.py b/test/test_paths/test_v1beta1_admin_resources/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_admin_resources/test_get.py b/test/test_paths/test_v1beta1_admin_resources/test_get.py deleted file mode 100644 index f6fe430..0000000 --- a/test/test_paths/test_v1beta1_admin_resources/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_admin_resources import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AdminResources(ApiTestMixin, unittest.TestCase): - """ - V1beta1AdminResources unit test stubs - List all resources # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_admin_users/__init__.py b/test/test_paths/test_v1beta1_admin_users/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_admin_users/test_get.py b/test/test_paths/test_v1beta1_admin_users/test_get.py deleted file mode 100644 index d4c6f42..0000000 --- a/test/test_paths/test_v1beta1_admin_users/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_admin_users import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AdminUsers(ApiTestMixin, unittest.TestCase): - """ - V1beta1AdminUsers unit test stubs - List all users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth/__init__.py b/test/test_paths/test_v1beta1_auth/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_auth/test_get.py b/test/test_paths/test_v1beta1_auth/test_get.py deleted file mode 100644 index 57f99e8..0000000 --- a/test/test_paths/test_v1beta1_auth/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Auth(ApiTestMixin, unittest.TestCase): - """ - V1beta1Auth unit test stubs - List authentication strategies # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_callback/__init__.py b/test/test_paths/test_v1beta1_auth_callback/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_auth_callback/test_get.py b/test/test_paths/test_v1beta1_auth_callback/test_get.py deleted file mode 100644 index ddb258c..0000000 --- a/test/test_paths/test_v1beta1_auth_callback/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_callback import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthCallback(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthCallback unit test stubs - Callback from a strategy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_callback/test_post.py b/test/test_paths/test_v1beta1_auth_callback/test_post.py deleted file mode 100644 index c0a663e..0000000 --- a/test/test_paths/test_v1beta1_auth_callback/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_callback import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthCallback(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthCallback unit test stubs - Callback from a strategy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_jwks/__init__.py b/test/test_paths/test_v1beta1_auth_jwks/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_auth_jwks/test_get.py b/test/test_paths/test_v1beta1_auth_jwks/test_get.py deleted file mode 100644 index bce50ca..0000000 --- a/test/test_paths/test_v1beta1_auth_jwks/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_jwks import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthJwks(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthJwks unit test stubs - Get well known JWKs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_logout/__init__.py b/test/test_paths/test_v1beta1_auth_logout/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_auth_logout/test_delete.py b/test/test_paths/test_v1beta1_auth_logout/test_delete.py deleted file mode 100644 index 31c4e39..0000000 --- a/test/test_paths/test_v1beta1_auth_logout/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_logout import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthLogout(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthLogout unit test stubs - Logout from a strategy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_logout/test_get.py b/test/test_paths/test_v1beta1_auth_logout/test_get.py deleted file mode 100644 index 3d2668b..0000000 --- a/test/test_paths/test_v1beta1_auth_logout/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_logout import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthLogout(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthLogout unit test stubs - Logout from a strategy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_register_strategy_name/__init__.py b/test/test_paths/test_v1beta1_auth_register_strategy_name/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_auth_register_strategy_name/test_get.py b/test/test_paths/test_v1beta1_auth_register_strategy_name/test_get.py deleted file mode 100644 index bf3aa3d..0000000 --- a/test/test_paths/test_v1beta1_auth_register_strategy_name/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_register_strategy_name import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthRegisterStrategyName(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthRegisterStrategyName unit test stubs - Authenticate with a strategy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_register_strategy_name/test_post.py b/test/test_paths/test_v1beta1_auth_register_strategy_name/test_post.py deleted file mode 100644 index 899674d..0000000 --- a/test/test_paths/test_v1beta1_auth_register_strategy_name/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_register_strategy_name import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthRegisterStrategyName(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthRegisterStrategyName unit test stubs - Authenticate with a strategy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_auth_token/__init__.py b/test/test_paths/test_v1beta1_auth_token/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_auth_token/test_post.py b/test/test_paths/test_v1beta1_auth_token/test_post.py deleted file mode 100644 index 56da32a..0000000 --- a/test/test_paths/test_v1beta1_auth_token/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_auth_token import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1AuthToken(ApiTestMixin, unittest.TestCase): - """ - V1beta1AuthToken unit test stubs - Generate access token by given credentials # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_batchcheck/__init__.py b/test/test_paths/test_v1beta1_batchcheck/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_batchcheck/test_post.py b/test/test_paths/test_v1beta1_batchcheck/test_post.py deleted file mode 100644 index 5891b71..0000000 --- a/test/test_paths/test_v1beta1_batchcheck/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_batchcheck import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Batchcheck(ApiTestMixin, unittest.TestCase): - """ - V1beta1Batchcheck unit test stubs - Batch check # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_check/__init__.py b/test/test_paths/test_v1beta1_check/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_check/test_post.py b/test/test_paths/test_v1beta1_check/test_post.py deleted file mode 100644 index 952eb97..0000000 --- a/test/test_paths/test_v1beta1_check/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_check import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Check(ApiTestMixin, unittest.TestCase): - """ - V1beta1Check unit test stubs - Check # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_groups_id_preferences/__init__.py b/test/test_paths/test_v1beta1_groups_id_preferences/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_groups_id_preferences/test_get.py b/test/test_paths/test_v1beta1_groups_id_preferences/test_get.py deleted file mode 100644 index e2d09c7..0000000 --- a/test/test_paths/test_v1beta1_groups_id_preferences/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_groups_id_preferences import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1GroupsIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1GroupsIdPreferences unit test stubs - List group preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_groups_id_preferences/test_post.py b/test/test_paths/test_v1beta1_groups_id_preferences/test_post.py deleted file mode 100644 index ae8913a..0000000 --- a/test/test_paths/test_v1beta1_groups_id_preferences/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_groups_id_preferences import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1GroupsIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1GroupsIdPreferences unit test stubs - Create group preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_meta_schemas/__init__.py b/test/test_paths/test_v1beta1_meta_schemas/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_meta_schemas/test_get.py b/test/test_paths/test_v1beta1_meta_schemas/test_get.py deleted file mode 100644 index 6c0b87c..0000000 --- a/test/test_paths/test_v1beta1_meta_schemas/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_meta_schemas import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1MetaSchemas(ApiTestMixin, unittest.TestCase): - """ - V1beta1MetaSchemas unit test stubs - List metaschemas # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_meta_schemas/test_post.py b/test/test_paths/test_v1beta1_meta_schemas/test_post.py deleted file mode 100644 index 95e8ae9..0000000 --- a/test/test_paths/test_v1beta1_meta_schemas/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_meta_schemas import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1MetaSchemas(ApiTestMixin, unittest.TestCase): - """ - V1beta1MetaSchemas unit test stubs - Create metaschema # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_meta_schemas_id/__init__.py b/test/test_paths/test_v1beta1_meta_schemas_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_meta_schemas_id/test_delete.py b/test/test_paths/test_v1beta1_meta_schemas_id/test_delete.py deleted file mode 100644 index 91d6d0e..0000000 --- a/test/test_paths/test_v1beta1_meta_schemas_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_meta_schemas_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1MetaSchemasId(ApiTestMixin, unittest.TestCase): - """ - V1beta1MetaSchemasId unit test stubs - Delete metaschema # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_meta_schemas_id/test_get.py b/test/test_paths/test_v1beta1_meta_schemas_id/test_get.py deleted file mode 100644 index 90eec52..0000000 --- a/test/test_paths/test_v1beta1_meta_schemas_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_meta_schemas_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1MetaSchemasId(ApiTestMixin, unittest.TestCase): - """ - V1beta1MetaSchemasId unit test stubs - Get metaschema # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_meta_schemas_id/test_put.py b/test/test_paths/test_v1beta1_meta_schemas_id/test_put.py deleted file mode 100644 index c82e95b..0000000 --- a/test/test_paths/test_v1beta1_meta_schemas_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_meta_schemas_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1MetaSchemasId(ApiTestMixin, unittest.TestCase): - """ - V1beta1MetaSchemasId unit test stubs - Update metaschema # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_namespaces/__init__.py b/test/test_paths/test_v1beta1_namespaces/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_namespaces/test_get.py b/test/test_paths/test_v1beta1_namespaces/test_get.py deleted file mode 100644 index 5f48f3e..0000000 --- a/test/test_paths/test_v1beta1_namespaces/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_namespaces import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Namespaces(ApiTestMixin, unittest.TestCase): - """ - V1beta1Namespaces unit test stubs - Get all namespaces # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_namespaces_id/__init__.py b/test/test_paths/test_v1beta1_namespaces_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_namespaces_id/test_get.py b/test/test_paths/test_v1beta1_namespaces_id/test_get.py deleted file mode 100644 index d872348..0000000 --- a/test/test_paths/test_v1beta1_namespaces_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_namespaces_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1NamespacesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1NamespacesId unit test stubs - Get namespace # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organization_org_id_auditlogs/__init__.py b/test/test_paths/test_v1beta1_organization_org_id_auditlogs/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_get.py b/test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_get.py deleted file mode 100644 index 5d206f7..0000000 --- a/test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organization_org_id_auditlogs import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationOrgIdAuditlogs(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationOrgIdAuditlogs unit test stubs - List audit logs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_post.py b/test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_post.py deleted file mode 100644 index 85e4111..0000000 --- a/test/test_paths/test_v1beta1_organization_org_id_auditlogs/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organization_org_id_auditlogs import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationOrgIdAuditlogs(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationOrgIdAuditlogs unit test stubs - Create audit log # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/__init__.py b/test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/test_get.py b/test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/test_get.py deleted file mode 100644 index ff7df56..0000000 --- a/test/test_paths/test_v1beta1_organization_org_id_auditlogs_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organization_org_id_auditlogs_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationOrgIdAuditlogsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationOrgIdAuditlogsId unit test stubs - Get audit log # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations/__init__.py b/test/test_paths/test_v1beta1_organizations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations/test_get.py b/test/test_paths/test_v1beta1_organizations/test_get.py deleted file mode 100644 index 96806f2..0000000 --- a/test/test_paths/test_v1beta1_organizations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Organizations(ApiTestMixin, unittest.TestCase): - """ - V1beta1Organizations unit test stubs - List organizations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations/test_post.py b/test/test_paths/test_v1beta1_organizations/test_post.py deleted file mode 100644 index 42485a2..0000000 --- a/test/test_paths/test_v1beta1_organizations/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Organizations(ApiTestMixin, unittest.TestCase): - """ - V1beta1Organizations unit test stubs - Create organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id/__init__.py b/test/test_paths/test_v1beta1_organizations_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_id/test_delete.py deleted file mode 100644 index f9b6170..0000000 --- a/test/test_paths/test_v1beta1_organizations_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsId unit test stubs - Delete organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id/test_get.py b/test/test_paths/test_v1beta1_organizations_id/test_get.py deleted file mode 100644 index ad95058..0000000 --- a/test/test_paths/test_v1beta1_organizations_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsId unit test stubs - Get organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id/test_put.py b/test/test_paths/test_v1beta1_organizations_id/test_put.py deleted file mode 100644 index 9beb248..0000000 --- a/test/test_paths/test_v1beta1_organizations_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsId unit test stubs - Update organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_admins/__init__.py b/test/test_paths/test_v1beta1_organizations_id_admins/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_admins/test_get.py b/test/test_paths/test_v1beta1_organizations_id_admins/test_get.py deleted file mode 100644 index df05b1e..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_admins/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_admins import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdAdmins(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdAdmins unit test stubs - List organization admins # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_disable/__init__.py b/test/test_paths/test_v1beta1_organizations_id_disable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_disable/test_post.py b/test/test_paths/test_v1beta1_organizations_id_disable/test_post.py deleted file mode 100644 index f160797..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_disable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_disable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdDisable(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdDisable unit test stubs - Disable organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_enable/__init__.py b/test/test_paths/test_v1beta1_organizations_id_enable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_enable/test_post.py b/test/test_paths/test_v1beta1_organizations_id_enable/test_post.py deleted file mode 100644 index 7bb17ea..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_enable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_enable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdEnable(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdEnable unit test stubs - Enable organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_preferences/__init__.py b/test/test_paths/test_v1beta1_organizations_id_preferences/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_preferences/test_get.py b/test/test_paths/test_v1beta1_organizations_id_preferences/test_get.py deleted file mode 100644 index e645e62..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_preferences/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_preferences import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdPreferences unit test stubs - List organization preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_preferences/test_post.py b/test/test_paths/test_v1beta1_organizations_id_preferences/test_post.py deleted file mode 100644 index 4f5cc00..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_preferences/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_preferences import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdPreferences unit test stubs - Create organization preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_projects/__init__.py b/test/test_paths/test_v1beta1_organizations_id_projects/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_projects/test_get.py b/test/test_paths/test_v1beta1_organizations_id_projects/test_get.py deleted file mode 100644 index 6ea8d35..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_projects/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_projects import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdProjects(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdProjects unit test stubs - Get organization projects # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_serviceusers/__init__.py b/test/test_paths/test_v1beta1_organizations_id_serviceusers/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_serviceusers/test_get.py b/test/test_paths/test_v1beta1_organizations_id_serviceusers/test_get.py deleted file mode 100644 index 83c818e..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_serviceusers/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_serviceusers import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdServiceusers(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdServiceusers unit test stubs - List organization service users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_users/__init__.py b/test/test_paths/test_v1beta1_organizations_id_users/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_users/test_get.py b/test/test_paths/test_v1beta1_organizations_id_users/test_get.py deleted file mode 100644 index 35d2c93..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_users/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_users import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdUsers(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdUsers unit test stubs - List organization users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_users/test_post.py b/test/test_paths/test_v1beta1_organizations_id_users/test_post.py deleted file mode 100644 index 6bb5922..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_users/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_users import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdUsers(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdUsers unit test stubs - Add organization user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_id_users_user_id/__init__.py b/test/test_paths/test_v1beta1_organizations_id_users_user_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_id_users_user_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_id_users_user_id/test_delete.py deleted file mode 100644 index a407fdf..0000000 --- a/test/test_paths/test_v1beta1_organizations_id_users_user_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_id_users_user_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsIdUsersUserId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsIdUsersUserId unit test stubs - Remove organization user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_domains/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_domains/test_get.py deleted file mode 100644 index 95e81fd..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_domains/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_domains import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdDomains(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdDomains unit test stubs - List org domains # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_domains/test_post.py deleted file mode 100644 index 07527e0..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_domains/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_domains import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdDomains(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdDomains unit test stubs - Create org domain # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains_id/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_domains_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_delete.py deleted file mode 100644 index 54cd5e9..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_domains_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdDomainsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdDomainsId unit test stubs - Delete org domain # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_get.py deleted file mode 100644 index d002c31..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_domains_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_domains_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdDomainsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdDomainsId unit test stubs - Get org domain # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/test_post.py deleted file mode 100644 index 23e4097..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_domains_id_verify/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_domains_id_verify import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdDomainsIdVerify(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdDomainsIdVerify unit test stubs - Verify org domain # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_groups/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_groups/test_get.py deleted file mode 100644 index 6b8326b..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroups(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroups unit test stubs - List organization groups # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_groups/test_post.py deleted file mode 100644 index 538f91a..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroups(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroups unit test stubs - Create group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_delete.py deleted file mode 100644 index 1b20e72..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsId unit test stubs - Delete group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_get.py deleted file mode 100644 index 9323b4f..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsId unit test stubs - Get group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_put.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_put.py deleted file mode 100644 index e3e10ae..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsId unit test stubs - Update group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/test_post.py deleted file mode 100644 index 9fc9967..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_disable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_disable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsIdDisable(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsIdDisable unit test stubs - Disable group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/test_post.py deleted file mode 100644 index 8b8ffc1..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_enable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_enable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsIdEnable(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsIdEnable unit test stubs - Enable group # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_get.py deleted file mode 100644 index 3c5a7db..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsIdUsers(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsIdUsers unit test stubs - List group users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_post.py deleted file mode 100644 index 3189d62..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsIdUsers(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsIdUsers unit test stubs - Add group user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/test_delete.py deleted file mode 100644 index 4bd0f90..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_groups_id_users_user_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_groups_id_users_user_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdGroupsIdUsersUserId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdGroupsIdUsersUserId unit test stubs - Remove group user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations/test_get.py deleted file mode 100644 index d72882c..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_invitations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_invitations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdInvitations(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdInvitations unit test stubs - List pending invitations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations/test_post.py deleted file mode 100644 index 5f89917..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_invitations/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_invitations import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdInvitations(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdInvitations unit test stubs - Invite user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_delete.py deleted file mode 100644 index d6005cf..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdInvitationsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdInvitationsId unit test stubs - Delete pending invitation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_get.py deleted file mode 100644 index 450be06..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdInvitationsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdInvitationsId unit test stubs - Get pending invitation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/test_post.py deleted file mode 100644 index 1290fd5..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_invitations_id_accept/test_post.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_invitations_id_accept import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdInvitationsIdAccept(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdInvitationsIdAccept unit test stubs - Accept pending invitation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_join/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_join/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_join/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_join/test_post.py deleted file mode 100644 index d4309a1..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_join/test_post.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_join import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdJoin(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdJoin unit test stubs - Join organization # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_roles/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_roles/test_get.py deleted file mode 100644 index 5fad3c2..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_roles/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_roles import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdRoles(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdRoles unit test stubs - List organization roles # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles/test_post.py b/test/test_paths/test_v1beta1_organizations_org_id_roles/test_post.py deleted file mode 100644 index c854e13..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_roles/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_roles import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdRoles(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdRoles unit test stubs - Create organization role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/__init__.py b/test/test_paths/test_v1beta1_organizations_org_id_roles_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_delete.py b/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_delete.py deleted file mode 100644 index 0a69110..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_roles_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdRolesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdRolesId unit test stubs - Delete organization role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_get.py b/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_get.py deleted file mode 100644 index 39f3653..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_roles_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdRolesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdRolesId unit test stubs - Get organization role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_put.py b/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_put.py deleted file mode 100644 index 4585794..0000000 --- a/test/test_paths/test_v1beta1_organizations_org_id_roles_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_organizations_org_id_roles_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1OrganizationsOrgIdRolesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1OrganizationsOrgIdRolesId unit test stubs - Update organization role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_permissions/__init__.py b/test/test_paths/test_v1beta1_permissions/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_permissions/test_get.py b/test/test_paths/test_v1beta1_permissions/test_get.py deleted file mode 100644 index e556727..0000000 --- a/test/test_paths/test_v1beta1_permissions/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_permissions import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Permissions(ApiTestMixin, unittest.TestCase): - """ - V1beta1Permissions unit test stubs - Get all permissions # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_permissions/test_post.py b/test/test_paths/test_v1beta1_permissions/test_post.py deleted file mode 100644 index 438b224..0000000 --- a/test/test_paths/test_v1beta1_permissions/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_permissions import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Permissions(ApiTestMixin, unittest.TestCase): - """ - V1beta1Permissions unit test stubs - Create platform permission # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_permissions_id/__init__.py b/test/test_paths/test_v1beta1_permissions_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_permissions_id/test_delete.py b/test/test_paths/test_v1beta1_permissions_id/test_delete.py deleted file mode 100644 index ff26290..0000000 --- a/test/test_paths/test_v1beta1_permissions_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_permissions_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PermissionsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1PermissionsId unit test stubs - Delete platform permission # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_permissions_id/test_get.py b/test/test_paths/test_v1beta1_permissions_id/test_get.py deleted file mode 100644 index af76a9f..0000000 --- a/test/test_paths/test_v1beta1_permissions_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_permissions_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PermissionsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1PermissionsId unit test stubs - Get permission # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_permissions_id/test_put.py b/test/test_paths/test_v1beta1_permissions_id/test_put.py deleted file mode 100644 index 4b116c6..0000000 --- a/test/test_paths/test_v1beta1_permissions_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_permissions_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PermissionsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1PermissionsId unit test stubs - Update platform permission # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_policies/__init__.py b/test/test_paths/test_v1beta1_policies/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_policies/test_get.py b/test/test_paths/test_v1beta1_policies/test_get.py deleted file mode 100644 index b6d605b..0000000 --- a/test/test_paths/test_v1beta1_policies/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_policies import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Policies(ApiTestMixin, unittest.TestCase): - """ - V1beta1Policies unit test stubs - List all policies # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_policies/test_post.py b/test/test_paths/test_v1beta1_policies/test_post.py deleted file mode 100644 index f7f5774..0000000 --- a/test/test_paths/test_v1beta1_policies/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_policies import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Policies(ApiTestMixin, unittest.TestCase): - """ - V1beta1Policies unit test stubs - Create policy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_policies_id/__init__.py b/test/test_paths/test_v1beta1_policies_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_policies_id/test_delete.py b/test/test_paths/test_v1beta1_policies_id/test_delete.py deleted file mode 100644 index f3953cc..0000000 --- a/test/test_paths/test_v1beta1_policies_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_policies_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PoliciesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1PoliciesId unit test stubs - Delete Policy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_policies_id/test_get.py b/test/test_paths/test_v1beta1_policies_id/test_get.py deleted file mode 100644 index 5064b12..0000000 --- a/test/test_paths/test_v1beta1_policies_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_policies_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PoliciesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1PoliciesId unit test stubs - Get policy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_policies_id/test_put.py b/test/test_paths/test_v1beta1_policies_id/test_put.py deleted file mode 100644 index 2b84162..0000000 --- a/test/test_paths/test_v1beta1_policies_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_policies_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PoliciesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1PoliciesId unit test stubs - Update policy # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_preferences/__init__.py b/test/test_paths/test_v1beta1_preferences/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_preferences/test_get.py b/test/test_paths/test_v1beta1_preferences/test_get.py deleted file mode 100644 index e5e43f5..0000000 --- a/test/test_paths/test_v1beta1_preferences/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_preferences import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Preferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1Preferences unit test stubs - List platform preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_preferences/test_post.py b/test/test_paths/test_v1beta1_preferences/test_post.py deleted file mode 100644 index 4eaa265..0000000 --- a/test/test_paths/test_v1beta1_preferences/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_preferences import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Preferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1Preferences unit test stubs - Create platform preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_preferences_traits/__init__.py b/test/test_paths/test_v1beta1_preferences_traits/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_preferences_traits/test_get.py b/test/test_paths/test_v1beta1_preferences_traits/test_get.py deleted file mode 100644 index bd19f0e..0000000 --- a/test/test_paths/test_v1beta1_preferences_traits/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_preferences_traits import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1PreferencesTraits(ApiTestMixin, unittest.TestCase): - """ - V1beta1PreferencesTraits unit test stubs - Describe preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects/__init__.py b/test/test_paths/test_v1beta1_projects/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects/test_post.py b/test/test_paths/test_v1beta1_projects/test_post.py deleted file mode 100644 index b96de25..0000000 --- a/test/test_paths/test_v1beta1_projects/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Projects(ApiTestMixin, unittest.TestCase): - """ - V1beta1Projects unit test stubs - Create project # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id/__init__.py b/test/test_paths/test_v1beta1_projects_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id/test_delete.py b/test/test_paths/test_v1beta1_projects_id/test_delete.py deleted file mode 100644 index 6c1aac1..0000000 --- a/test/test_paths/test_v1beta1_projects_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsId unit test stubs - Delete Project # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id/test_get.py b/test/test_paths/test_v1beta1_projects_id/test_get.py deleted file mode 100644 index 4b2171a..0000000 --- a/test/test_paths/test_v1beta1_projects_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsId unit test stubs - Get project # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id/test_put.py b/test/test_paths/test_v1beta1_projects_id/test_put.py deleted file mode 100644 index a9bcec3..0000000 --- a/test/test_paths/test_v1beta1_projects_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsId unit test stubs - Update project # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_admins/__init__.py b/test/test_paths/test_v1beta1_projects_id_admins/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id_admins/test_get.py b/test/test_paths/test_v1beta1_projects_id_admins/test_get.py deleted file mode 100644 index 6cac251..0000000 --- a/test/test_paths/test_v1beta1_projects_id_admins/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_admins import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdAdmins(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdAdmins unit test stubs - List project admins # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_disable/__init__.py b/test/test_paths/test_v1beta1_projects_id_disable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id_disable/test_post.py b/test/test_paths/test_v1beta1_projects_id_disable/test_post.py deleted file mode 100644 index d29fa0f..0000000 --- a/test/test_paths/test_v1beta1_projects_id_disable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_disable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdDisable(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdDisable unit test stubs - Disable project # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_enable/__init__.py b/test/test_paths/test_v1beta1_projects_id_enable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id_enable/test_post.py b/test/test_paths/test_v1beta1_projects_id_enable/test_post.py deleted file mode 100644 index 8136ebf..0000000 --- a/test/test_paths/test_v1beta1_projects_id_enable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_enable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdEnable(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdEnable unit test stubs - Enable project # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_preferences/__init__.py b/test/test_paths/test_v1beta1_projects_id_preferences/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id_preferences/test_get.py b/test/test_paths/test_v1beta1_projects_id_preferences/test_get.py deleted file mode 100644 index bea74e4..0000000 --- a/test/test_paths/test_v1beta1_projects_id_preferences/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_preferences import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdPreferences unit test stubs - List project preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_preferences/test_post.py b/test/test_paths/test_v1beta1_projects_id_preferences/test_post.py deleted file mode 100644 index e859efa..0000000 --- a/test/test_paths/test_v1beta1_projects_id_preferences/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_preferences import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdPreferences unit test stubs - Create project preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_serviceusers/__init__.py b/test/test_paths/test_v1beta1_projects_id_serviceusers/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id_serviceusers/test_get.py b/test/test_paths/test_v1beta1_projects_id_serviceusers/test_get.py deleted file mode 100644 index 4b1b4ac..0000000 --- a/test/test_paths/test_v1beta1_projects_id_serviceusers/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_serviceusers import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdServiceusers(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdServiceusers unit test stubs - List project serviceusers # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_id_users/__init__.py b/test/test_paths/test_v1beta1_projects_id_users/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_id_users/test_get.py b/test/test_paths/test_v1beta1_projects_id_users/test_get.py deleted file mode 100644 index 3527084..0000000 --- a/test/test_paths/test_v1beta1_projects_id_users/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_id_users import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsIdUsers(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsIdUsers unit test stubs - List project users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources/__init__.py b/test/test_paths/test_v1beta1_projects_project_id_resources/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources/test_get.py b/test/test_paths/test_v1beta1_projects_project_id_resources/test_get.py deleted file mode 100644 index 63de2ac..0000000 --- a/test/test_paths/test_v1beta1_projects_project_id_resources/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_project_id_resources import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsProjectIdResources(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsProjectIdResources unit test stubs - Get all resources # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources/test_post.py b/test/test_paths/test_v1beta1_projects_project_id_resources/test_post.py deleted file mode 100644 index d9f929d..0000000 --- a/test/test_paths/test_v1beta1_projects_project_id_resources/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_project_id_resources import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsProjectIdResources(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsProjectIdResources unit test stubs - Create resource # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources_id/__init__.py b/test/test_paths/test_v1beta1_projects_project_id_resources_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_delete.py b/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_delete.py deleted file mode 100644 index 93a63ce..0000000 --- a/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_project_id_resources_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsProjectIdResourcesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsProjectIdResourcesId unit test stubs - Delete resource # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_get.py b/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_get.py deleted file mode 100644 index bb4ba20..0000000 --- a/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_project_id_resources_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsProjectIdResourcesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsProjectIdResourcesId unit test stubs - Get resource # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_put.py b/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_put.py deleted file mode 100644 index 6b00a82..0000000 --- a/test/test_paths/test_v1beta1_projects_project_id_resources_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_projects_project_id_resources_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ProjectsProjectIdResourcesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ProjectsProjectIdResourcesId unit test stubs - Update resource # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_relations/__init__.py b/test/test_paths/test_v1beta1_relations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_relations/test_post.py b/test/test_paths/test_v1beta1_relations/test_post.py deleted file mode 100644 index 1efc992..0000000 --- a/test/test_paths/test_v1beta1_relations/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_relations import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Relations(ApiTestMixin, unittest.TestCase): - """ - V1beta1Relations unit test stubs - Create relation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_relations_id/__init__.py b/test/test_paths/test_v1beta1_relations_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_relations_id/test_get.py b/test/test_paths/test_v1beta1_relations_id/test_get.py deleted file mode 100644 index 179315a..0000000 --- a/test/test_paths/test_v1beta1_relations_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_relations_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1RelationsId(ApiTestMixin, unittest.TestCase): - """ - V1beta1RelationsId unit test stubs - Get relation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/__init__.py b/test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/test_delete.py b/test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/test_delete.py deleted file mode 100644 index d3ab1a9..0000000 --- a/test/test_paths/test_v1beta1_relations_relation_object_object_subject_subject/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_relations_relation_object_object_subject_subject import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1RelationsRelationObjectObjectSubjectSubject(ApiTestMixin, unittest.TestCase): - """ - V1beta1RelationsRelationObjectObjectSubjectSubject unit test stubs - Delete relation # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_roles/__init__.py b/test/test_paths/test_v1beta1_roles/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_roles/test_get.py b/test/test_paths/test_v1beta1_roles/test_get.py deleted file mode 100644 index 261c45c..0000000 --- a/test/test_paths/test_v1beta1_roles/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_roles import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Roles(ApiTestMixin, unittest.TestCase): - """ - V1beta1Roles unit test stubs - List platform roles # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_roles/test_post.py b/test/test_paths/test_v1beta1_roles/test_post.py deleted file mode 100644 index c7a5f7b..0000000 --- a/test/test_paths/test_v1beta1_roles/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_roles import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Roles(ApiTestMixin, unittest.TestCase): - """ - V1beta1Roles unit test stubs - Create platform role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_roles_id/__init__.py b/test/test_paths/test_v1beta1_roles_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_roles_id/test_delete.py b/test/test_paths/test_v1beta1_roles_id/test_delete.py deleted file mode 100644 index c5ec068..0000000 --- a/test/test_paths/test_v1beta1_roles_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_roles_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1RolesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1RolesId unit test stubs - Delete platform role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_roles_id/test_put.py b/test/test_paths/test_v1beta1_roles_id/test_put.py deleted file mode 100644 index 72ec70b..0000000 --- a/test/test_paths/test_v1beta1_roles_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_roles_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1RolesId(ApiTestMixin, unittest.TestCase): - """ - V1beta1RolesId unit test stubs - Update role # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers/__init__.py b/test/test_paths/test_v1beta1_serviceusers/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_serviceusers/test_get.py b/test/test_paths/test_v1beta1_serviceusers/test_get.py deleted file mode 100644 index 585208d..0000000 --- a/test/test_paths/test_v1beta1_serviceusers/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Serviceusers(ApiTestMixin, unittest.TestCase): - """ - V1beta1Serviceusers unit test stubs - List org service users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers/test_post.py b/test/test_paths/test_v1beta1_serviceusers/test_post.py deleted file mode 100644 index bb32e2f..0000000 --- a/test/test_paths/test_v1beta1_serviceusers/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Serviceusers(ApiTestMixin, unittest.TestCase): - """ - V1beta1Serviceusers unit test stubs - Create service user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id/__init__.py b/test/test_paths/test_v1beta1_serviceusers_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_serviceusers_id/test_delete.py b/test/test_paths/test_v1beta1_serviceusers_id/test_delete.py deleted file mode 100644 index c260304..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersId unit test stubs - Delete service user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id/test_get.py b/test/test_paths/test_v1beta1_serviceusers_id/test_get.py deleted file mode 100644 index 7d4f7f4..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersId unit test stubs - Get service user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_keys/__init__.py b/test/test_paths/test_v1beta1_serviceusers_id_keys/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_serviceusers_id_keys/test_get.py b/test/test_paths/test_v1beta1_serviceusers_id_keys/test_get.py deleted file mode 100644 index 85361ba..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_keys/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_keys import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdKeys(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdKeys unit test stubs - List service user keys # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_keys/test_post.py b/test/test_paths/test_v1beta1_serviceusers_id_keys/test_post.py deleted file mode 100644 index 9fa48bd..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_keys/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_keys import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdKeys(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdKeys unit test stubs - Create service user key # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/__init__.py b/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_delete.py b/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_delete.py deleted file mode 100644 index 4bd36ac..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdKeysKeyId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdKeysKeyId unit test stubs - Delete service user key # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_get.py b/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_get.py deleted file mode 100644 index aafe984..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_keys_key_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_keys_key_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdKeysKeyId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdKeysKeyId unit test stubs - Get service user key # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_secrets/__init__.py b/test/test_paths/test_v1beta1_serviceusers_id_secrets/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_serviceusers_id_secrets/test_get.py b/test/test_paths/test_v1beta1_serviceusers_id_secrets/test_get.py deleted file mode 100644 index 34300b6..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_secrets/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_secrets import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdSecrets(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdSecrets unit test stubs - List service user secrets # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_secrets/test_post.py b/test/test_paths/test_v1beta1_serviceusers_id_secrets/test_post.py deleted file mode 100644 index 0e699c1..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_secrets/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_secrets import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdSecrets(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdSecrets unit test stubs - Create service user secret # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/__init__.py b/test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/test_delete.py b/test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/test_delete.py deleted file mode 100644 index 7f39697..0000000 --- a/test/test_paths/test_v1beta1_serviceusers_id_secrets_secret_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_serviceusers_id_secrets_secret_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1ServiceusersIdSecretsSecretId(ApiTestMixin, unittest.TestCase): - """ - V1beta1ServiceusersIdSecretsSecretId unit test stubs - Delete service user secret # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users/__init__.py b/test/test_paths/test_v1beta1_users/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users/test_get.py b/test/test_paths/test_v1beta1_users/test_get.py deleted file mode 100644 index 7771a54..0000000 --- a/test/test_paths/test_v1beta1_users/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Users(ApiTestMixin, unittest.TestCase): - """ - V1beta1Users unit test stubs - List public users # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users/test_post.py b/test/test_paths/test_v1beta1_users/test_post.py deleted file mode 100644 index 502938a..0000000 --- a/test/test_paths/test_v1beta1_users/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1Users(ApiTestMixin, unittest.TestCase): - """ - V1beta1Users unit test stubs - Create user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id/__init__.py b/test/test_paths/test_v1beta1_users_id/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id/test_delete.py b/test/test_paths/test_v1beta1_users_id/test_delete.py deleted file mode 100644 index a5580aa..0000000 --- a/test/test_paths/test_v1beta1_users_id/test_delete.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id import delete # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersId(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersId unit test stubs - Delete user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = delete.ApiFordelete(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id/test_get.py b/test/test_paths/test_v1beta1_users_id/test_get.py deleted file mode 100644 index db2f01a..0000000 --- a/test/test_paths/test_v1beta1_users_id/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersId(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersId unit test stubs - Get user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id/test_put.py b/test/test_paths/test_v1beta1_users_id/test_put.py deleted file mode 100644 index c9bd589..0000000 --- a/test/test_paths/test_v1beta1_users_id/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersId(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersId unit test stubs - Update user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_disable/__init__.py b/test/test_paths/test_v1beta1_users_id_disable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_disable/test_post.py b/test/test_paths/test_v1beta1_users_id_disable/test_post.py deleted file mode 100644 index 8d2a47c..0000000 --- a/test/test_paths/test_v1beta1_users_id_disable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_disable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdDisable(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdDisable unit test stubs - Disable user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_enable/__init__.py b/test/test_paths/test_v1beta1_users_id_enable/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_enable/test_post.py b/test/test_paths/test_v1beta1_users_id_enable/test_post.py deleted file mode 100644 index c4b1c20..0000000 --- a/test/test_paths/test_v1beta1_users_id_enable/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_enable import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdEnable(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdEnable unit test stubs - Enable user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_groups/__init__.py b/test/test_paths/test_v1beta1_users_id_groups/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_groups/test_get.py b/test/test_paths/test_v1beta1_users_id_groups/test_get.py deleted file mode 100644 index 29f78cb..0000000 --- a/test/test_paths/test_v1beta1_users_id_groups/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_groups import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdGroups(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdGroups unit test stubs - List user groups # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_invitations/__init__.py b/test/test_paths/test_v1beta1_users_id_invitations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_invitations/test_get.py b/test/test_paths/test_v1beta1_users_id_invitations/test_get.py deleted file mode 100644 index cb63d49..0000000 --- a/test/test_paths/test_v1beta1_users_id_invitations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_invitations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdInvitations(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdInvitations unit test stubs - List user invitations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_organizations/__init__.py b/test/test_paths/test_v1beta1_users_id_organizations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_organizations/test_get.py b/test/test_paths/test_v1beta1_users_id_organizations/test_get.py deleted file mode 100644 index 55cabf0..0000000 --- a/test/test_paths/test_v1beta1_users_id_organizations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_organizations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdOrganizations(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdOrganizations unit test stubs - Get user organizations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_preferences/__init__.py b/test/test_paths/test_v1beta1_users_id_preferences/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_preferences/test_get.py b/test/test_paths/test_v1beta1_users_id_preferences/test_get.py deleted file mode 100644 index 0a80764..0000000 --- a/test/test_paths/test_v1beta1_users_id_preferences/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_preferences import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdPreferences unit test stubs - List user preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_preferences/test_post.py b/test/test_paths/test_v1beta1_users_id_preferences/test_post.py deleted file mode 100644 index 29b829e..0000000 --- a/test/test_paths/test_v1beta1_users_id_preferences/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_preferences import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdPreferences unit test stubs - Create user preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_id_projects/__init__.py b/test/test_paths/test_v1beta1_users_id_projects/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_id_projects/test_get.py b/test/test_paths/test_v1beta1_users_id_projects/test_get.py deleted file mode 100644 index fca1e9b..0000000 --- a/test/test_paths/test_v1beta1_users_id_projects/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_id_projects import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersIdProjects(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersIdProjects unit test stubs - Get user projects # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self/__init__.py b/test/test_paths/test_v1beta1_users_self/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_self/test_get.py b/test/test_paths/test_v1beta1_users_self/test_get.py deleted file mode 100644 index fac1e1e..0000000 --- a/test/test_paths/test_v1beta1_users_self/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelf(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelf unit test stubs - Get current user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self/test_put.py b/test/test_paths/test_v1beta1_users_self/test_put.py deleted file mode 100644 index f5e34d7..0000000 --- a/test/test_paths/test_v1beta1_users_self/test_put.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self import put # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelf(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelf unit test stubs - Update current user # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = put.ApiForput(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self_groups/__init__.py b/test/test_paths/test_v1beta1_users_self_groups/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_self_groups/test_get.py b/test/test_paths/test_v1beta1_users_self_groups/test_get.py deleted file mode 100644 index 6c15309..0000000 --- a/test/test_paths/test_v1beta1_users_self_groups/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self_groups import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelfGroups(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelfGroups unit test stubs - List my groups # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self_organizations/__init__.py b/test/test_paths/test_v1beta1_users_self_organizations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_self_organizations/test_get.py b/test/test_paths/test_v1beta1_users_self_organizations/test_get.py deleted file mode 100644 index 082ccfe..0000000 --- a/test/test_paths/test_v1beta1_users_self_organizations/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self_organizations import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelfOrganizations(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelfOrganizations unit test stubs - Get my organizations # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self_preferences/__init__.py b/test/test_paths/test_v1beta1_users_self_preferences/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_self_preferences/test_get.py b/test/test_paths/test_v1beta1_users_self_preferences/test_get.py deleted file mode 100644 index 8d52c20..0000000 --- a/test/test_paths/test_v1beta1_users_self_preferences/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self_preferences import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelfPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelfPreferences unit test stubs - List current user preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self_preferences/test_post.py b/test/test_paths/test_v1beta1_users_self_preferences/test_post.py deleted file mode 100644 index 97c4ca7..0000000 --- a/test/test_paths/test_v1beta1_users_self_preferences/test_post.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self_preferences import post # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelfPreferences(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelfPreferences unit test stubs - Create current user preferences # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = post.ApiForpost(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_v1beta1_users_self_projects/__init__.py b/test/test_paths/test_v1beta1_users_self_projects/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_v1beta1_users_self_projects/test_get.py b/test/test_paths/test_v1beta1_users_self_projects/test_get.py deleted file mode 100644 index b3d7d39..0000000 --- a/test/test_paths/test_v1beta1_users_self_projects/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.v1beta1_users_self_projects import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestV1beta1UsersSelfProjects(ApiTestMixin, unittest.TestCase): - """ - V1beta1UsersSelfProjects unit test stubs - Get my projects # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paths/test_well_known_jwks_json/__init__.py b/test/test_paths/test_well_known_jwks_json/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_paths/test_well_known_jwks_json/test_get.py b/test/test_paths/test_well_known_jwks_json/test_get.py deleted file mode 100644 index b6bfa68..0000000 --- a/test/test_paths/test_well_known_jwks_json/test_get.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - - - Generated by: https://openapi-generator.tech -""" - -import unittest -from unittest.mock import patch - -import urllib3 - -import frontier_api -from frontier_api.paths.well_known_jwks_json import get # noqa: E501 -from frontier_api import configuration, schemas, api_client - -from .. import ApiTestMixin - - -class TestWellKnownJwksJson(ApiTestMixin, unittest.TestCase): - """ - WellKnownJwksJson unit test stubs - Get well known JWKs # noqa: E501 - """ - _configuration = configuration.Configuration() - - def setUp(self): - used_api_client = api_client.ApiClient(configuration=self._configuration) - self.api = get.ApiForget(api_client=used_api_client) # noqa: E501 - - def tearDown(self): - pass - - response_status = 200 - - - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_permission_api.py b/test/test_permission_api.py new file mode 100644 index 0000000..8d1a8af --- /dev/null +++ b/test/test_permission_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.permission_api import PermissionApi + + +class TestPermissionApi(unittest.TestCase): + """PermissionApi unit test stubs""" + + def setUp(self) -> None: + self.api = PermissionApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_create_permission(self) -> None: + """Test case for admin_service_create_permission + + Create platform permission + """ + pass + + def test_admin_service_delete_permission(self) -> None: + """Test case for admin_service_delete_permission + + Delete platform permission + """ + pass + + def test_admin_service_update_permission(self) -> None: + """Test case for admin_service_update_permission + + Update platform permission + """ + pass + + def test_frontier_service_get_permission(self) -> None: + """Test case for frontier_service_get_permission + + Get permission + """ + pass + + def test_frontier_service_list_permissions(self) -> None: + """Test case for frontier_service_list_permissions + + Get all permissions + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_plan_api.py b/test/test_plan_api.py new file mode 100644 index 0000000..6bfb415 --- /dev/null +++ b/test/test_plan_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.plan_api import PlanApi + + +class TestPlanApi(unittest.TestCase): + """PlanApi unit test stubs""" + + def setUp(self) -> None: + self.api = PlanApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_plan(self) -> None: + """Test case for frontier_service_create_plan + + Create plan + """ + pass + + def test_frontier_service_get_plan(self) -> None: + """Test case for frontier_service_get_plan + + Get plan + """ + pass + + def test_frontier_service_list_plans(self) -> None: + """Test case for frontier_service_list_plans + + List plans + """ + pass + + def test_frontier_service_update_plan(self) -> None: + """Test case for frontier_service_update_plan + + Update plan + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_models/test_v1beta1_audit_log.py b/test/test_platform_api.py similarity index 62% rename from test/test_models/test_v1beta1_audit_log.py rename to test/test_platform_api.py index 1ea87d5..9db157b 100644 --- a/test/test_models/test_v1beta1_audit_log.py +++ b/test/test_platform_api.py @@ -3,23 +3,36 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import unittest -import frontier_api -from frontier_api.model.v1beta1_audit_log import V1beta1AuditLog -from frontier_api import configuration +from frontier_api.api.platform_api import PlatformApi + + +class TestPlatformApi(unittest.TestCase): + """PlatformApi unit test stubs""" + + def setUp(self) -> None: + self.api = PlatformApi() + + def tearDown(self) -> None: + pass + def test_admin_service_add_platform_user(self) -> None: + """Test case for admin_service_add_platform_user -class TestV1beta1AuditLog(unittest.TestCase): - """V1beta1AuditLog unit test stubs""" - _configuration = configuration.Configuration() + Add platform user + """ + pass if __name__ == '__main__': diff --git a/test/test_policy_api.py b/test/test_policy_api.py new file mode 100644 index 0000000..f0c3419 --- /dev/null +++ b/test/test_policy_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.policy_api import PolicyApi + + +class TestPolicyApi(unittest.TestCase): + """PolicyApi unit test stubs""" + + def setUp(self) -> None: + self.api = PolicyApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_policy(self) -> None: + """Test case for frontier_service_create_policy + + Create policy + """ + pass + + def test_frontier_service_delete_policy(self) -> None: + """Test case for frontier_service_delete_policy + + Delete Policy + """ + pass + + def test_frontier_service_get_policy(self) -> None: + """Test case for frontier_service_get_policy + + Get policy + """ + pass + + def test_frontier_service_list_policies(self) -> None: + """Test case for frontier_service_list_policies + + List all policies + """ + pass + + def test_frontier_service_update_policy(self) -> None: + """Test case for frontier_service_update_policy + + Update policy + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_preference_api.py b/test/test_preference_api.py new file mode 100644 index 0000000..c6f7f7e --- /dev/null +++ b/test/test_preference_api.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.preference_api import PreferenceApi + + +class TestPreferenceApi(unittest.TestCase): + """PreferenceApi unit test stubs""" + + def setUp(self) -> None: + self.api = PreferenceApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_create_preferences(self) -> None: + """Test case for admin_service_create_preferences + + Create platform preferences + """ + pass + + def test_admin_service_list_preferences(self) -> None: + """Test case for admin_service_list_preferences + + List platform preferences + """ + pass + + def test_frontier_service_create_current_user_preferences(self) -> None: + """Test case for frontier_service_create_current_user_preferences + + Create current user preferences + """ + pass + + def test_frontier_service_create_group_preferences(self) -> None: + """Test case for frontier_service_create_group_preferences + + Create group preferences + """ + pass + + def test_frontier_service_create_organization_preferences(self) -> None: + """Test case for frontier_service_create_organization_preferences + + Create organization preferences + """ + pass + + def test_frontier_service_create_project_preferences(self) -> None: + """Test case for frontier_service_create_project_preferences + + Create project preferences + """ + pass + + def test_frontier_service_create_user_preferences(self) -> None: + """Test case for frontier_service_create_user_preferences + + Create user preferences + """ + pass + + def test_frontier_service_describe_preferences(self) -> None: + """Test case for frontier_service_describe_preferences + + Describe preferences + """ + pass + + def test_frontier_service_list_current_user_preferences(self) -> None: + """Test case for frontier_service_list_current_user_preferences + + List current user preferences + """ + pass + + def test_frontier_service_list_group_preferences(self) -> None: + """Test case for frontier_service_list_group_preferences + + List group preferences + """ + pass + + def test_frontier_service_list_organization_preferences(self) -> None: + """Test case for frontier_service_list_organization_preferences + + List organization preferences + """ + pass + + def test_frontier_service_list_project_preferences(self) -> None: + """Test case for frontier_service_list_project_preferences + + List project preferences + """ + pass + + def test_frontier_service_list_user_preferences(self) -> None: + """Test case for frontier_service_list_user_preferences + + List user preferences + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_project_api.py b/test/test_project_api.py new file mode 100644 index 0000000..c4d408f --- /dev/null +++ b/test/test_project_api.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.project_api import ProjectApi + + +class TestProjectApi(unittest.TestCase): + """ProjectApi unit test stubs""" + + def setUp(self) -> None: + self.api = ProjectApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_list_projects(self) -> None: + """Test case for admin_service_list_projects + + List all projects + """ + pass + + def test_frontier_service_create_project(self) -> None: + """Test case for frontier_service_create_project + + Create project + """ + pass + + def test_frontier_service_delete_project(self) -> None: + """Test case for frontier_service_delete_project + + Delete Project + """ + pass + + def test_frontier_service_disable_project(self) -> None: + """Test case for frontier_service_disable_project + + Disable project + """ + pass + + def test_frontier_service_enable_project(self) -> None: + """Test case for frontier_service_enable_project + + Enable project + """ + pass + + def test_frontier_service_get_project(self) -> None: + """Test case for frontier_service_get_project + + Get project + """ + pass + + def test_frontier_service_list_project_admins(self) -> None: + """Test case for frontier_service_list_project_admins + + List project admins + """ + pass + + def test_frontier_service_list_project_groups(self) -> None: + """Test case for frontier_service_list_project_groups + + List project groups + """ + pass + + def test_frontier_service_list_project_service_users(self) -> None: + """Test case for frontier_service_list_project_service_users + + List project serviceusers + """ + pass + + def test_frontier_service_list_project_users(self) -> None: + """Test case for frontier_service_list_project_users + + List project users + """ + pass + + def test_frontier_service_update_project(self) -> None: + """Test case for frontier_service_update_project + + Update project + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_protobuf_any.py b/test/test_protobuf_any.py new file mode 100644 index 0000000..b9f644d --- /dev/null +++ b/test/test_protobuf_any.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.protobuf_any import ProtobufAny + +class TestProtobufAny(unittest.TestCase): + """ProtobufAny unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProtobufAny: + """Test ProtobufAny + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProtobufAny` + """ + model = ProtobufAny() + if include_optional: + return ProtobufAny( + type = '' + ) + else: + return ProtobufAny( + ) + """ + + def testProtobufAny(self): + """Test ProtobufAny""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_models/test_protobuf_null_value.py b/test/test_protobuf_null_value.py similarity index 70% rename from test/test_models/test_protobuf_null_value.py rename to test/test_protobuf_null_value.py index feb3ca1..4f88899 100644 --- a/test/test_models/test_protobuf_null_value.py +++ b/test/test_protobuf_null_value.py @@ -3,24 +3,33 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 -import unittest -import frontier_api -from frontier_api.model.protobuf_null_value import ProtobufNullValue -from frontier_api import configuration +import unittest +import datetime +from frontier_api.models.protobuf_null_value import ProtobufNullValue class TestProtobufNullValue(unittest.TestCase): """ProtobufNullValue unit test stubs""" - _configuration = configuration.Configuration() + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufNullValue(self): + """Test ProtobufNullValue""" + # inst = ProtobufNullValue() if __name__ == '__main__': unittest.main() diff --git a/test/test_relation_api.py b/test/test_relation_api.py new file mode 100644 index 0000000..a03fafc --- /dev/null +++ b/test/test_relation_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.relation_api import RelationApi + + +class TestRelationApi(unittest.TestCase): + """RelationApi unit test stubs""" + + def setUp(self) -> None: + self.api = RelationApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_list_relations(self) -> None: + """Test case for admin_service_list_relations + + List all relations + """ + pass + + def test_frontier_service_create_relation(self) -> None: + """Test case for frontier_service_create_relation + + Create relation + """ + pass + + def test_frontier_service_delete_relation(self) -> None: + """Test case for frontier_service_delete_relation + + Delete relation + """ + pass + + def test_frontier_service_get_relation(self) -> None: + """Test case for frontier_service_get_relation + + Get relation + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_api.py b/test/test_resource_api.py new file mode 100644 index 0000000..bae1105 --- /dev/null +++ b/test/test_resource_api.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.resource_api import ResourceApi + + +class TestResourceApi(unittest.TestCase): + """ResourceApi unit test stubs""" + + def setUp(self) -> None: + self.api = ResourceApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_list_resources(self) -> None: + """Test case for admin_service_list_resources + + List all resources + """ + pass + + def test_frontier_service_create_project_resource(self) -> None: + """Test case for frontier_service_create_project_resource + + Create resource + """ + pass + + def test_frontier_service_delete_project_resource(self) -> None: + """Test case for frontier_service_delete_project_resource + + Delete resource + """ + pass + + def test_frontier_service_get_project_resource(self) -> None: + """Test case for frontier_service_get_project_resource + + Get resource + """ + pass + + def test_frontier_service_list_project_resources(self) -> None: + """Test case for frontier_service_list_project_resources + + Get all resources + """ + pass + + def test_frontier_service_update_project_resource(self) -> None: + """Test case for frontier_service_update_project_resource + + Update resource + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_role_api.py b/test/test_role_api.py new file mode 100644 index 0000000..c242402 --- /dev/null +++ b/test/test_role_api.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.role_api import RoleApi + + +class TestRoleApi(unittest.TestCase): + """RoleApi unit test stubs""" + + def setUp(self) -> None: + self.api = RoleApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_create_role(self) -> None: + """Test case for admin_service_create_role + + Create platform role + """ + pass + + def test_admin_service_delete_role(self) -> None: + """Test case for admin_service_delete_role + + Delete platform role + """ + pass + + def test_admin_service_update_role(self) -> None: + """Test case for admin_service_update_role + + Update role + """ + pass + + def test_frontier_service_create_organization_role(self) -> None: + """Test case for frontier_service_create_organization_role + + Create organization role + """ + pass + + def test_frontier_service_delete_organization_role(self) -> None: + """Test case for frontier_service_delete_organization_role + + Delete organization role + """ + pass + + def test_frontier_service_get_organization_role(self) -> None: + """Test case for frontier_service_get_organization_role + + Get organization role + """ + pass + + def test_frontier_service_list_organization_roles(self) -> None: + """Test case for frontier_service_list_organization_roles + + List organization roles + """ + pass + + def test_frontier_service_list_roles(self) -> None: + """Test case for frontier_service_list_roles + + List platform roles + """ + pass + + def test_frontier_service_update_organization_role(self) -> None: + """Test case for frontier_service_update_organization_role + + Update organization role + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_rpc_status.py b/test/test_rpc_status.py new file mode 100644 index 0000000..f9ae7fa --- /dev/null +++ b/test/test_rpc_status.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.rpc_status import RpcStatus + +class TestRpcStatus(unittest.TestCase): + """RpcStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RpcStatus: + """Test RpcStatus + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RpcStatus` + """ + model = RpcStatus() + if include_optional: + return RpcStatus( + code = 56, + message = '', + details = [ + { + 'key' : None + } + ] + ) + else: + return RpcStatus( + ) + """ + + def testRpcStatus(self): + """Test RpcStatus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_service_user_api.py b/test/test_service_user_api.py new file mode 100644 index 0000000..79aeaf4 --- /dev/null +++ b/test/test_service_user_api.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.service_user_api import ServiceUserApi + + +class TestServiceUserApi(unittest.TestCase): + """ServiceUserApi unit test stubs""" + + def setUp(self) -> None: + self.api = ServiceUserApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_create_service_user(self) -> None: + """Test case for frontier_service_create_service_user + + Create service user + """ + pass + + def test_frontier_service_create_service_user_key(self) -> None: + """Test case for frontier_service_create_service_user_key + + Create service user key + """ + pass + + def test_frontier_service_create_service_user_secret(self) -> None: + """Test case for frontier_service_create_service_user_secret + + Create service user secret + """ + pass + + def test_frontier_service_delete_service_user(self) -> None: + """Test case for frontier_service_delete_service_user + + Delete service user + """ + pass + + def test_frontier_service_delete_service_user_key(self) -> None: + """Test case for frontier_service_delete_service_user_key + + Delete service user key + """ + pass + + def test_frontier_service_delete_service_user_secret(self) -> None: + """Test case for frontier_service_delete_service_user_secret + + Delete service user secret + """ + pass + + def test_frontier_service_get_service_user(self) -> None: + """Test case for frontier_service_get_service_user + + Get service user + """ + pass + + def test_frontier_service_get_service_user_key(self) -> None: + """Test case for frontier_service_get_service_user_key + + Get service user key + """ + pass + + def test_frontier_service_list_service_user_keys(self) -> None: + """Test case for frontier_service_list_service_user_keys + + List service user keys + """ + pass + + def test_frontier_service_list_service_user_secrets(self) -> None: + """Test case for frontier_service_list_service_user_secrets + + List service user secrets + """ + pass + + def test_frontier_service_list_service_users(self) -> None: + """Test case for frontier_service_list_service_users + + List org service users + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_subscription_api.py b/test/test_subscription_api.py new file mode 100644 index 0000000..554075b --- /dev/null +++ b/test/test_subscription_api.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.subscription_api import SubscriptionApi + + +class TestSubscriptionApi(unittest.TestCase): + """SubscriptionApi unit test stubs""" + + def setUp(self) -> None: + self.api = SubscriptionApi() + + def tearDown(self) -> None: + pass + + def test_frontier_service_cancel_subscription(self) -> None: + """Test case for frontier_service_cancel_subscription + + Cancel subscription + """ + pass + + def test_frontier_service_get_subscription(self) -> None: + """Test case for frontier_service_get_subscription + + Get subscription + """ + pass + + def test_frontier_service_list_subscriptions(self) -> None: + """Test case for frontier_service_list_subscriptions + + List subscriptions + """ + pass + + def test_frontier_service_update_subscription(self) -> None: + """Test case for frontier_service_update_subscription + + Update subscription + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_models/test_v1beta1_check_resource_permission_response.py b/test/test_transaction_api.py similarity index 60% rename from test/test_models/test_v1beta1_check_resource_permission_response.py rename to test/test_transaction_api.py index 95f6abb..11cfb12 100644 --- a/test/test_models/test_v1beta1_check_resource_permission_response.py +++ b/test/test_transaction_api.py @@ -3,23 +3,36 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import unittest -import frontier_api -from frontier_api.model.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse -from frontier_api import configuration +from frontier_api.api.transaction_api import TransactionApi + + +class TestTransactionApi(unittest.TestCase): + """TransactionApi unit test stubs""" + + def setUp(self) -> None: + self.api = TransactionApi() + + def tearDown(self) -> None: + pass + def test_frontier_service_list_billing_transactions(self) -> None: + """Test case for frontier_service_list_billing_transactions -class TestV1beta1CheckResourcePermissionResponse(unittest.TestCase): - """V1beta1CheckResourcePermissionResponse unit test stubs""" - _configuration = configuration.Configuration() + List billing transactions + """ + pass if __name__ == '__main__': diff --git a/test/test_models/test_v1beta1_create_service_user_key_response.py b/test/test_usage_api.py similarity index 62% rename from test/test_models/test_v1beta1_create_service_user_key_response.py rename to test/test_usage_api.py index 4dc5543..2ac600e 100644 --- a/test/test_models/test_v1beta1_create_service_user_key_response.py +++ b/test/test_usage_api.py @@ -3,23 +3,36 @@ """ Frontier Administration API - The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. # noqa: E501 + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. The version of the OpenAPI document: 0.2.0 Contact: hello@raystack.org - Generated by: https://openapi-generator.tech -""" + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + import unittest -import frontier_api -from frontier_api.model.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse -from frontier_api import configuration +from frontier_api.api.usage_api import UsageApi + + +class TestUsageApi(unittest.TestCase): + """UsageApi unit test stubs""" + + def setUp(self) -> None: + self.api = UsageApi() + + def tearDown(self) -> None: + pass + def test_frontier_service_create_billing_usage(self) -> None: + """Test case for frontier_service_create_billing_usage -class TestV1beta1CreateServiceUserKeyResponse(unittest.TestCase): - """V1beta1CreateServiceUserKeyResponse unit test stubs""" - _configuration = configuration.Configuration() + Create billing usage + """ + pass if __name__ == '__main__': diff --git a/test/test_user_api.py b/test/test_user_api.py new file mode 100644 index 0000000..b67ae70 --- /dev/null +++ b/test/test_user_api.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from frontier_api.api.user_api import UserApi + + +class TestUserApi(unittest.TestCase): + """UserApi unit test stubs""" + + def setUp(self) -> None: + self.api = UserApi() + + def tearDown(self) -> None: + pass + + def test_admin_service_list_all_users(self) -> None: + """Test case for admin_service_list_all_users + + List all users + """ + pass + + def test_frontier_service_create_user(self) -> None: + """Test case for frontier_service_create_user + + Create user + """ + pass + + def test_frontier_service_delete_user(self) -> None: + """Test case for frontier_service_delete_user + + Delete user + """ + pass + + def test_frontier_service_disable_user(self) -> None: + """Test case for frontier_service_disable_user + + Disable user + """ + pass + + def test_frontier_service_enable_user(self) -> None: + """Test case for frontier_service_enable_user + + Enable user + """ + pass + + def test_frontier_service_get_current_user(self) -> None: + """Test case for frontier_service_get_current_user + + Get current user + """ + pass + + def test_frontier_service_get_user(self) -> None: + """Test case for frontier_service_get_user + + Get user + """ + pass + + def test_frontier_service_list_current_user_groups(self) -> None: + """Test case for frontier_service_list_current_user_groups + + List my groups + """ + pass + + def test_frontier_service_list_current_user_invitations(self) -> None: + """Test case for frontier_service_list_current_user_invitations + + List user invitations + """ + pass + + def test_frontier_service_list_organizations_by_current_user(self) -> None: + """Test case for frontier_service_list_organizations_by_current_user + + Get my organizations + """ + pass + + def test_frontier_service_list_organizations_by_user(self) -> None: + """Test case for frontier_service_list_organizations_by_user + + Get user organizations + """ + pass + + def test_frontier_service_list_projects_by_current_user(self) -> None: + """Test case for frontier_service_list_projects_by_current_user + + Get my projects + """ + pass + + def test_frontier_service_list_projects_by_user(self) -> None: + """Test case for frontier_service_list_projects_by_user + + Get user projects + """ + pass + + def test_frontier_service_list_user_groups(self) -> None: + """Test case for frontier_service_list_user_groups + + List user groups + """ + pass + + def test_frontier_service_list_user_invitations(self) -> None: + """Test case for frontier_service_list_user_invitations + + List user invitations + """ + pass + + def test_frontier_service_list_users(self) -> None: + """Test case for frontier_service_list_users + + List public users + """ + pass + + def test_frontier_service_update_current_user(self) -> None: + """Test case for frontier_service_update_current_user + + Update current user + """ + pass + + def test_frontier_service_update_user(self) -> None: + """Test case for frontier_service_update_user + + Update user + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_add_platform_user_request.py b/test/test_v1beta1_add_platform_user_request.py new file mode 100644 index 0000000..432bdd2 --- /dev/null +++ b/test/test_v1beta1_add_platform_user_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_add_platform_user_request import V1beta1AddPlatformUserRequest + +class TestV1beta1AddPlatformUserRequest(unittest.TestCase): + """V1beta1AddPlatformUserRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AddPlatformUserRequest: + """Test V1beta1AddPlatformUserRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AddPlatformUserRequest` + """ + model = V1beta1AddPlatformUserRequest() + if include_optional: + return V1beta1AddPlatformUserRequest( + user_id = '', + serviceuser_id = '', + relation = '' + ) + else: + return V1beta1AddPlatformUserRequest( + relation = '', + ) + """ + + def testV1beta1AddPlatformUserRequest(self): + """Test V1beta1AddPlatformUserRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_audit_log.py b/test/test_v1beta1_audit_log.py new file mode 100644 index 0000000..4cabda2 --- /dev/null +++ b/test/test_v1beta1_audit_log.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_audit_log import V1beta1AuditLog + +class TestV1beta1AuditLog(unittest.TestCase): + """V1beta1AuditLog unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuditLog: + """Test V1beta1AuditLog + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuditLog` + """ + model = V1beta1AuditLog() + if include_optional: + return V1beta1AuditLog( + id = '', + source = 'auth', + action = '', + actor = frontier_api.models.v1beta1_audit_log_actor.v1beta1AuditLogActor( + id = '', + type = '', + name = '', ), + target = frontier_api.models.v1beta1_audit_log_target.v1beta1AuditLogTarget( + id = '', + type = '', + name = '', ), + context = { + 'key' : '' + }, + created_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1AuditLog( + source = 'auth', + action = '', + ) + """ + + def testV1beta1AuditLog(self): + """Test V1beta1AuditLog""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_audit_log_actor.py b/test/test_v1beta1_audit_log_actor.py new file mode 100644 index 0000000..2d21602 --- /dev/null +++ b/test/test_v1beta1_audit_log_actor.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_audit_log_actor import V1beta1AuditLogActor + +class TestV1beta1AuditLogActor(unittest.TestCase): + """V1beta1AuditLogActor unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuditLogActor: + """Test V1beta1AuditLogActor + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuditLogActor` + """ + model = V1beta1AuditLogActor() + if include_optional: + return V1beta1AuditLogActor( + id = '', + type = '', + name = '' + ) + else: + return V1beta1AuditLogActor( + ) + """ + + def testV1beta1AuditLogActor(self): + """Test V1beta1AuditLogActor""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_audit_log_target.py b/test/test_v1beta1_audit_log_target.py new file mode 100644 index 0000000..68873d6 --- /dev/null +++ b/test/test_v1beta1_audit_log_target.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_audit_log_target import V1beta1AuditLogTarget + +class TestV1beta1AuditLogTarget(unittest.TestCase): + """V1beta1AuditLogTarget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuditLogTarget: + """Test V1beta1AuditLogTarget + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuditLogTarget` + """ + model = V1beta1AuditLogTarget() + if include_optional: + return V1beta1AuditLogTarget( + id = '', + type = '', + name = '' + ) + else: + return V1beta1AuditLogTarget( + ) + """ + + def testV1beta1AuditLogTarget(self): + """Test V1beta1AuditLogTarget""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_auth_callback_request.py b/test/test_v1beta1_auth_callback_request.py new file mode 100644 index 0000000..cf14121 --- /dev/null +++ b/test/test_v1beta1_auth_callback_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_auth_callback_request import V1beta1AuthCallbackRequest + +class TestV1beta1AuthCallbackRequest(unittest.TestCase): + """V1beta1AuthCallbackRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuthCallbackRequest: + """Test V1beta1AuthCallbackRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuthCallbackRequest` + """ + model = V1beta1AuthCallbackRequest() + if include_optional: + return V1beta1AuthCallbackRequest( + strategy_name = '', + state = '', + code = '', + state_options = frontier_api.models.state_options_has_additional_configurations_for_the_authentication_flow_at_hand +for_example,_in_case_of_passkey,_it_has_challenge_and_public_key.state_options has additional configurations for the authentication flow at hand +for example, in case of passkey, it has challenge and public key() + ) + else: + return V1beta1AuthCallbackRequest( + ) + """ + + def testV1beta1AuthCallbackRequest(self): + """Test V1beta1AuthCallbackRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_auth_strategy.py b/test/test_v1beta1_auth_strategy.py new file mode 100644 index 0000000..65ff082 --- /dev/null +++ b/test/test_v1beta1_auth_strategy.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_auth_strategy import V1beta1AuthStrategy + +class TestV1beta1AuthStrategy(unittest.TestCase): + """V1beta1AuthStrategy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuthStrategy: + """Test V1beta1AuthStrategy + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuthStrategy` + """ + model = V1beta1AuthStrategy() + if include_optional: + return V1beta1AuthStrategy( + name = '', + params = None + ) + else: + return V1beta1AuthStrategy( + ) + """ + + def testV1beta1AuthStrategy(self): + """Test V1beta1AuthStrategy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_auth_token_request.py b/test/test_v1beta1_auth_token_request.py new file mode 100644 index 0000000..9c14ad4 --- /dev/null +++ b/test/test_v1beta1_auth_token_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_auth_token_request import V1beta1AuthTokenRequest + +class TestV1beta1AuthTokenRequest(unittest.TestCase): + """V1beta1AuthTokenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuthTokenRequest: + """Test V1beta1AuthTokenRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuthTokenRequest` + """ + model = V1beta1AuthTokenRequest() + if include_optional: + return V1beta1AuthTokenRequest( + grant_type = '', + client_id = '', + client_secret = '', + assertion = '' + ) + else: + return V1beta1AuthTokenRequest( + ) + """ + + def testV1beta1AuthTokenRequest(self): + """Test V1beta1AuthTokenRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_auth_token_response.py b/test/test_v1beta1_auth_token_response.py new file mode 100644 index 0000000..cd3b493 --- /dev/null +++ b/test/test_v1beta1_auth_token_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_auth_token_response import V1beta1AuthTokenResponse + +class TestV1beta1AuthTokenResponse(unittest.TestCase): + """V1beta1AuthTokenResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuthTokenResponse: + """Test V1beta1AuthTokenResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuthTokenResponse` + """ + model = V1beta1AuthTokenResponse() + if include_optional: + return V1beta1AuthTokenResponse( + access_token = '', + token_type = '' + ) + else: + return V1beta1AuthTokenResponse( + ) + """ + + def testV1beta1AuthTokenResponse(self): + """Test V1beta1AuthTokenResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_authenticate_response.py b/test/test_v1beta1_authenticate_response.py new file mode 100644 index 0000000..2a3e1b9 --- /dev/null +++ b/test/test_v1beta1_authenticate_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_authenticate_response import V1beta1AuthenticateResponse + +class TestV1beta1AuthenticateResponse(unittest.TestCase): + """V1beta1AuthenticateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1AuthenticateResponse: + """Test V1beta1AuthenticateResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1AuthenticateResponse` + """ + model = V1beta1AuthenticateResponse() + if include_optional: + return V1beta1AuthenticateResponse( + endpoint = '', + state = '', + state_options = frontier_api.models.state_options_has_additional_configurations_for_the_authentication_flow_at_hand.state_options has additional configurations for the authentication flow at hand() + ) + else: + return V1beta1AuthenticateResponse( + ) + """ + + def testV1beta1AuthenticateResponse(self): + """Test V1beta1AuthenticateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_batch_check_permission_body.py b/test/test_v1beta1_batch_check_permission_body.py new file mode 100644 index 0000000..78c362d --- /dev/null +++ b/test/test_v1beta1_batch_check_permission_body.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_batch_check_permission_body import V1beta1BatchCheckPermissionBody + +class TestV1beta1BatchCheckPermissionBody(unittest.TestCase): + """V1beta1BatchCheckPermissionBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BatchCheckPermissionBody: + """Test V1beta1BatchCheckPermissionBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BatchCheckPermissionBody` + """ + model = V1beta1BatchCheckPermissionBody() + if include_optional: + return V1beta1BatchCheckPermissionBody( + permission = '', + resource = '' + ) + else: + return V1beta1BatchCheckPermissionBody( + permission = '', + ) + """ + + def testV1beta1BatchCheckPermissionBody(self): + """Test V1beta1BatchCheckPermissionBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_batch_check_permission_request.py b/test/test_v1beta1_batch_check_permission_request.py new file mode 100644 index 0000000..8bf948d --- /dev/null +++ b/test/test_v1beta1_batch_check_permission_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_batch_check_permission_request import V1beta1BatchCheckPermissionRequest + +class TestV1beta1BatchCheckPermissionRequest(unittest.TestCase): + """V1beta1BatchCheckPermissionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BatchCheckPermissionRequest: + """Test V1beta1BatchCheckPermissionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BatchCheckPermissionRequest` + """ + model = V1beta1BatchCheckPermissionRequest() + if include_optional: + return V1beta1BatchCheckPermissionRequest( + bodies = [ + frontier_api.models.v1beta1_batch_check_permission_body.v1beta1BatchCheckPermissionBody( + permission = '', + resource = '', ) + ] + ) + else: + return V1beta1BatchCheckPermissionRequest( + ) + """ + + def testV1beta1BatchCheckPermissionRequest(self): + """Test V1beta1BatchCheckPermissionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_batch_check_permission_response.py b/test/test_v1beta1_batch_check_permission_response.py new file mode 100644 index 0000000..8d7754e --- /dev/null +++ b/test/test_v1beta1_batch_check_permission_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_batch_check_permission_response import V1beta1BatchCheckPermissionResponse + +class TestV1beta1BatchCheckPermissionResponse(unittest.TestCase): + """V1beta1BatchCheckPermissionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BatchCheckPermissionResponse: + """Test V1beta1BatchCheckPermissionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BatchCheckPermissionResponse` + """ + model = V1beta1BatchCheckPermissionResponse() + if include_optional: + return V1beta1BatchCheckPermissionResponse( + pairs = [ + frontier_api.models.v1beta1_batch_check_permission_response_pair.v1beta1BatchCheckPermissionResponsePair( + body = frontier_api.models.v1beta1_batch_check_permission_body.v1beta1BatchCheckPermissionBody( + permission = '', + resource = '', ), + status = True, ) + ] + ) + else: + return V1beta1BatchCheckPermissionResponse( + ) + """ + + def testV1beta1BatchCheckPermissionResponse(self): + """Test V1beta1BatchCheckPermissionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_batch_check_permission_response_pair.py b/test/test_v1beta1_batch_check_permission_response_pair.py new file mode 100644 index 0000000..a7cdcd9 --- /dev/null +++ b/test/test_v1beta1_batch_check_permission_response_pair.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_batch_check_permission_response_pair import V1beta1BatchCheckPermissionResponsePair + +class TestV1beta1BatchCheckPermissionResponsePair(unittest.TestCase): + """V1beta1BatchCheckPermissionResponsePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BatchCheckPermissionResponsePair: + """Test V1beta1BatchCheckPermissionResponsePair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BatchCheckPermissionResponsePair` + """ + model = V1beta1BatchCheckPermissionResponsePair() + if include_optional: + return V1beta1BatchCheckPermissionResponsePair( + body = frontier_api.models.v1beta1_batch_check_permission_body.v1beta1BatchCheckPermissionBody( + permission = '', + resource = '', ), + status = True + ) + else: + return V1beta1BatchCheckPermissionResponsePair( + ) + """ + + def testV1beta1BatchCheckPermissionResponsePair(self): + """Test V1beta1BatchCheckPermissionResponsePair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_billing_account.py b/test/test_v1beta1_billing_account.py new file mode 100644 index 0000000..b9926e9 --- /dev/null +++ b/test/test_v1beta1_billing_account.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_billing_account import V1beta1BillingAccount + +class TestV1beta1BillingAccount(unittest.TestCase): + """V1beta1BillingAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BillingAccount: + """Test V1beta1BillingAccount + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BillingAccount` + """ + model = V1beta1BillingAccount() + if include_optional: + return V1beta1BillingAccount( + id = '', + org_id = '', + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + provider_id = '', + provider = '', + currency = '', + state = '', + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1BillingAccount( + ) + """ + + def testV1beta1BillingAccount(self): + """Test V1beta1BillingAccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_billing_account_request_body.py b/test/test_v1beta1_billing_account_request_body.py new file mode 100644 index 0000000..773951b --- /dev/null +++ b/test/test_v1beta1_billing_account_request_body.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_billing_account_request_body import V1beta1BillingAccountRequestBody + +class TestV1beta1BillingAccountRequestBody(unittest.TestCase): + """V1beta1BillingAccountRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BillingAccountRequestBody: + """Test V1beta1BillingAccountRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BillingAccountRequestBody` + """ + model = V1beta1BillingAccountRequestBody() + if include_optional: + return V1beta1BillingAccountRequestBody( + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + currency = '', + metadata = None + ) + else: + return V1beta1BillingAccountRequestBody( + ) + """ + + def testV1beta1BillingAccountRequestBody(self): + """Test V1beta1BillingAccountRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_billing_transaction.py b/test/test_v1beta1_billing_transaction.py new file mode 100644 index 0000000..4fc8e3d --- /dev/null +++ b/test/test_v1beta1_billing_transaction.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_billing_transaction import V1beta1BillingTransaction + +class TestV1beta1BillingTransaction(unittest.TestCase): + """V1beta1BillingTransaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1BillingTransaction: + """Test V1beta1BillingTransaction + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1BillingTransaction` + """ + model = V1beta1BillingTransaction() + if include_optional: + return V1beta1BillingTransaction( + id = '', + customer_id = '', + source = '', + amount = '', + type = '', + description = '', + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1BillingTransaction( + ) + """ + + def testV1beta1BillingTransaction(self): + """Test V1beta1BillingTransaction""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_check_feature_entitlement_response.py b/test/test_v1beta1_check_feature_entitlement_response.py new file mode 100644 index 0000000..6f17931 --- /dev/null +++ b/test/test_v1beta1_check_feature_entitlement_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_check_feature_entitlement_response import V1beta1CheckFeatureEntitlementResponse + +class TestV1beta1CheckFeatureEntitlementResponse(unittest.TestCase): + """V1beta1CheckFeatureEntitlementResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckFeatureEntitlementResponse: + """Test V1beta1CheckFeatureEntitlementResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckFeatureEntitlementResponse` + """ + model = V1beta1CheckFeatureEntitlementResponse() + if include_optional: + return V1beta1CheckFeatureEntitlementResponse( + status = True + ) + else: + return V1beta1CheckFeatureEntitlementResponse( + ) + """ + + def testV1beta1CheckFeatureEntitlementResponse(self): + """Test V1beta1CheckFeatureEntitlementResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_check_federated_resource_permission_request.py b/test/test_v1beta1_check_federated_resource_permission_request.py new file mode 100644 index 0000000..01c1314 --- /dev/null +++ b/test/test_v1beta1_check_federated_resource_permission_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_check_federated_resource_permission_request import V1beta1CheckFederatedResourcePermissionRequest + +class TestV1beta1CheckFederatedResourcePermissionRequest(unittest.TestCase): + """V1beta1CheckFederatedResourcePermissionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckFederatedResourcePermissionRequest: + """Test V1beta1CheckFederatedResourcePermissionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckFederatedResourcePermissionRequest` + """ + model = V1beta1CheckFederatedResourcePermissionRequest() + if include_optional: + return V1beta1CheckFederatedResourcePermissionRequest( + subject = '', + resource = '', + permission = '' + ) + else: + return V1beta1CheckFederatedResourcePermissionRequest( + subject = '', + resource = '', + permission = '', + ) + """ + + def testV1beta1CheckFederatedResourcePermissionRequest(self): + """Test V1beta1CheckFederatedResourcePermissionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_check_federated_resource_permission_response.py b/test/test_v1beta1_check_federated_resource_permission_response.py new file mode 100644 index 0000000..f1012b3 --- /dev/null +++ b/test/test_v1beta1_check_federated_resource_permission_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_check_federated_resource_permission_response import V1beta1CheckFederatedResourcePermissionResponse + +class TestV1beta1CheckFederatedResourcePermissionResponse(unittest.TestCase): + """V1beta1CheckFederatedResourcePermissionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckFederatedResourcePermissionResponse: + """Test V1beta1CheckFederatedResourcePermissionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckFederatedResourcePermissionResponse` + """ + model = V1beta1CheckFederatedResourcePermissionResponse() + if include_optional: + return V1beta1CheckFederatedResourcePermissionResponse( + status = True + ) + else: + return V1beta1CheckFederatedResourcePermissionResponse( + ) + """ + + def testV1beta1CheckFederatedResourcePermissionResponse(self): + """Test V1beta1CheckFederatedResourcePermissionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_check_resource_permission_request.py b/test/test_v1beta1_check_resource_permission_request.py new file mode 100644 index 0000000..235e6a5 --- /dev/null +++ b/test/test_v1beta1_check_resource_permission_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_check_resource_permission_request import V1beta1CheckResourcePermissionRequest + +class TestV1beta1CheckResourcePermissionRequest(unittest.TestCase): + """V1beta1CheckResourcePermissionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckResourcePermissionRequest: + """Test V1beta1CheckResourcePermissionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckResourcePermissionRequest` + """ + model = V1beta1CheckResourcePermissionRequest() + if include_optional: + return V1beta1CheckResourcePermissionRequest( + object_id = '', + object_namespace = '', + permission = '', + resource = '' + ) + else: + return V1beta1CheckResourcePermissionRequest( + permission = '', + ) + """ + + def testV1beta1CheckResourcePermissionRequest(self): + """Test V1beta1CheckResourcePermissionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_check_resource_permission_response.py b/test/test_v1beta1_check_resource_permission_response.py new file mode 100644 index 0000000..e8aafd9 --- /dev/null +++ b/test/test_v1beta1_check_resource_permission_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_check_resource_permission_response import V1beta1CheckResourcePermissionResponse + +class TestV1beta1CheckResourcePermissionResponse(unittest.TestCase): + """V1beta1CheckResourcePermissionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckResourcePermissionResponse: + """Test V1beta1CheckResourcePermissionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckResourcePermissionResponse` + """ + model = V1beta1CheckResourcePermissionResponse() + if include_optional: + return V1beta1CheckResourcePermissionResponse( + status = True + ) + else: + return V1beta1CheckResourcePermissionResponse( + ) + """ + + def testV1beta1CheckResourcePermissionResponse(self): + """Test V1beta1CheckResourcePermissionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_checkout_feature_body.py b/test/test_v1beta1_checkout_feature_body.py new file mode 100644 index 0000000..c7d3b63 --- /dev/null +++ b/test/test_v1beta1_checkout_feature_body.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_checkout_feature_body import V1beta1CheckoutFeatureBody + +class TestV1beta1CheckoutFeatureBody(unittest.TestCase): + """V1beta1CheckoutFeatureBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckoutFeatureBody: + """Test V1beta1CheckoutFeatureBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckoutFeatureBody` + """ + model = V1beta1CheckoutFeatureBody() + if include_optional: + return V1beta1CheckoutFeatureBody( + feature = '' + ) + else: + return V1beta1CheckoutFeatureBody( + ) + """ + + def testV1beta1CheckoutFeatureBody(self): + """Test V1beta1CheckoutFeatureBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_checkout_session.py b/test/test_v1beta1_checkout_session.py new file mode 100644 index 0000000..1cd67da --- /dev/null +++ b/test/test_v1beta1_checkout_session.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_checkout_session import V1beta1CheckoutSession + +class TestV1beta1CheckoutSession(unittest.TestCase): + """V1beta1CheckoutSession unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckoutSession: + """Test V1beta1CheckoutSession + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckoutSession` + """ + model = V1beta1CheckoutSession() + if include_optional: + return V1beta1CheckoutSession( + id = '', + checkout_url = '', + success_url = '', + cancel_url = '', + state = '', + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1CheckoutSession( + ) + """ + + def testV1beta1CheckoutSession(self): + """Test V1beta1CheckoutSession""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_checkout_subscription_body.py b/test/test_v1beta1_checkout_subscription_body.py new file mode 100644 index 0000000..80119d5 --- /dev/null +++ b/test/test_v1beta1_checkout_subscription_body.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_checkout_subscription_body import V1beta1CheckoutSubscriptionBody + +class TestV1beta1CheckoutSubscriptionBody(unittest.TestCase): + """V1beta1CheckoutSubscriptionBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CheckoutSubscriptionBody: + """Test V1beta1CheckoutSubscriptionBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CheckoutSubscriptionBody` + """ + model = V1beta1CheckoutSubscriptionBody() + if include_optional: + return V1beta1CheckoutSubscriptionBody( + plan = '', + trail_days = 56 + ) + else: + return V1beta1CheckoutSubscriptionBody( + ) + """ + + def testV1beta1CheckoutSubscriptionBody(self): + """Test V1beta1CheckoutSubscriptionBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_billing_account_response.py b/test/test_v1beta1_create_billing_account_response.py new file mode 100644 index 0000000..269e7c5 --- /dev/null +++ b/test/test_v1beta1_create_billing_account_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_billing_account_response import V1beta1CreateBillingAccountResponse + +class TestV1beta1CreateBillingAccountResponse(unittest.TestCase): + """V1beta1CreateBillingAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateBillingAccountResponse: + """Test V1beta1CreateBillingAccountResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateBillingAccountResponse` + """ + model = V1beta1CreateBillingAccountResponse() + if include_optional: + return V1beta1CreateBillingAccountResponse( + billing_account = frontier_api.models.v1beta1_billing_account.v1beta1BillingAccount( + id = '', + org_id = '', + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + provider_id = '', + provider = '', + currency = '', + state = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1CreateBillingAccountResponse( + ) + """ + + def testV1beta1CreateBillingAccountResponse(self): + """Test V1beta1CreateBillingAccountResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_checkout_response.py b/test/test_v1beta1_create_checkout_response.py new file mode 100644 index 0000000..e72e2fa --- /dev/null +++ b/test/test_v1beta1_create_checkout_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_checkout_response import V1beta1CreateCheckoutResponse + +class TestV1beta1CreateCheckoutResponse(unittest.TestCase): + """V1beta1CreateCheckoutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateCheckoutResponse: + """Test V1beta1CreateCheckoutResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateCheckoutResponse` + """ + model = V1beta1CreateCheckoutResponse() + if include_optional: + return V1beta1CreateCheckoutResponse( + checkout_session = frontier_api.models.v1beta1_checkout_session.v1beta1CheckoutSession( + id = '', + checkout_url = '', + success_url = '', + cancel_url = '', + state = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1CreateCheckoutResponse( + ) + """ + + def testV1beta1CreateCheckoutResponse(self): + """Test V1beta1CreateCheckoutResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_current_user_preferences_request.py b/test/test_v1beta1_create_current_user_preferences_request.py new file mode 100644 index 0000000..9994a96 --- /dev/null +++ b/test/test_v1beta1_create_current_user_preferences_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_current_user_preferences_request import V1beta1CreateCurrentUserPreferencesRequest + +class TestV1beta1CreateCurrentUserPreferencesRequest(unittest.TestCase): + """V1beta1CreateCurrentUserPreferencesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateCurrentUserPreferencesRequest: + """Test V1beta1CreateCurrentUserPreferencesRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateCurrentUserPreferencesRequest` + """ + model = V1beta1CreateCurrentUserPreferencesRequest() + if include_optional: + return V1beta1CreateCurrentUserPreferencesRequest( + bodies = [ + frontier_api.models.v1beta1_preference_request_body.v1beta1PreferenceRequestBody( + name = '', + value = '', ) + ] + ) + else: + return V1beta1CreateCurrentUserPreferencesRequest( + ) + """ + + def testV1beta1CreateCurrentUserPreferencesRequest(self): + """Test V1beta1CreateCurrentUserPreferencesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_current_user_preferences_response.py b/test/test_v1beta1_create_current_user_preferences_response.py new file mode 100644 index 0000000..7375e37 --- /dev/null +++ b/test/test_v1beta1_create_current_user_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_current_user_preferences_response import V1beta1CreateCurrentUserPreferencesResponse + +class TestV1beta1CreateCurrentUserPreferencesResponse(unittest.TestCase): + """V1beta1CreateCurrentUserPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateCurrentUserPreferencesResponse: + """Test V1beta1CreateCurrentUserPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateCurrentUserPreferencesResponse` + """ + model = V1beta1CreateCurrentUserPreferencesResponse() + if include_optional: + return V1beta1CreateCurrentUserPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1CreateCurrentUserPreferencesResponse( + ) + """ + + def testV1beta1CreateCurrentUserPreferencesResponse(self): + """Test V1beta1CreateCurrentUserPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_feature_request.py b/test/test_v1beta1_create_feature_request.py new file mode 100644 index 0000000..cfc2b3d --- /dev/null +++ b/test/test_v1beta1_create_feature_request.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_feature_request import V1beta1CreateFeatureRequest + +class TestV1beta1CreateFeatureRequest(unittest.TestCase): + """V1beta1CreateFeatureRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateFeatureRequest: + """Test V1beta1CreateFeatureRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateFeatureRequest` + """ + model = V1beta1CreateFeatureRequest() + if include_optional: + return V1beta1CreateFeatureRequest( + body = frontier_api.models.v1beta1_feature_request_body.v1beta1FeatureRequestBody( + name = '', + title = '', + description = '', + plan_id = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return V1beta1CreateFeatureRequest( + ) + """ + + def testV1beta1CreateFeatureRequest(self): + """Test V1beta1CreateFeatureRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_feature_response.py b/test/test_v1beta1_create_feature_response.py new file mode 100644 index 0000000..f647625 --- /dev/null +++ b/test/test_v1beta1_create_feature_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_feature_response import V1beta1CreateFeatureResponse + +class TestV1beta1CreateFeatureResponse(unittest.TestCase): + """V1beta1CreateFeatureResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateFeatureResponse: + """Test V1beta1CreateFeatureResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateFeatureResponse` + """ + model = V1beta1CreateFeatureResponse() + if include_optional: + return V1beta1CreateFeatureResponse( + feature = frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1CreateFeatureResponse( + ) + """ + + def testV1beta1CreateFeatureResponse(self): + """Test V1beta1CreateFeatureResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_group_preferences_response.py b/test/test_v1beta1_create_group_preferences_response.py new file mode 100644 index 0000000..3c8142c --- /dev/null +++ b/test/test_v1beta1_create_group_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_group_preferences_response import V1beta1CreateGroupPreferencesResponse + +class TestV1beta1CreateGroupPreferencesResponse(unittest.TestCase): + """V1beta1CreateGroupPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateGroupPreferencesResponse: + """Test V1beta1CreateGroupPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateGroupPreferencesResponse` + """ + model = V1beta1CreateGroupPreferencesResponse() + if include_optional: + return V1beta1CreateGroupPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1CreateGroupPreferencesResponse( + ) + """ + + def testV1beta1CreateGroupPreferencesResponse(self): + """Test V1beta1CreateGroupPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_group_response.py b/test/test_v1beta1_create_group_response.py new file mode 100644 index 0000000..336a782 --- /dev/null +++ b/test/test_v1beta1_create_group_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_group_response import V1beta1CreateGroupResponse + +class TestV1beta1CreateGroupResponse(unittest.TestCase): + """V1beta1CreateGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateGroupResponse: + """Test V1beta1CreateGroupResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateGroupResponse` + """ + model = V1beta1CreateGroupResponse() + if include_optional: + return V1beta1CreateGroupResponse( + group = frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ) + else: + return V1beta1CreateGroupResponse( + ) + """ + + def testV1beta1CreateGroupResponse(self): + """Test V1beta1CreateGroupResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_meta_schema_response.py b/test/test_v1beta1_create_meta_schema_response.py new file mode 100644 index 0000000..daaa369 --- /dev/null +++ b/test/test_v1beta1_create_meta_schema_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_meta_schema_response import V1beta1CreateMetaSchemaResponse + +class TestV1beta1CreateMetaSchemaResponse(unittest.TestCase): + """V1beta1CreateMetaSchemaResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateMetaSchemaResponse: + """Test V1beta1CreateMetaSchemaResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateMetaSchemaResponse` + """ + model = V1beta1CreateMetaSchemaResponse() + if include_optional: + return V1beta1CreateMetaSchemaResponse( + metaschema = frontier_api.models.v1beta1_meta_schema.v1beta1MetaSchema( + id = 'a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + name = '', + schema = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1CreateMetaSchemaResponse( + ) + """ + + def testV1beta1CreateMetaSchemaResponse(self): + """Test V1beta1CreateMetaSchemaResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_organization_domain_response.py b/test/test_v1beta1_create_organization_domain_response.py new file mode 100644 index 0000000..b2cb388 --- /dev/null +++ b/test/test_v1beta1_create_organization_domain_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_organization_domain_response import V1beta1CreateOrganizationDomainResponse + +class TestV1beta1CreateOrganizationDomainResponse(unittest.TestCase): + """V1beta1CreateOrganizationDomainResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateOrganizationDomainResponse: + """Test V1beta1CreateOrganizationDomainResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateOrganizationDomainResponse` + """ + model = V1beta1CreateOrganizationDomainResponse() + if include_optional: + return V1beta1CreateOrganizationDomainResponse( + domain = frontier_api.models.v1beta1_domain.v1beta1Domain( + id = '943e4567-e89b-12d3-a456-426655440000', + name = 'raystack.org', + org_id = '123e4567-e89b-12d3-a456-426655440000', + token = '_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg==', + state = 'pending', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1CreateOrganizationDomainResponse( + ) + """ + + def testV1beta1CreateOrganizationDomainResponse(self): + """Test V1beta1CreateOrganizationDomainResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_organization_invitation_response.py b/test/test_v1beta1_create_organization_invitation_response.py new file mode 100644 index 0000000..6e3978a --- /dev/null +++ b/test/test_v1beta1_create_organization_invitation_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_organization_invitation_response import V1beta1CreateOrganizationInvitationResponse + +class TestV1beta1CreateOrganizationInvitationResponse(unittest.TestCase): + """V1beta1CreateOrganizationInvitationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateOrganizationInvitationResponse: + """Test V1beta1CreateOrganizationInvitationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateOrganizationInvitationResponse` + """ + model = V1beta1CreateOrganizationInvitationResponse() + if include_optional: + return V1beta1CreateOrganizationInvitationResponse( + invitations = [ + frontier_api.models.v1beta1_invitation.v1beta1Invitation( + id = 'k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + user_id = 'john.doe@raystack.org', + org_id = 'b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + group_ids = c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, + metadata = {"key":"value"}, + created_at = '2023-06-07T05:39:56.961Z', + expires_at = '2023-06-07T05:39:56.961Z', + role_ids = d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, ) + ] + ) + else: + return V1beta1CreateOrganizationInvitationResponse( + ) + """ + + def testV1beta1CreateOrganizationInvitationResponse(self): + """Test V1beta1CreateOrganizationInvitationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_organization_preferences_response.py b/test/test_v1beta1_create_organization_preferences_response.py new file mode 100644 index 0000000..2ed9182 --- /dev/null +++ b/test/test_v1beta1_create_organization_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_organization_preferences_response import V1beta1CreateOrganizationPreferencesResponse + +class TestV1beta1CreateOrganizationPreferencesResponse(unittest.TestCase): + """V1beta1CreateOrganizationPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateOrganizationPreferencesResponse: + """Test V1beta1CreateOrganizationPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateOrganizationPreferencesResponse` + """ + model = V1beta1CreateOrganizationPreferencesResponse() + if include_optional: + return V1beta1CreateOrganizationPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1CreateOrganizationPreferencesResponse( + ) + """ + + def testV1beta1CreateOrganizationPreferencesResponse(self): + """Test V1beta1CreateOrganizationPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_organization_response.py b/test/test_v1beta1_create_organization_response.py new file mode 100644 index 0000000..352c120 --- /dev/null +++ b/test/test_v1beta1_create_organization_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_organization_response import V1beta1CreateOrganizationResponse + +class TestV1beta1CreateOrganizationResponse(unittest.TestCase): + """V1beta1CreateOrganizationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateOrganizationResponse: + """Test V1beta1CreateOrganizationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateOrganizationResponse` + """ + model = V1beta1CreateOrganizationResponse() + if include_optional: + return V1beta1CreateOrganizationResponse( + organization = frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1CreateOrganizationResponse( + ) + """ + + def testV1beta1CreateOrganizationResponse(self): + """Test V1beta1CreateOrganizationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_organization_role_response.py b/test/test_v1beta1_create_organization_role_response.py new file mode 100644 index 0000000..1ff2839 --- /dev/null +++ b/test/test_v1beta1_create_organization_role_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_organization_role_response import V1beta1CreateOrganizationRoleResponse + +class TestV1beta1CreateOrganizationRoleResponse(unittest.TestCase): + """V1beta1CreateOrganizationRoleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateOrganizationRoleResponse: + """Test V1beta1CreateOrganizationRoleResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateOrganizationRoleResponse` + """ + model = V1beta1CreateOrganizationRoleResponse() + if include_optional: + return V1beta1CreateOrganizationRoleResponse( + role = frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ) + else: + return V1beta1CreateOrganizationRoleResponse( + ) + """ + + def testV1beta1CreateOrganizationRoleResponse(self): + """Test V1beta1CreateOrganizationRoleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_permission_request.py b/test/test_v1beta1_create_permission_request.py new file mode 100644 index 0000000..e41fb53 --- /dev/null +++ b/test/test_v1beta1_create_permission_request.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_permission_request import V1beta1CreatePermissionRequest + +class TestV1beta1CreatePermissionRequest(unittest.TestCase): + """V1beta1CreatePermissionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePermissionRequest: + """Test V1beta1CreatePermissionRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePermissionRequest` + """ + model = V1beta1CreatePermissionRequest() + if include_optional: + return V1beta1CreatePermissionRequest( + bodies = [ + frontier_api.models.v1beta1_permission_request_body.v1beta1PermissionRequestBody( + name = '', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', + key = 'compute.instance.get', ) + ] + ) + else: + return V1beta1CreatePermissionRequest( + ) + """ + + def testV1beta1CreatePermissionRequest(self): + """Test V1beta1CreatePermissionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_permission_response.py b/test/test_v1beta1_create_permission_response.py new file mode 100644 index 0000000..276a509 --- /dev/null +++ b/test/test_v1beta1_create_permission_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_permission_response import V1beta1CreatePermissionResponse + +class TestV1beta1CreatePermissionResponse(unittest.TestCase): + """V1beta1CreatePermissionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePermissionResponse: + """Test V1beta1CreatePermissionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePermissionResponse` + """ + model = V1beta1CreatePermissionResponse() + if include_optional: + return V1beta1CreatePermissionResponse( + permissions = [ + frontier_api.models.v1beta1_permission.v1beta1Permission( + id = '', + name = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + key = 'compute.instance.get', ) + ] + ) + else: + return V1beta1CreatePermissionResponse( + ) + """ + + def testV1beta1CreatePermissionResponse(self): + """Test V1beta1CreatePermissionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_plan_request.py b/test/test_v1beta1_create_plan_request.py new file mode 100644 index 0000000..1af9294 --- /dev/null +++ b/test/test_v1beta1_create_plan_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_plan_request import V1beta1CreatePlanRequest + +class TestV1beta1CreatePlanRequest(unittest.TestCase): + """V1beta1CreatePlanRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePlanRequest: + """Test V1beta1CreatePlanRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePlanRequest` + """ + model = V1beta1CreatePlanRequest() + if include_optional: + return V1beta1CreatePlanRequest( + body = frontier_api.models.v1beta1_plan_request_body.v1beta1PlanRequestBody( + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return V1beta1CreatePlanRequest( + ) + """ + + def testV1beta1CreatePlanRequest(self): + """Test V1beta1CreatePlanRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_plan_response.py b/test/test_v1beta1_create_plan_response.py new file mode 100644 index 0000000..7754a8a --- /dev/null +++ b/test/test_v1beta1_create_plan_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_plan_response import V1beta1CreatePlanResponse + +class TestV1beta1CreatePlanResponse(unittest.TestCase): + """V1beta1CreatePlanResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePlanResponse: + """Test V1beta1CreatePlanResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePlanResponse` + """ + model = V1beta1CreatePlanResponse() + if include_optional: + return V1beta1CreatePlanResponse( + plan = frontier_api.models.v1beta1_plan.v1beta1Plan( + id = '', + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1CreatePlanResponse( + ) + """ + + def testV1beta1CreatePlanResponse(self): + """Test V1beta1CreatePlanResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_policy_response.py b/test/test_v1beta1_create_policy_response.py new file mode 100644 index 0000000..2fc0873 --- /dev/null +++ b/test/test_v1beta1_create_policy_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_policy_response import V1beta1CreatePolicyResponse + +class TestV1beta1CreatePolicyResponse(unittest.TestCase): + """V1beta1CreatePolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePolicyResponse: + """Test V1beta1CreatePolicyResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePolicyResponse` + """ + model = V1beta1CreatePolicyResponse() + if include_optional: + return V1beta1CreatePolicyResponse( + policy = frontier_api.models.v1beta1_policy.v1beta1Policy( + id = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + role_id = '', + resource = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return V1beta1CreatePolicyResponse( + ) + """ + + def testV1beta1CreatePolicyResponse(self): + """Test V1beta1CreatePolicyResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_preferences_request.py b/test/test_v1beta1_create_preferences_request.py new file mode 100644 index 0000000..53a4004 --- /dev/null +++ b/test/test_v1beta1_create_preferences_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_preferences_request import V1beta1CreatePreferencesRequest + +class TestV1beta1CreatePreferencesRequest(unittest.TestCase): + """V1beta1CreatePreferencesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePreferencesRequest: + """Test V1beta1CreatePreferencesRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePreferencesRequest` + """ + model = V1beta1CreatePreferencesRequest() + if include_optional: + return V1beta1CreatePreferencesRequest( + preferences = [ + frontier_api.models.v1beta1_preference_request_body.v1beta1PreferenceRequestBody( + name = '', + value = '', ) + ] + ) + else: + return V1beta1CreatePreferencesRequest( + ) + """ + + def testV1beta1CreatePreferencesRequest(self): + """Test V1beta1CreatePreferencesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_preferences_response.py b/test/test_v1beta1_create_preferences_response.py new file mode 100644 index 0000000..ae5e1f1 --- /dev/null +++ b/test/test_v1beta1_create_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_preferences_response import V1beta1CreatePreferencesResponse + +class TestV1beta1CreatePreferencesResponse(unittest.TestCase): + """V1beta1CreatePreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreatePreferencesResponse: + """Test V1beta1CreatePreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreatePreferencesResponse` + """ + model = V1beta1CreatePreferencesResponse() + if include_optional: + return V1beta1CreatePreferencesResponse( + preference = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1CreatePreferencesResponse( + ) + """ + + def testV1beta1CreatePreferencesResponse(self): + """Test V1beta1CreatePreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_project_preferences_response.py b/test/test_v1beta1_create_project_preferences_response.py new file mode 100644 index 0000000..6bc0806 --- /dev/null +++ b/test/test_v1beta1_create_project_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_project_preferences_response import V1beta1CreateProjectPreferencesResponse + +class TestV1beta1CreateProjectPreferencesResponse(unittest.TestCase): + """V1beta1CreateProjectPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateProjectPreferencesResponse: + """Test V1beta1CreateProjectPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateProjectPreferencesResponse` + """ + model = V1beta1CreateProjectPreferencesResponse() + if include_optional: + return V1beta1CreateProjectPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1CreateProjectPreferencesResponse( + ) + """ + + def testV1beta1CreateProjectPreferencesResponse(self): + """Test V1beta1CreateProjectPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_project_resource_response.py b/test/test_v1beta1_create_project_resource_response.py new file mode 100644 index 0000000..812f42e --- /dev/null +++ b/test/test_v1beta1_create_project_resource_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_project_resource_response import V1beta1CreateProjectResourceResponse + +class TestV1beta1CreateProjectResourceResponse(unittest.TestCase): + """V1beta1CreateProjectResourceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateProjectResourceResponse: + """Test V1beta1CreateProjectResourceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateProjectResourceResponse` + """ + model = V1beta1CreateProjectResourceResponse() + if include_optional: + return V1beta1CreateProjectResourceResponse( + resource = frontier_api.models.v1beta1_resource.v1beta1Resource( + id = '', + name = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + urn = '', + project_id = '', + namespace = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', ) + ) + else: + return V1beta1CreateProjectResourceResponse( + ) + """ + + def testV1beta1CreateProjectResourceResponse(self): + """Test V1beta1CreateProjectResourceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_project_response.py b/test/test_v1beta1_create_project_response.py new file mode 100644 index 0000000..c38087e --- /dev/null +++ b/test/test_v1beta1_create_project_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_project_response import V1beta1CreateProjectResponse + +class TestV1beta1CreateProjectResponse(unittest.TestCase): + """V1beta1CreateProjectResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateProjectResponse: + """Test V1beta1CreateProjectResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateProjectResponse` + """ + model = V1beta1CreateProjectResponse() + if include_optional: + return V1beta1CreateProjectResponse( + project = frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1CreateProjectResponse( + ) + """ + + def testV1beta1CreateProjectResponse(self): + """Test V1beta1CreateProjectResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_relation_response.py b/test/test_v1beta1_create_relation_response.py new file mode 100644 index 0000000..9c6a9ed --- /dev/null +++ b/test/test_v1beta1_create_relation_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_relation_response import V1beta1CreateRelationResponse + +class TestV1beta1CreateRelationResponse(unittest.TestCase): + """V1beta1CreateRelationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateRelationResponse: + """Test V1beta1CreateRelationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateRelationResponse` + """ + model = V1beta1CreateRelationResponse() + if include_optional: + return V1beta1CreateRelationResponse( + relation = frontier_api.models.v1beta1_relation.v1beta1Relation( + id = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + subject_sub_relation = '', + relation = '', + object = '', + subject = '', ) + ) + else: + return V1beta1CreateRelationResponse( + ) + """ + + def testV1beta1CreateRelationResponse(self): + """Test V1beta1CreateRelationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_role_response.py b/test/test_v1beta1_create_role_response.py new file mode 100644 index 0000000..3337d0a --- /dev/null +++ b/test/test_v1beta1_create_role_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_role_response import V1beta1CreateRoleResponse + +class TestV1beta1CreateRoleResponse(unittest.TestCase): + """V1beta1CreateRoleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateRoleResponse: + """Test V1beta1CreateRoleResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateRoleResponse` + """ + model = V1beta1CreateRoleResponse() + if include_optional: + return V1beta1CreateRoleResponse( + role = frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ) + else: + return V1beta1CreateRoleResponse( + ) + """ + + def testV1beta1CreateRoleResponse(self): + """Test V1beta1CreateRoleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_service_user_key_response.py b/test/test_v1beta1_create_service_user_key_response.py new file mode 100644 index 0000000..276247e --- /dev/null +++ b/test/test_v1beta1_create_service_user_key_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_service_user_key_response import V1beta1CreateServiceUserKeyResponse + +class TestV1beta1CreateServiceUserKeyResponse(unittest.TestCase): + """V1beta1CreateServiceUserKeyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateServiceUserKeyResponse: + """Test V1beta1CreateServiceUserKeyResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateServiceUserKeyResponse` + """ + model = V1beta1CreateServiceUserKeyResponse() + if include_optional: + return V1beta1CreateServiceUserKeyResponse( + key = frontier_api.models.v1beta1_key_credential.v1beta1KeyCredential( + type = '', + kid = '', + principal_id = '', + private_key = '', ) + ) + else: + return V1beta1CreateServiceUserKeyResponse( + ) + """ + + def testV1beta1CreateServiceUserKeyResponse(self): + """Test V1beta1CreateServiceUserKeyResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_service_user_request.py b/test/test_v1beta1_create_service_user_request.py new file mode 100644 index 0000000..2380283 --- /dev/null +++ b/test/test_v1beta1_create_service_user_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_service_user_request import V1beta1CreateServiceUserRequest + +class TestV1beta1CreateServiceUserRequest(unittest.TestCase): + """V1beta1CreateServiceUserRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateServiceUserRequest: + """Test V1beta1CreateServiceUserRequest + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateServiceUserRequest` + """ + model = V1beta1CreateServiceUserRequest() + if include_optional: + return V1beta1CreateServiceUserRequest( + body = frontier_api.models.v1beta1_service_user_request_body.v1beta1ServiceUserRequestBody( + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), ), + org_id = '' + ) + else: + return V1beta1CreateServiceUserRequest( + org_id = '', + ) + """ + + def testV1beta1CreateServiceUserRequest(self): + """Test V1beta1CreateServiceUserRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_service_user_response.py b/test/test_v1beta1_create_service_user_response.py new file mode 100644 index 0000000..893ac47 --- /dev/null +++ b/test/test_v1beta1_create_service_user_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_service_user_response import V1beta1CreateServiceUserResponse + +class TestV1beta1CreateServiceUserResponse(unittest.TestCase): + """V1beta1CreateServiceUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateServiceUserResponse: + """Test V1beta1CreateServiceUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateServiceUserResponse` + """ + model = V1beta1CreateServiceUserResponse() + if include_optional: + return V1beta1CreateServiceUserResponse( + serviceuser = frontier_api.models.v1beta1_service_user.v1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '', ) + ) + else: + return V1beta1CreateServiceUserResponse( + ) + """ + + def testV1beta1CreateServiceUserResponse(self): + """Test V1beta1CreateServiceUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_service_user_secret_response.py b/test/test_v1beta1_create_service_user_secret_response.py new file mode 100644 index 0000000..c555235 --- /dev/null +++ b/test/test_v1beta1_create_service_user_secret_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_service_user_secret_response import V1beta1CreateServiceUserSecretResponse + +class TestV1beta1CreateServiceUserSecretResponse(unittest.TestCase): + """V1beta1CreateServiceUserSecretResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateServiceUserSecretResponse: + """Test V1beta1CreateServiceUserSecretResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateServiceUserSecretResponse` + """ + model = V1beta1CreateServiceUserSecretResponse() + if include_optional: + return V1beta1CreateServiceUserSecretResponse( + secret = frontier_api.models.v1beta1_secret_credential.v1beta1SecretCredential( + id = '', + title = '', + secret = '', + created_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1CreateServiceUserSecretResponse( + ) + """ + + def testV1beta1CreateServiceUserSecretResponse(self): + """Test V1beta1CreateServiceUserSecretResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_user_preferences_response.py b/test/test_v1beta1_create_user_preferences_response.py new file mode 100644 index 0000000..478636a --- /dev/null +++ b/test/test_v1beta1_create_user_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_user_preferences_response import V1beta1CreateUserPreferencesResponse + +class TestV1beta1CreateUserPreferencesResponse(unittest.TestCase): + """V1beta1CreateUserPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateUserPreferencesResponse: + """Test V1beta1CreateUserPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateUserPreferencesResponse` + """ + model = V1beta1CreateUserPreferencesResponse() + if include_optional: + return V1beta1CreateUserPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1CreateUserPreferencesResponse( + ) + """ + + def testV1beta1CreateUserPreferencesResponse(self): + """Test V1beta1CreateUserPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_create_user_response.py b/test/test_v1beta1_create_user_response.py new file mode 100644 index 0000000..088ec00 --- /dev/null +++ b/test/test_v1beta1_create_user_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_create_user_response import V1beta1CreateUserResponse + +class TestV1beta1CreateUserResponse(unittest.TestCase): + """V1beta1CreateUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1CreateUserResponse: + """Test V1beta1CreateUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1CreateUserResponse` + """ + model = V1beta1CreateUserResponse() + if include_optional: + return V1beta1CreateUserResponse( + user = frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1CreateUserResponse( + ) + """ + + def testV1beta1CreateUserResponse(self): + """Test V1beta1CreateUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_describe_preferences_response.py b/test/test_v1beta1_describe_preferences_response.py new file mode 100644 index 0000000..5f1358a --- /dev/null +++ b/test/test_v1beta1_describe_preferences_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_describe_preferences_response import V1beta1DescribePreferencesResponse + +class TestV1beta1DescribePreferencesResponse(unittest.TestCase): + """V1beta1DescribePreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1DescribePreferencesResponse: + """Test V1beta1DescribePreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1DescribePreferencesResponse` + """ + model = V1beta1DescribePreferencesResponse() + if include_optional: + return V1beta1DescribePreferencesResponse( + traits = [ + frontier_api.models.preference_trait_is_a_trait_that_can_be_used_to_add_preferences_to_a_resource +it_explains_what_preferences_are_available_for_a_resource.PreferenceTrait is a trait that can be used to add preferences to a resource +it explains what preferences are available for a resource( + resource_type = '', + name = '', + title = '', + description = '', + long_description = '', + heading = '', + sub_heading = '', + breadcrumb = '', + default = '', + input_hints = '', + text = '', + textarea = '', + select = '', + combobox = '', + checkbox = '', + multiselect = '', + number = '', ) + ] + ) + else: + return V1beta1DescribePreferencesResponse( + ) + """ + + def testV1beta1DescribePreferencesResponse(self): + """Test V1beta1DescribePreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_domain.py b/test/test_v1beta1_domain.py new file mode 100644 index 0000000..4b4e540 --- /dev/null +++ b/test/test_v1beta1_domain.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_domain import V1beta1Domain + +class TestV1beta1Domain(unittest.TestCase): + """V1beta1Domain unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Domain: + """Test V1beta1Domain + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Domain` + """ + model = V1beta1Domain() + if include_optional: + return V1beta1Domain( + id = '943e4567-e89b-12d3-a456-426655440000', + name = 'raystack.org', + org_id = '123e4567-e89b-12d3-a456-426655440000', + token = '_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg==', + state = 'pending', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1Domain( + ) + """ + + def testV1beta1Domain(self): + """Test V1beta1Domain""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_feature.py b/test/test_v1beta1_feature.py new file mode 100644 index 0000000..aa1750b --- /dev/null +++ b/test/test_v1beta1_feature.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_feature import V1beta1Feature + +class TestV1beta1Feature(unittest.TestCase): + """V1beta1Feature unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Feature: + """Test V1beta1Feature + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Feature` + """ + model = V1beta1Feature() + if include_optional: + return V1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1Feature( + ) + """ + + def testV1beta1Feature(self): + """Test V1beta1Feature""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_feature_request_body.py b/test/test_v1beta1_feature_request_body.py new file mode 100644 index 0000000..3cb0074 --- /dev/null +++ b/test/test_v1beta1_feature_request_body.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_feature_request_body import V1beta1FeatureRequestBody + +class TestV1beta1FeatureRequestBody(unittest.TestCase): + """V1beta1FeatureRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1FeatureRequestBody: + """Test V1beta1FeatureRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1FeatureRequestBody` + """ + model = V1beta1FeatureRequestBody() + if include_optional: + return V1beta1FeatureRequestBody( + name = '', + title = '', + description = '', + plan_id = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata() + ) + else: + return V1beta1FeatureRequestBody( + ) + """ + + def testV1beta1FeatureRequestBody(self): + """Test V1beta1FeatureRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_billing_account_response.py b/test/test_v1beta1_get_billing_account_response.py new file mode 100644 index 0000000..b898f28 --- /dev/null +++ b/test/test_v1beta1_get_billing_account_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_billing_account_response import V1beta1GetBillingAccountResponse + +class TestV1beta1GetBillingAccountResponse(unittest.TestCase): + """V1beta1GetBillingAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetBillingAccountResponse: + """Test V1beta1GetBillingAccountResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetBillingAccountResponse` + """ + model = V1beta1GetBillingAccountResponse() + if include_optional: + return V1beta1GetBillingAccountResponse( + billing_account = frontier_api.models.v1beta1_billing_account.v1beta1BillingAccount( + id = '', + org_id = '', + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + provider_id = '', + provider = '', + currency = '', + state = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1GetBillingAccountResponse( + ) + """ + + def testV1beta1GetBillingAccountResponse(self): + """Test V1beta1GetBillingAccountResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_billing_balance_response.py b/test/test_v1beta1_get_billing_balance_response.py new file mode 100644 index 0000000..3da6b34 --- /dev/null +++ b/test/test_v1beta1_get_billing_balance_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_billing_balance_response import V1beta1GetBillingBalanceResponse + +class TestV1beta1GetBillingBalanceResponse(unittest.TestCase): + """V1beta1GetBillingBalanceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetBillingBalanceResponse: + """Test V1beta1GetBillingBalanceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetBillingBalanceResponse` + """ + model = V1beta1GetBillingBalanceResponse() + if include_optional: + return V1beta1GetBillingBalanceResponse( + balance = frontier_api.models.billing_account_balance.BillingAccountBalance( + amount = '', + currency = '', + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1GetBillingBalanceResponse( + ) + """ + + def testV1beta1GetBillingBalanceResponse(self): + """Test V1beta1GetBillingBalanceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_current_user_response.py b/test/test_v1beta1_get_current_user_response.py new file mode 100644 index 0000000..1327ab1 --- /dev/null +++ b/test/test_v1beta1_get_current_user_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_current_user_response import V1beta1GetCurrentUserResponse + +class TestV1beta1GetCurrentUserResponse(unittest.TestCase): + """V1beta1GetCurrentUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetCurrentUserResponse: + """Test V1beta1GetCurrentUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetCurrentUserResponse` + """ + model = V1beta1GetCurrentUserResponse() + if include_optional: + return V1beta1GetCurrentUserResponse( + user = frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ), + serviceuser = frontier_api.models.v1beta1_service_user.v1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '', ) + ) + else: + return V1beta1GetCurrentUserResponse( + ) + """ + + def testV1beta1GetCurrentUserResponse(self): + """Test V1beta1GetCurrentUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_feature_response.py b/test/test_v1beta1_get_feature_response.py new file mode 100644 index 0000000..b0a4b77 --- /dev/null +++ b/test/test_v1beta1_get_feature_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_feature_response import V1beta1GetFeatureResponse + +class TestV1beta1GetFeatureResponse(unittest.TestCase): + """V1beta1GetFeatureResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetFeatureResponse: + """Test V1beta1GetFeatureResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetFeatureResponse` + """ + model = V1beta1GetFeatureResponse() + if include_optional: + return V1beta1GetFeatureResponse( + feature = frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1GetFeatureResponse( + ) + """ + + def testV1beta1GetFeatureResponse(self): + """Test V1beta1GetFeatureResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_group_response.py b/test/test_v1beta1_get_group_response.py new file mode 100644 index 0000000..94d5310 --- /dev/null +++ b/test/test_v1beta1_get_group_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_group_response import V1beta1GetGroupResponse + +class TestV1beta1GetGroupResponse(unittest.TestCase): + """V1beta1GetGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetGroupResponse: + """Test V1beta1GetGroupResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetGroupResponse` + """ + model = V1beta1GetGroupResponse() + if include_optional: + return V1beta1GetGroupResponse( + group = frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ) + else: + return V1beta1GetGroupResponse( + ) + """ + + def testV1beta1GetGroupResponse(self): + """Test V1beta1GetGroupResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_jwks_response.py b/test/test_v1beta1_get_jwks_response.py new file mode 100644 index 0000000..398c814 --- /dev/null +++ b/test/test_v1beta1_get_jwks_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_jwks_response import V1beta1GetJWKsResponse + +class TestV1beta1GetJWKsResponse(unittest.TestCase): + """V1beta1GetJWKsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetJWKsResponse: + """Test V1beta1GetJWKsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetJWKsResponse` + """ + model = V1beta1GetJWKsResponse() + if include_optional: + return V1beta1GetJWKsResponse( + keys = [ + frontier_api.models.json_web_key_as_specified_in_rfc_7517.JSON Web Key as specified in RFC 7517( + kty = '', + alg = '', + use = '', + kid = '', + n = '', + e = '', + x = '', + y = '', + crv = '', ) + ] + ) + else: + return V1beta1GetJWKsResponse( + ) + """ + + def testV1beta1GetJWKsResponse(self): + """Test V1beta1GetJWKsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_meta_schema_response.py b/test/test_v1beta1_get_meta_schema_response.py new file mode 100644 index 0000000..28546c4 --- /dev/null +++ b/test/test_v1beta1_get_meta_schema_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_meta_schema_response import V1beta1GetMetaSchemaResponse + +class TestV1beta1GetMetaSchemaResponse(unittest.TestCase): + """V1beta1GetMetaSchemaResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetMetaSchemaResponse: + """Test V1beta1GetMetaSchemaResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetMetaSchemaResponse` + """ + model = V1beta1GetMetaSchemaResponse() + if include_optional: + return V1beta1GetMetaSchemaResponse( + metaschema = frontier_api.models.v1beta1_meta_schema.v1beta1MetaSchema( + id = 'a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + name = '', + schema = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1GetMetaSchemaResponse( + ) + """ + + def testV1beta1GetMetaSchemaResponse(self): + """Test V1beta1GetMetaSchemaResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_namespace_response.py b/test/test_v1beta1_get_namespace_response.py new file mode 100644 index 0000000..f3ef64f --- /dev/null +++ b/test/test_v1beta1_get_namespace_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_namespace_response import V1beta1GetNamespaceResponse + +class TestV1beta1GetNamespaceResponse(unittest.TestCase): + """V1beta1GetNamespaceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetNamespaceResponse: + """Test V1beta1GetNamespaceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetNamespaceResponse` + """ + model = V1beta1GetNamespaceResponse() + if include_optional: + return V1beta1GetNamespaceResponse( + namespace = frontier_api.models.v1beta1_namespace.v1beta1Namespace( + id = '', + name = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1GetNamespaceResponse( + ) + """ + + def testV1beta1GetNamespaceResponse(self): + """Test V1beta1GetNamespaceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_organization_audit_log_response.py b/test/test_v1beta1_get_organization_audit_log_response.py new file mode 100644 index 0000000..9961c81 --- /dev/null +++ b/test/test_v1beta1_get_organization_audit_log_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_organization_audit_log_response import V1beta1GetOrganizationAuditLogResponse + +class TestV1beta1GetOrganizationAuditLogResponse(unittest.TestCase): + """V1beta1GetOrganizationAuditLogResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetOrganizationAuditLogResponse: + """Test V1beta1GetOrganizationAuditLogResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetOrganizationAuditLogResponse` + """ + model = V1beta1GetOrganizationAuditLogResponse() + if include_optional: + return V1beta1GetOrganizationAuditLogResponse( + log = frontier_api.models.v1beta1_audit_log.v1beta1AuditLog( + id = '', + source = 'auth', + action = '', + actor = frontier_api.models.v1beta1_audit_log_actor.v1beta1AuditLogActor( + id = '', + type = '', + name = '', ), + target = frontier_api.models.v1beta1_audit_log_target.v1beta1AuditLogTarget( + id = '', + type = '', + name = '', ), + context = { + 'key' : '' + }, + created_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1GetOrganizationAuditLogResponse( + ) + """ + + def testV1beta1GetOrganizationAuditLogResponse(self): + """Test V1beta1GetOrganizationAuditLogResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_organization_domain_response.py b/test/test_v1beta1_get_organization_domain_response.py new file mode 100644 index 0000000..5188a10 --- /dev/null +++ b/test/test_v1beta1_get_organization_domain_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_organization_domain_response import V1beta1GetOrganizationDomainResponse + +class TestV1beta1GetOrganizationDomainResponse(unittest.TestCase): + """V1beta1GetOrganizationDomainResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetOrganizationDomainResponse: + """Test V1beta1GetOrganizationDomainResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetOrganizationDomainResponse` + """ + model = V1beta1GetOrganizationDomainResponse() + if include_optional: + return V1beta1GetOrganizationDomainResponse( + domain = frontier_api.models.v1beta1_domain.v1beta1Domain( + id = '943e4567-e89b-12d3-a456-426655440000', + name = 'raystack.org', + org_id = '123e4567-e89b-12d3-a456-426655440000', + token = '_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg==', + state = 'pending', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1GetOrganizationDomainResponse( + ) + """ + + def testV1beta1GetOrganizationDomainResponse(self): + """Test V1beta1GetOrganizationDomainResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_organization_invitation_response.py b/test/test_v1beta1_get_organization_invitation_response.py new file mode 100644 index 0000000..8c9f5b0 --- /dev/null +++ b/test/test_v1beta1_get_organization_invitation_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_organization_invitation_response import V1beta1GetOrganizationInvitationResponse + +class TestV1beta1GetOrganizationInvitationResponse(unittest.TestCase): + """V1beta1GetOrganizationInvitationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetOrganizationInvitationResponse: + """Test V1beta1GetOrganizationInvitationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetOrganizationInvitationResponse` + """ + model = V1beta1GetOrganizationInvitationResponse() + if include_optional: + return V1beta1GetOrganizationInvitationResponse( + invitation = frontier_api.models.v1beta1_invitation.v1beta1Invitation( + id = 'k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + user_id = 'john.doe@raystack.org', + org_id = 'b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + group_ids = c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, + metadata = {"key":"value"}, + created_at = '2023-06-07T05:39:56.961Z', + expires_at = '2023-06-07T05:39:56.961Z', + role_ids = d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, ) + ) + else: + return V1beta1GetOrganizationInvitationResponse( + ) + """ + + def testV1beta1GetOrganizationInvitationResponse(self): + """Test V1beta1GetOrganizationInvitationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_organization_response.py b/test/test_v1beta1_get_organization_response.py new file mode 100644 index 0000000..500da79 --- /dev/null +++ b/test/test_v1beta1_get_organization_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_organization_response import V1beta1GetOrganizationResponse + +class TestV1beta1GetOrganizationResponse(unittest.TestCase): + """V1beta1GetOrganizationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetOrganizationResponse: + """Test V1beta1GetOrganizationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetOrganizationResponse` + """ + model = V1beta1GetOrganizationResponse() + if include_optional: + return V1beta1GetOrganizationResponse( + organization = frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1GetOrganizationResponse( + ) + """ + + def testV1beta1GetOrganizationResponse(self): + """Test V1beta1GetOrganizationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_organization_role_response.py b/test/test_v1beta1_get_organization_role_response.py new file mode 100644 index 0000000..474dc40 --- /dev/null +++ b/test/test_v1beta1_get_organization_role_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_organization_role_response import V1beta1GetOrganizationRoleResponse + +class TestV1beta1GetOrganizationRoleResponse(unittest.TestCase): + """V1beta1GetOrganizationRoleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetOrganizationRoleResponse: + """Test V1beta1GetOrganizationRoleResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetOrganizationRoleResponse` + """ + model = V1beta1GetOrganizationRoleResponse() + if include_optional: + return V1beta1GetOrganizationRoleResponse( + role = frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ) + else: + return V1beta1GetOrganizationRoleResponse( + ) + """ + + def testV1beta1GetOrganizationRoleResponse(self): + """Test V1beta1GetOrganizationRoleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_permission_response.py b/test/test_v1beta1_get_permission_response.py new file mode 100644 index 0000000..eea0e62 --- /dev/null +++ b/test/test_v1beta1_get_permission_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_permission_response import V1beta1GetPermissionResponse + +class TestV1beta1GetPermissionResponse(unittest.TestCase): + """V1beta1GetPermissionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetPermissionResponse: + """Test V1beta1GetPermissionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetPermissionResponse` + """ + model = V1beta1GetPermissionResponse() + if include_optional: + return V1beta1GetPermissionResponse( + permission = frontier_api.models.v1beta1_permission.v1beta1Permission( + id = '', + name = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + key = 'compute.instance.get', ) + ) + else: + return V1beta1GetPermissionResponse( + ) + """ + + def testV1beta1GetPermissionResponse(self): + """Test V1beta1GetPermissionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_plan_response.py b/test/test_v1beta1_get_plan_response.py new file mode 100644 index 0000000..dfc012e --- /dev/null +++ b/test/test_v1beta1_get_plan_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_plan_response import V1beta1GetPlanResponse + +class TestV1beta1GetPlanResponse(unittest.TestCase): + """V1beta1GetPlanResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetPlanResponse: + """Test V1beta1GetPlanResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetPlanResponse` + """ + model = V1beta1GetPlanResponse() + if include_optional: + return V1beta1GetPlanResponse( + plan = frontier_api.models.v1beta1_plan.v1beta1Plan( + id = '', + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1GetPlanResponse( + ) + """ + + def testV1beta1GetPlanResponse(self): + """Test V1beta1GetPlanResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_policy_response.py b/test/test_v1beta1_get_policy_response.py new file mode 100644 index 0000000..40676ac --- /dev/null +++ b/test/test_v1beta1_get_policy_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_policy_response import V1beta1GetPolicyResponse + +class TestV1beta1GetPolicyResponse(unittest.TestCase): + """V1beta1GetPolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetPolicyResponse: + """Test V1beta1GetPolicyResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetPolicyResponse` + """ + model = V1beta1GetPolicyResponse() + if include_optional: + return V1beta1GetPolicyResponse( + policy = frontier_api.models.v1beta1_policy.v1beta1Policy( + id = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + role_id = '', + resource = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), ) + ) + else: + return V1beta1GetPolicyResponse( + ) + """ + + def testV1beta1GetPolicyResponse(self): + """Test V1beta1GetPolicyResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_project_resource_response.py b/test/test_v1beta1_get_project_resource_response.py new file mode 100644 index 0000000..9f3d9d1 --- /dev/null +++ b/test/test_v1beta1_get_project_resource_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_project_resource_response import V1beta1GetProjectResourceResponse + +class TestV1beta1GetProjectResourceResponse(unittest.TestCase): + """V1beta1GetProjectResourceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetProjectResourceResponse: + """Test V1beta1GetProjectResourceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetProjectResourceResponse` + """ + model = V1beta1GetProjectResourceResponse() + if include_optional: + return V1beta1GetProjectResourceResponse( + resource = frontier_api.models.v1beta1_resource.v1beta1Resource( + id = '', + name = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + urn = '', + project_id = '', + namespace = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', ) + ) + else: + return V1beta1GetProjectResourceResponse( + ) + """ + + def testV1beta1GetProjectResourceResponse(self): + """Test V1beta1GetProjectResourceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_project_response.py b/test/test_v1beta1_get_project_response.py new file mode 100644 index 0000000..ccfc923 --- /dev/null +++ b/test/test_v1beta1_get_project_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_project_response import V1beta1GetProjectResponse + +class TestV1beta1GetProjectResponse(unittest.TestCase): + """V1beta1GetProjectResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetProjectResponse: + """Test V1beta1GetProjectResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetProjectResponse` + """ + model = V1beta1GetProjectResponse() + if include_optional: + return V1beta1GetProjectResponse( + project = frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1GetProjectResponse( + ) + """ + + def testV1beta1GetProjectResponse(self): + """Test V1beta1GetProjectResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_relation_response.py b/test/test_v1beta1_get_relation_response.py new file mode 100644 index 0000000..83671e0 --- /dev/null +++ b/test/test_v1beta1_get_relation_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_relation_response import V1beta1GetRelationResponse + +class TestV1beta1GetRelationResponse(unittest.TestCase): + """V1beta1GetRelationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetRelationResponse: + """Test V1beta1GetRelationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetRelationResponse` + """ + model = V1beta1GetRelationResponse() + if include_optional: + return V1beta1GetRelationResponse( + relation = frontier_api.models.v1beta1_relation.v1beta1Relation( + id = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + subject_sub_relation = '', + relation = '', + object = '', + subject = '', ) + ) + else: + return V1beta1GetRelationResponse( + ) + """ + + def testV1beta1GetRelationResponse(self): + """Test V1beta1GetRelationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_service_user_key_response.py b/test/test_v1beta1_get_service_user_key_response.py new file mode 100644 index 0000000..0581c4f --- /dev/null +++ b/test/test_v1beta1_get_service_user_key_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_service_user_key_response import V1beta1GetServiceUserKeyResponse + +class TestV1beta1GetServiceUserKeyResponse(unittest.TestCase): + """V1beta1GetServiceUserKeyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetServiceUserKeyResponse: + """Test V1beta1GetServiceUserKeyResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetServiceUserKeyResponse` + """ + model = V1beta1GetServiceUserKeyResponse() + if include_optional: + return V1beta1GetServiceUserKeyResponse( + keys = [ + frontier_api.models.json_web_key_as_specified_in_rfc_7517.JSON Web Key as specified in RFC 7517( + kty = '', + alg = '', + use = '', + kid = '', + n = '', + e = '', + x = '', + y = '', + crv = '', ) + ] + ) + else: + return V1beta1GetServiceUserKeyResponse( + ) + """ + + def testV1beta1GetServiceUserKeyResponse(self): + """Test V1beta1GetServiceUserKeyResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_service_user_response.py b/test/test_v1beta1_get_service_user_response.py new file mode 100644 index 0000000..bdd08d5 --- /dev/null +++ b/test/test_v1beta1_get_service_user_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_service_user_response import V1beta1GetServiceUserResponse + +class TestV1beta1GetServiceUserResponse(unittest.TestCase): + """V1beta1GetServiceUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetServiceUserResponse: + """Test V1beta1GetServiceUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetServiceUserResponse` + """ + model = V1beta1GetServiceUserResponse() + if include_optional: + return V1beta1GetServiceUserResponse( + serviceuser = frontier_api.models.v1beta1_service_user.v1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '', ) + ) + else: + return V1beta1GetServiceUserResponse( + ) + """ + + def testV1beta1GetServiceUserResponse(self): + """Test V1beta1GetServiceUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_subscription_response.py b/test/test_v1beta1_get_subscription_response.py new file mode 100644 index 0000000..b19c7b8 --- /dev/null +++ b/test/test_v1beta1_get_subscription_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_subscription_response import V1beta1GetSubscriptionResponse + +class TestV1beta1GetSubscriptionResponse(unittest.TestCase): + """V1beta1GetSubscriptionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetSubscriptionResponse: + """Test V1beta1GetSubscriptionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetSubscriptionResponse` + """ + model = V1beta1GetSubscriptionResponse() + if include_optional: + return V1beta1GetSubscriptionResponse( + subscription = frontier_api.models.v1beta1_subscription.v1beta1Subscription( + id = '', + customer_id = '', + provider_id = '', + plan_id = '', + state = '', + trial_days = 56, + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + canceled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1GetSubscriptionResponse( + ) + """ + + def testV1beta1GetSubscriptionResponse(self): + """Test V1beta1GetSubscriptionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_get_user_response.py b/test/test_v1beta1_get_user_response.py new file mode 100644 index 0000000..478aa0c --- /dev/null +++ b/test/test_v1beta1_get_user_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_get_user_response import V1beta1GetUserResponse + +class TestV1beta1GetUserResponse(unittest.TestCase): + """V1beta1GetUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GetUserResponse: + """Test V1beta1GetUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GetUserResponse` + """ + model = V1beta1GetUserResponse() + if include_optional: + return V1beta1GetUserResponse( + user = frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1GetUserResponse( + ) + """ + + def testV1beta1GetUserResponse(self): + """Test V1beta1GetUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_group.py b/test/test_v1beta1_group.py new file mode 100644 index 0000000..151fd67 --- /dev/null +++ b/test/test_v1beta1_group.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_group import V1beta1Group + +class TestV1beta1Group(unittest.TestCase): + """V1beta1Group unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Group: + """Test V1beta1Group + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Group` + """ + model = V1beta1Group() + if include_optional: + return V1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1Group( + ) + """ + + def testV1beta1Group(self): + """Test V1beta1Group""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_group_request_body.py b/test/test_v1beta1_group_request_body.py new file mode 100644 index 0000000..3684d3b --- /dev/null +++ b/test/test_v1beta1_group_request_body.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_group_request_body import V1beta1GroupRequestBody + +class TestV1beta1GroupRequestBody(unittest.TestCase): + """V1beta1GroupRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1GroupRequestBody: + """Test V1beta1GroupRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1GroupRequestBody` + """ + model = V1beta1GroupRequestBody() + if include_optional: + return V1beta1GroupRequestBody( + name = '', + title = '', + metadata = None + ) + else: + return V1beta1GroupRequestBody( + name = '', + ) + """ + + def testV1beta1GroupRequestBody(self): + """Test V1beta1GroupRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_invitation.py b/test/test_v1beta1_invitation.py new file mode 100644 index 0000000..3885e3b --- /dev/null +++ b/test/test_v1beta1_invitation.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_invitation import V1beta1Invitation + +class TestV1beta1Invitation(unittest.TestCase): + """V1beta1Invitation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Invitation: + """Test V1beta1Invitation + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Invitation` + """ + model = V1beta1Invitation() + if include_optional: + return V1beta1Invitation( + id = 'k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + user_id = 'john.doe@raystack.org', + org_id = 'b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + group_ids = c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, + metadata = {"key":"value"}, + created_at = '2023-06-07T05:39:56.961Z', + expires_at = '2023-06-07T05:39:56.961Z', + role_ids = d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b + ) + else: + return V1beta1Invitation( + ) + """ + + def testV1beta1Invitation(self): + """Test V1beta1Invitation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_json_web_key.py b/test/test_v1beta1_json_web_key.py new file mode 100644 index 0000000..a223634 --- /dev/null +++ b/test/test_v1beta1_json_web_key.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_json_web_key import V1beta1JSONWebKey + +class TestV1beta1JSONWebKey(unittest.TestCase): + """V1beta1JSONWebKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1JSONWebKey: + """Test V1beta1JSONWebKey + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1JSONWebKey` + """ + model = V1beta1JSONWebKey() + if include_optional: + return V1beta1JSONWebKey( + kty = '', + alg = '', + use = '', + kid = '', + n = '', + e = '', + x = '', + y = '', + crv = '' + ) + else: + return V1beta1JSONWebKey( + ) + """ + + def testV1beta1JSONWebKey(self): + """Test V1beta1JSONWebKey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_key_credential.py b/test/test_v1beta1_key_credential.py new file mode 100644 index 0000000..143c74b --- /dev/null +++ b/test/test_v1beta1_key_credential.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_key_credential import V1beta1KeyCredential + +class TestV1beta1KeyCredential(unittest.TestCase): + """V1beta1KeyCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1KeyCredential: + """Test V1beta1KeyCredential + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1KeyCredential` + """ + model = V1beta1KeyCredential() + if include_optional: + return V1beta1KeyCredential( + type = '', + kid = '', + principal_id = '', + private_key = '' + ) + else: + return V1beta1KeyCredential( + ) + """ + + def testV1beta1KeyCredential(self): + """Test V1beta1KeyCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_all_organizations_response.py b/test/test_v1beta1_list_all_organizations_response.py new file mode 100644 index 0000000..12029fa --- /dev/null +++ b/test/test_v1beta1_list_all_organizations_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_all_organizations_response import V1beta1ListAllOrganizationsResponse + +class TestV1beta1ListAllOrganizationsResponse(unittest.TestCase): + """V1beta1ListAllOrganizationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListAllOrganizationsResponse: + """Test V1beta1ListAllOrganizationsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListAllOrganizationsResponse` + """ + model = V1beta1ListAllOrganizationsResponse() + if include_optional: + return V1beta1ListAllOrganizationsResponse( + organizations = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListAllOrganizationsResponse( + ) + """ + + def testV1beta1ListAllOrganizationsResponse(self): + """Test V1beta1ListAllOrganizationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_all_users_response.py b/test/test_v1beta1_list_all_users_response.py new file mode 100644 index 0000000..28e9709 --- /dev/null +++ b/test/test_v1beta1_list_all_users_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_all_users_response import V1beta1ListAllUsersResponse + +class TestV1beta1ListAllUsersResponse(unittest.TestCase): + """V1beta1ListAllUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListAllUsersResponse: + """Test V1beta1ListAllUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListAllUsersResponse` + """ + model = V1beta1ListAllUsersResponse() + if include_optional: + return V1beta1ListAllUsersResponse( + count = 56, + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListAllUsersResponse( + ) + """ + + def testV1beta1ListAllUsersResponse(self): + """Test V1beta1ListAllUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_auth_strategies_response.py b/test/test_v1beta1_list_auth_strategies_response.py new file mode 100644 index 0000000..75eae03 --- /dev/null +++ b/test/test_v1beta1_list_auth_strategies_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_auth_strategies_response import V1beta1ListAuthStrategiesResponse + +class TestV1beta1ListAuthStrategiesResponse(unittest.TestCase): + """V1beta1ListAuthStrategiesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListAuthStrategiesResponse: + """Test V1beta1ListAuthStrategiesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListAuthStrategiesResponse` + """ + model = V1beta1ListAuthStrategiesResponse() + if include_optional: + return V1beta1ListAuthStrategiesResponse( + strategies = [ + frontier_api.models.v1beta1_auth_strategy.v1beta1AuthStrategy( + name = '', + params = frontier_api.models.params.params(), ) + ] + ) + else: + return V1beta1ListAuthStrategiesResponse( + ) + """ + + def testV1beta1ListAuthStrategiesResponse(self): + """Test V1beta1ListAuthStrategiesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_billing_accounts_response.py b/test/test_v1beta1_list_billing_accounts_response.py new file mode 100644 index 0000000..12ac795 --- /dev/null +++ b/test/test_v1beta1_list_billing_accounts_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_billing_accounts_response import V1beta1ListBillingAccountsResponse + +class TestV1beta1ListBillingAccountsResponse(unittest.TestCase): + """V1beta1ListBillingAccountsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListBillingAccountsResponse: + """Test V1beta1ListBillingAccountsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListBillingAccountsResponse` + """ + model = V1beta1ListBillingAccountsResponse() + if include_optional: + return V1beta1ListBillingAccountsResponse( + billing_accounts = [ + frontier_api.models.v1beta1_billing_account.v1beta1BillingAccount( + id = '', + org_id = '', + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + provider_id = '', + provider = '', + currency = '', + state = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return V1beta1ListBillingAccountsResponse( + ) + """ + + def testV1beta1ListBillingAccountsResponse(self): + """Test V1beta1ListBillingAccountsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_billing_transactions_response.py b/test/test_v1beta1_list_billing_transactions_response.py new file mode 100644 index 0000000..4581c7e --- /dev/null +++ b/test/test_v1beta1_list_billing_transactions_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_billing_transactions_response import V1beta1ListBillingTransactionsResponse + +class TestV1beta1ListBillingTransactionsResponse(unittest.TestCase): + """V1beta1ListBillingTransactionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListBillingTransactionsResponse: + """Test V1beta1ListBillingTransactionsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListBillingTransactionsResponse` + """ + model = V1beta1ListBillingTransactionsResponse() + if include_optional: + return V1beta1ListBillingTransactionsResponse( + transactions = [ + frontier_api.models.v1beta1_billing_transaction.v1beta1BillingTransaction( + id = '', + customer_id = '', + source = '', + amount = '', + type = '', + description = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return V1beta1ListBillingTransactionsResponse( + ) + """ + + def testV1beta1ListBillingTransactionsResponse(self): + """Test V1beta1ListBillingTransactionsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_checkouts_response.py b/test/test_v1beta1_list_checkouts_response.py new file mode 100644 index 0000000..d8b3b4a --- /dev/null +++ b/test/test_v1beta1_list_checkouts_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_checkouts_response import V1beta1ListCheckoutsResponse + +class TestV1beta1ListCheckoutsResponse(unittest.TestCase): + """V1beta1ListCheckoutsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListCheckoutsResponse: + """Test V1beta1ListCheckoutsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListCheckoutsResponse` + """ + model = V1beta1ListCheckoutsResponse() + if include_optional: + return V1beta1ListCheckoutsResponse( + checkout_sessions = [ + frontier_api.models.v1beta1_checkout_session.v1beta1CheckoutSession( + id = '', + checkout_url = '', + success_url = '', + cancel_url = '', + state = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return V1beta1ListCheckoutsResponse( + ) + """ + + def testV1beta1ListCheckoutsResponse(self): + """Test V1beta1ListCheckoutsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_current_user_groups_response.py b/test/test_v1beta1_list_current_user_groups_response.py new file mode 100644 index 0000000..9f18aea --- /dev/null +++ b/test/test_v1beta1_list_current_user_groups_response.py @@ -0,0 +1,81 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_current_user_groups_response import V1beta1ListCurrentUserGroupsResponse + +class TestV1beta1ListCurrentUserGroupsResponse(unittest.TestCase): + """V1beta1ListCurrentUserGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListCurrentUserGroupsResponse: + """Test V1beta1ListCurrentUserGroupsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListCurrentUserGroupsResponse` + """ + model = V1beta1ListCurrentUserGroupsResponse() + if include_optional: + return V1beta1ListCurrentUserGroupsResponse( + groups = [ + frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ], + access_pairs = [ + frontier_api.models.v1beta1_list_current_user_groups_response_access_pair.v1beta1ListCurrentUserGroupsResponseAccessPair( + group_id = '', + permissions = [ + '' + ], ) + ] + ) + else: + return V1beta1ListCurrentUserGroupsResponse( + ) + """ + + def testV1beta1ListCurrentUserGroupsResponse(self): + """Test V1beta1ListCurrentUserGroupsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_current_user_groups_response_access_pair.py b/test/test_v1beta1_list_current_user_groups_response_access_pair.py new file mode 100644 index 0000000..2d64de9 --- /dev/null +++ b/test/test_v1beta1_list_current_user_groups_response_access_pair.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_current_user_groups_response_access_pair import V1beta1ListCurrentUserGroupsResponseAccessPair + +class TestV1beta1ListCurrentUserGroupsResponseAccessPair(unittest.TestCase): + """V1beta1ListCurrentUserGroupsResponseAccessPair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListCurrentUserGroupsResponseAccessPair: + """Test V1beta1ListCurrentUserGroupsResponseAccessPair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListCurrentUserGroupsResponseAccessPair` + """ + model = V1beta1ListCurrentUserGroupsResponseAccessPair() + if include_optional: + return V1beta1ListCurrentUserGroupsResponseAccessPair( + group_id = '', + permissions = [ + '' + ] + ) + else: + return V1beta1ListCurrentUserGroupsResponseAccessPair( + ) + """ + + def testV1beta1ListCurrentUserGroupsResponseAccessPair(self): + """Test V1beta1ListCurrentUserGroupsResponseAccessPair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_current_user_invitations_response.py b/test/test_v1beta1_list_current_user_invitations_response.py new file mode 100644 index 0000000..327177d --- /dev/null +++ b/test/test_v1beta1_list_current_user_invitations_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_current_user_invitations_response import V1beta1ListCurrentUserInvitationsResponse + +class TestV1beta1ListCurrentUserInvitationsResponse(unittest.TestCase): + """V1beta1ListCurrentUserInvitationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListCurrentUserInvitationsResponse: + """Test V1beta1ListCurrentUserInvitationsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListCurrentUserInvitationsResponse` + """ + model = V1beta1ListCurrentUserInvitationsResponse() + if include_optional: + return V1beta1ListCurrentUserInvitationsResponse( + invitations = [ + frontier_api.models.v1beta1_invitation.v1beta1Invitation( + id = 'k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + user_id = 'john.doe@raystack.org', + org_id = 'b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + group_ids = c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, + metadata = {"key":"value"}, + created_at = '2023-06-07T05:39:56.961Z', + expires_at = '2023-06-07T05:39:56.961Z', + role_ids = d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, ) + ], + orgs = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListCurrentUserInvitationsResponse( + ) + """ + + def testV1beta1ListCurrentUserInvitationsResponse(self): + """Test V1beta1ListCurrentUserInvitationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_current_user_preferences_response.py b/test/test_v1beta1_list_current_user_preferences_response.py new file mode 100644 index 0000000..e6d7bf7 --- /dev/null +++ b/test/test_v1beta1_list_current_user_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_current_user_preferences_response import V1beta1ListCurrentUserPreferencesResponse + +class TestV1beta1ListCurrentUserPreferencesResponse(unittest.TestCase): + """V1beta1ListCurrentUserPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListCurrentUserPreferencesResponse: + """Test V1beta1ListCurrentUserPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListCurrentUserPreferencesResponse` + """ + model = V1beta1ListCurrentUserPreferencesResponse() + if include_optional: + return V1beta1ListCurrentUserPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListCurrentUserPreferencesResponse( + ) + """ + + def testV1beta1ListCurrentUserPreferencesResponse(self): + """Test V1beta1ListCurrentUserPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_features_response.py b/test/test_v1beta1_list_features_response.py new file mode 100644 index 0000000..e5725f7 --- /dev/null +++ b/test/test_v1beta1_list_features_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_features_response import V1beta1ListFeaturesResponse + +class TestV1beta1ListFeaturesResponse(unittest.TestCase): + """V1beta1ListFeaturesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListFeaturesResponse: + """Test V1beta1ListFeaturesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListFeaturesResponse` + """ + model = V1beta1ListFeaturesResponse() + if include_optional: + return V1beta1ListFeaturesResponse( + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return V1beta1ListFeaturesResponse( + ) + """ + + def testV1beta1ListFeaturesResponse(self): + """Test V1beta1ListFeaturesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_group_preferences_response.py b/test/test_v1beta1_list_group_preferences_response.py new file mode 100644 index 0000000..fb9c3bd --- /dev/null +++ b/test/test_v1beta1_list_group_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_group_preferences_response import V1beta1ListGroupPreferencesResponse + +class TestV1beta1ListGroupPreferencesResponse(unittest.TestCase): + """V1beta1ListGroupPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListGroupPreferencesResponse: + """Test V1beta1ListGroupPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListGroupPreferencesResponse` + """ + model = V1beta1ListGroupPreferencesResponse() + if include_optional: + return V1beta1ListGroupPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListGroupPreferencesResponse( + ) + """ + + def testV1beta1ListGroupPreferencesResponse(self): + """Test V1beta1ListGroupPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_group_users_response.py b/test/test_v1beta1_list_group_users_response.py new file mode 100644 index 0000000..8d29cc3 --- /dev/null +++ b/test/test_v1beta1_list_group_users_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_group_users_response import V1beta1ListGroupUsersResponse + +class TestV1beta1ListGroupUsersResponse(unittest.TestCase): + """V1beta1ListGroupUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListGroupUsersResponse: + """Test V1beta1ListGroupUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListGroupUsersResponse` + """ + model = V1beta1ListGroupUsersResponse() + if include_optional: + return V1beta1ListGroupUsersResponse( + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], + role_pairs = [ + frontier_api.models.v1beta1_list_group_users_response_role_pair.v1beta1ListGroupUsersResponseRolePair( + user_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ], ) + ] + ) + else: + return V1beta1ListGroupUsersResponse( + ) + """ + + def testV1beta1ListGroupUsersResponse(self): + """Test V1beta1ListGroupUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_group_users_response_role_pair.py b/test/test_v1beta1_list_group_users_response_role_pair.py new file mode 100644 index 0000000..4d6d874 --- /dev/null +++ b/test/test_v1beta1_list_group_users_response_role_pair.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_group_users_response_role_pair import V1beta1ListGroupUsersResponseRolePair + +class TestV1beta1ListGroupUsersResponseRolePair(unittest.TestCase): + """V1beta1ListGroupUsersResponseRolePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListGroupUsersResponseRolePair: + """Test V1beta1ListGroupUsersResponseRolePair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListGroupUsersResponseRolePair` + """ + model = V1beta1ListGroupUsersResponseRolePair() + if include_optional: + return V1beta1ListGroupUsersResponseRolePair( + user_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListGroupUsersResponseRolePair( + ) + """ + + def testV1beta1ListGroupUsersResponseRolePair(self): + """Test V1beta1ListGroupUsersResponseRolePair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_groups_response.py b/test/test_v1beta1_list_groups_response.py new file mode 100644 index 0000000..0f3012a --- /dev/null +++ b/test/test_v1beta1_list_groups_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_groups_response import V1beta1ListGroupsResponse + +class TestV1beta1ListGroupsResponse(unittest.TestCase): + """V1beta1ListGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListGroupsResponse: + """Test V1beta1ListGroupsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListGroupsResponse` + """ + model = V1beta1ListGroupsResponse() + if include_optional: + return V1beta1ListGroupsResponse( + groups = [ + frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ] + ) + else: + return V1beta1ListGroupsResponse( + ) + """ + + def testV1beta1ListGroupsResponse(self): + """Test V1beta1ListGroupsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_meta_schemas_response.py b/test/test_v1beta1_list_meta_schemas_response.py new file mode 100644 index 0000000..6b999c5 --- /dev/null +++ b/test/test_v1beta1_list_meta_schemas_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_meta_schemas_response import V1beta1ListMetaSchemasResponse + +class TestV1beta1ListMetaSchemasResponse(unittest.TestCase): + """V1beta1ListMetaSchemasResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListMetaSchemasResponse: + """Test V1beta1ListMetaSchemasResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListMetaSchemasResponse` + """ + model = V1beta1ListMetaSchemasResponse() + if include_optional: + return V1beta1ListMetaSchemasResponse( + metaschemas = [ + frontier_api.models.v1beta1_meta_schema.v1beta1MetaSchema( + id = 'a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + name = '', + schema = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListMetaSchemasResponse( + ) + """ + + def testV1beta1ListMetaSchemasResponse(self): + """Test V1beta1ListMetaSchemasResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_namespaces_response.py b/test/test_v1beta1_list_namespaces_response.py new file mode 100644 index 0000000..87ed85c --- /dev/null +++ b/test/test_v1beta1_list_namespaces_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_namespaces_response import V1beta1ListNamespacesResponse + +class TestV1beta1ListNamespacesResponse(unittest.TestCase): + """V1beta1ListNamespacesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListNamespacesResponse: + """Test V1beta1ListNamespacesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListNamespacesResponse` + """ + model = V1beta1ListNamespacesResponse() + if include_optional: + return V1beta1ListNamespacesResponse( + namespaces = [ + frontier_api.models.v1beta1_namespace.v1beta1Namespace( + id = '', + name = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListNamespacesResponse( + ) + """ + + def testV1beta1ListNamespacesResponse(self): + """Test V1beta1ListNamespacesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_admins_response.py b/test/test_v1beta1_list_organization_admins_response.py new file mode 100644 index 0000000..5ec8a47 --- /dev/null +++ b/test/test_v1beta1_list_organization_admins_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_admins_response import V1beta1ListOrganizationAdminsResponse + +class TestV1beta1ListOrganizationAdminsResponse(unittest.TestCase): + """V1beta1ListOrganizationAdminsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationAdminsResponse: + """Test V1beta1ListOrganizationAdminsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationAdminsResponse` + """ + model = V1beta1ListOrganizationAdminsResponse() + if include_optional: + return V1beta1ListOrganizationAdminsResponse( + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListOrganizationAdminsResponse( + ) + """ + + def testV1beta1ListOrganizationAdminsResponse(self): + """Test V1beta1ListOrganizationAdminsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_audit_logs_response.py b/test/test_v1beta1_list_organization_audit_logs_response.py new file mode 100644 index 0000000..a9b642d --- /dev/null +++ b/test/test_v1beta1_list_organization_audit_logs_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_audit_logs_response import V1beta1ListOrganizationAuditLogsResponse + +class TestV1beta1ListOrganizationAuditLogsResponse(unittest.TestCase): + """V1beta1ListOrganizationAuditLogsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationAuditLogsResponse: + """Test V1beta1ListOrganizationAuditLogsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationAuditLogsResponse` + """ + model = V1beta1ListOrganizationAuditLogsResponse() + if include_optional: + return V1beta1ListOrganizationAuditLogsResponse( + logs = [ + frontier_api.models.v1beta1_audit_log.v1beta1AuditLog( + id = '', + source = 'auth', + action = '', + actor = frontier_api.models.v1beta1_audit_log_actor.v1beta1AuditLogActor( + id = '', + type = '', + name = '', ), + target = frontier_api.models.v1beta1_audit_log_target.v1beta1AuditLogTarget( + id = '', + type = '', + name = '', ), + context = { + 'key' : '' + }, + created_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListOrganizationAuditLogsResponse( + ) + """ + + def testV1beta1ListOrganizationAuditLogsResponse(self): + """Test V1beta1ListOrganizationAuditLogsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_domains_response.py b/test/test_v1beta1_list_organization_domains_response.py new file mode 100644 index 0000000..e27178c --- /dev/null +++ b/test/test_v1beta1_list_organization_domains_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_domains_response import V1beta1ListOrganizationDomainsResponse + +class TestV1beta1ListOrganizationDomainsResponse(unittest.TestCase): + """V1beta1ListOrganizationDomainsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationDomainsResponse: + """Test V1beta1ListOrganizationDomainsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationDomainsResponse` + """ + model = V1beta1ListOrganizationDomainsResponse() + if include_optional: + return V1beta1ListOrganizationDomainsResponse( + domains = [ + frontier_api.models.v1beta1_domain.v1beta1Domain( + id = '943e4567-e89b-12d3-a456-426655440000', + name = 'raystack.org', + org_id = '123e4567-e89b-12d3-a456-426655440000', + token = '_frontier-domain-verification=LB6U2lSQgGS55HOy6kpWFqkngRC8TMEjyrakfmYC2D0s+nfy/WkFSg==', + state = 'pending', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListOrganizationDomainsResponse( + ) + """ + + def testV1beta1ListOrganizationDomainsResponse(self): + """Test V1beta1ListOrganizationDomainsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_groups_response.py b/test/test_v1beta1_list_organization_groups_response.py new file mode 100644 index 0000000..c81cc58 --- /dev/null +++ b/test/test_v1beta1_list_organization_groups_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_groups_response import V1beta1ListOrganizationGroupsResponse + +class TestV1beta1ListOrganizationGroupsResponse(unittest.TestCase): + """V1beta1ListOrganizationGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationGroupsResponse: + """Test V1beta1ListOrganizationGroupsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationGroupsResponse` + """ + model = V1beta1ListOrganizationGroupsResponse() + if include_optional: + return V1beta1ListOrganizationGroupsResponse( + groups = [ + frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ] + ) + else: + return V1beta1ListOrganizationGroupsResponse( + ) + """ + + def testV1beta1ListOrganizationGroupsResponse(self): + """Test V1beta1ListOrganizationGroupsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_invitations_response.py b/test/test_v1beta1_list_organization_invitations_response.py new file mode 100644 index 0000000..7a3c50b --- /dev/null +++ b/test/test_v1beta1_list_organization_invitations_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_invitations_response import V1beta1ListOrganizationInvitationsResponse + +class TestV1beta1ListOrganizationInvitationsResponse(unittest.TestCase): + """V1beta1ListOrganizationInvitationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationInvitationsResponse: + """Test V1beta1ListOrganizationInvitationsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationInvitationsResponse` + """ + model = V1beta1ListOrganizationInvitationsResponse() + if include_optional: + return V1beta1ListOrganizationInvitationsResponse( + invitations = [ + frontier_api.models.v1beta1_invitation.v1beta1Invitation( + id = 'k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + user_id = 'john.doe@raystack.org', + org_id = 'b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + group_ids = c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, + metadata = {"key":"value"}, + created_at = '2023-06-07T05:39:56.961Z', + expires_at = '2023-06-07T05:39:56.961Z', + role_ids = d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, ) + ] + ) + else: + return V1beta1ListOrganizationInvitationsResponse( + ) + """ + + def testV1beta1ListOrganizationInvitationsResponse(self): + """Test V1beta1ListOrganizationInvitationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_preferences_response.py b/test/test_v1beta1_list_organization_preferences_response.py new file mode 100644 index 0000000..b82d137 --- /dev/null +++ b/test/test_v1beta1_list_organization_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_preferences_response import V1beta1ListOrganizationPreferencesResponse + +class TestV1beta1ListOrganizationPreferencesResponse(unittest.TestCase): + """V1beta1ListOrganizationPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationPreferencesResponse: + """Test V1beta1ListOrganizationPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationPreferencesResponse` + """ + model = V1beta1ListOrganizationPreferencesResponse() + if include_optional: + return V1beta1ListOrganizationPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListOrganizationPreferencesResponse( + ) + """ + + def testV1beta1ListOrganizationPreferencesResponse(self): + """Test V1beta1ListOrganizationPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_projects_response.py b/test/test_v1beta1_list_organization_projects_response.py new file mode 100644 index 0000000..4c60cb8 --- /dev/null +++ b/test/test_v1beta1_list_organization_projects_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_projects_response import V1beta1ListOrganizationProjectsResponse + +class TestV1beta1ListOrganizationProjectsResponse(unittest.TestCase): + """V1beta1ListOrganizationProjectsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationProjectsResponse: + """Test V1beta1ListOrganizationProjectsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationProjectsResponse` + """ + model = V1beta1ListOrganizationProjectsResponse() + if include_optional: + return V1beta1ListOrganizationProjectsResponse( + projects = [ + frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListOrganizationProjectsResponse( + ) + """ + + def testV1beta1ListOrganizationProjectsResponse(self): + """Test V1beta1ListOrganizationProjectsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_roles_response.py b/test/test_v1beta1_list_organization_roles_response.py new file mode 100644 index 0000000..1ac9971 --- /dev/null +++ b/test/test_v1beta1_list_organization_roles_response.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_roles_response import V1beta1ListOrganizationRolesResponse + +class TestV1beta1ListOrganizationRolesResponse(unittest.TestCase): + """V1beta1ListOrganizationRolesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationRolesResponse: + """Test V1beta1ListOrganizationRolesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationRolesResponse` + """ + model = V1beta1ListOrganizationRolesResponse() + if include_optional: + return V1beta1ListOrganizationRolesResponse( + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListOrganizationRolesResponse( + ) + """ + + def testV1beta1ListOrganizationRolesResponse(self): + """Test V1beta1ListOrganizationRolesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_service_users_response.py b/test/test_v1beta1_list_organization_service_users_response.py new file mode 100644 index 0000000..e8afe69 --- /dev/null +++ b/test/test_v1beta1_list_organization_service_users_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_service_users_response import V1beta1ListOrganizationServiceUsersResponse + +class TestV1beta1ListOrganizationServiceUsersResponse(unittest.TestCase): + """V1beta1ListOrganizationServiceUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationServiceUsersResponse: + """Test V1beta1ListOrganizationServiceUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationServiceUsersResponse` + """ + model = V1beta1ListOrganizationServiceUsersResponse() + if include_optional: + return V1beta1ListOrganizationServiceUsersResponse( + serviceusers = [ + frontier_api.models.v1beta1_service_user.v1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '', ) + ] + ) + else: + return V1beta1ListOrganizationServiceUsersResponse( + ) + """ + + def testV1beta1ListOrganizationServiceUsersResponse(self): + """Test V1beta1ListOrganizationServiceUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_users_response.py b/test/test_v1beta1_list_organization_users_response.py new file mode 100644 index 0000000..baf5749 --- /dev/null +++ b/test/test_v1beta1_list_organization_users_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_users_response import V1beta1ListOrganizationUsersResponse + +class TestV1beta1ListOrganizationUsersResponse(unittest.TestCase): + """V1beta1ListOrganizationUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationUsersResponse: + """Test V1beta1ListOrganizationUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationUsersResponse` + """ + model = V1beta1ListOrganizationUsersResponse() + if include_optional: + return V1beta1ListOrganizationUsersResponse( + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], + role_pairs = [ + frontier_api.models.v1beta1_list_organization_users_response_role_pair.v1beta1ListOrganizationUsersResponseRolePair( + user_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ], ) + ] + ) + else: + return V1beta1ListOrganizationUsersResponse( + ) + """ + + def testV1beta1ListOrganizationUsersResponse(self): + """Test V1beta1ListOrganizationUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organization_users_response_role_pair.py b/test/test_v1beta1_list_organization_users_response_role_pair.py new file mode 100644 index 0000000..1879052 --- /dev/null +++ b/test/test_v1beta1_list_organization_users_response_role_pair.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organization_users_response_role_pair import V1beta1ListOrganizationUsersResponseRolePair + +class TestV1beta1ListOrganizationUsersResponseRolePair(unittest.TestCase): + """V1beta1ListOrganizationUsersResponseRolePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationUsersResponseRolePair: + """Test V1beta1ListOrganizationUsersResponseRolePair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationUsersResponseRolePair` + """ + model = V1beta1ListOrganizationUsersResponseRolePair() + if include_optional: + return V1beta1ListOrganizationUsersResponseRolePair( + user_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListOrganizationUsersResponseRolePair( + ) + """ + + def testV1beta1ListOrganizationUsersResponseRolePair(self): + """Test V1beta1ListOrganizationUsersResponseRolePair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organizations_by_current_user_response.py b/test/test_v1beta1_list_organizations_by_current_user_response.py new file mode 100644 index 0000000..445be60 --- /dev/null +++ b/test/test_v1beta1_list_organizations_by_current_user_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organizations_by_current_user_response import V1beta1ListOrganizationsByCurrentUserResponse + +class TestV1beta1ListOrganizationsByCurrentUserResponse(unittest.TestCase): + """V1beta1ListOrganizationsByCurrentUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationsByCurrentUserResponse: + """Test V1beta1ListOrganizationsByCurrentUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationsByCurrentUserResponse` + """ + model = V1beta1ListOrganizationsByCurrentUserResponse() + if include_optional: + return V1beta1ListOrganizationsByCurrentUserResponse( + organizations = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], + joinable_via_domain = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListOrganizationsByCurrentUserResponse( + ) + """ + + def testV1beta1ListOrganizationsByCurrentUserResponse(self): + """Test V1beta1ListOrganizationsByCurrentUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organizations_by_user_response.py b/test/test_v1beta1_list_organizations_by_user_response.py new file mode 100644 index 0000000..c6a55b1 --- /dev/null +++ b/test/test_v1beta1_list_organizations_by_user_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organizations_by_user_response import V1beta1ListOrganizationsByUserResponse + +class TestV1beta1ListOrganizationsByUserResponse(unittest.TestCase): + """V1beta1ListOrganizationsByUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationsByUserResponse: + """Test V1beta1ListOrganizationsByUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationsByUserResponse` + """ + model = V1beta1ListOrganizationsByUserResponse() + if include_optional: + return V1beta1ListOrganizationsByUserResponse( + organizations = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], + joinable_via_domain = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListOrganizationsByUserResponse( + ) + """ + + def testV1beta1ListOrganizationsByUserResponse(self): + """Test V1beta1ListOrganizationsByUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_organizations_response.py b/test/test_v1beta1_list_organizations_response.py new file mode 100644 index 0000000..771d682 --- /dev/null +++ b/test/test_v1beta1_list_organizations_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_organizations_response import V1beta1ListOrganizationsResponse + +class TestV1beta1ListOrganizationsResponse(unittest.TestCase): + """V1beta1ListOrganizationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListOrganizationsResponse: + """Test V1beta1ListOrganizationsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListOrganizationsResponse` + """ + model = V1beta1ListOrganizationsResponse() + if include_optional: + return V1beta1ListOrganizationsResponse( + organizations = [ + frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListOrganizationsResponse( + ) + """ + + def testV1beta1ListOrganizationsResponse(self): + """Test V1beta1ListOrganizationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_permissions_response.py b/test/test_v1beta1_list_permissions_response.py new file mode 100644 index 0000000..65e510d --- /dev/null +++ b/test/test_v1beta1_list_permissions_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_permissions_response import V1beta1ListPermissionsResponse + +class TestV1beta1ListPermissionsResponse(unittest.TestCase): + """V1beta1ListPermissionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListPermissionsResponse: + """Test V1beta1ListPermissionsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListPermissionsResponse` + """ + model = V1beta1ListPermissionsResponse() + if include_optional: + return V1beta1ListPermissionsResponse( + permissions = [ + frontier_api.models.v1beta1_permission.v1beta1Permission( + id = '', + name = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + key = 'compute.instance.get', ) + ] + ) + else: + return V1beta1ListPermissionsResponse( + ) + """ + + def testV1beta1ListPermissionsResponse(self): + """Test V1beta1ListPermissionsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_plans_response.py b/test/test_v1beta1_list_plans_response.py new file mode 100644 index 0000000..6c070d1 --- /dev/null +++ b/test/test_v1beta1_list_plans_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_plans_response import V1beta1ListPlansResponse + +class TestV1beta1ListPlansResponse(unittest.TestCase): + """V1beta1ListPlansResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListPlansResponse: + """Test V1beta1ListPlansResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListPlansResponse` + """ + model = V1beta1ListPlansResponse() + if include_optional: + return V1beta1ListPlansResponse( + plans = [ + frontier_api.models.v1beta1_plan.v1beta1Plan( + id = '', + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return V1beta1ListPlansResponse( + ) + """ + + def testV1beta1ListPlansResponse(self): + """Test V1beta1ListPlansResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_policies_response.py b/test/test_v1beta1_list_policies_response.py new file mode 100644 index 0000000..3c38824 --- /dev/null +++ b/test/test_v1beta1_list_policies_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_policies_response import V1beta1ListPoliciesResponse + +class TestV1beta1ListPoliciesResponse(unittest.TestCase): + """V1beta1ListPoliciesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListPoliciesResponse: + """Test V1beta1ListPoliciesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListPoliciesResponse` + """ + model = V1beta1ListPoliciesResponse() + if include_optional: + return V1beta1ListPoliciesResponse( + policies = [ + frontier_api.models.v1beta1_policy.v1beta1Policy( + id = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + role_id = '', + resource = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), ) + ] + ) + else: + return V1beta1ListPoliciesResponse( + ) + """ + + def testV1beta1ListPoliciesResponse(self): + """Test V1beta1ListPoliciesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_preferences_response.py b/test/test_v1beta1_list_preferences_response.py new file mode 100644 index 0000000..ea5976d --- /dev/null +++ b/test/test_v1beta1_list_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_preferences_response import V1beta1ListPreferencesResponse + +class TestV1beta1ListPreferencesResponse(unittest.TestCase): + """V1beta1ListPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListPreferencesResponse: + """Test V1beta1ListPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListPreferencesResponse` + """ + model = V1beta1ListPreferencesResponse() + if include_optional: + return V1beta1ListPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListPreferencesResponse( + ) + """ + + def testV1beta1ListPreferencesResponse(self): + """Test V1beta1ListPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_admins_response.py b/test/test_v1beta1_list_project_admins_response.py new file mode 100644 index 0000000..3dc9b24 --- /dev/null +++ b/test/test_v1beta1_list_project_admins_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_admins_response import V1beta1ListProjectAdminsResponse + +class TestV1beta1ListProjectAdminsResponse(unittest.TestCase): + """V1beta1ListProjectAdminsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectAdminsResponse: + """Test V1beta1ListProjectAdminsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectAdminsResponse` + """ + model = V1beta1ListProjectAdminsResponse() + if include_optional: + return V1beta1ListProjectAdminsResponse( + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListProjectAdminsResponse( + ) + """ + + def testV1beta1ListProjectAdminsResponse(self): + """Test V1beta1ListProjectAdminsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_groups_response.py b/test/test_v1beta1_list_project_groups_response.py new file mode 100644 index 0000000..09cded1 --- /dev/null +++ b/test/test_v1beta1_list_project_groups_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_groups_response import V1beta1ListProjectGroupsResponse + +class TestV1beta1ListProjectGroupsResponse(unittest.TestCase): + """V1beta1ListProjectGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectGroupsResponse: + """Test V1beta1ListProjectGroupsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectGroupsResponse` + """ + model = V1beta1ListProjectGroupsResponse() + if include_optional: + return V1beta1ListProjectGroupsResponse( + groups = [ + frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ], + role_pairs = [ + frontier_api.models.v1beta1_list_project_groups_response_role_pair.v1beta1ListProjectGroupsResponseRolePair( + group_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ], ) + ] + ) + else: + return V1beta1ListProjectGroupsResponse( + ) + """ + + def testV1beta1ListProjectGroupsResponse(self): + """Test V1beta1ListProjectGroupsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_groups_response_role_pair.py b/test/test_v1beta1_list_project_groups_response_role_pair.py new file mode 100644 index 0000000..b0bb7c8 --- /dev/null +++ b/test/test_v1beta1_list_project_groups_response_role_pair.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_groups_response_role_pair import V1beta1ListProjectGroupsResponseRolePair + +class TestV1beta1ListProjectGroupsResponseRolePair(unittest.TestCase): + """V1beta1ListProjectGroupsResponseRolePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectGroupsResponseRolePair: + """Test V1beta1ListProjectGroupsResponseRolePair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectGroupsResponseRolePair` + """ + model = V1beta1ListProjectGroupsResponseRolePair() + if include_optional: + return V1beta1ListProjectGroupsResponseRolePair( + group_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListProjectGroupsResponseRolePair( + ) + """ + + def testV1beta1ListProjectGroupsResponseRolePair(self): + """Test V1beta1ListProjectGroupsResponseRolePair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_preferences_response.py b/test/test_v1beta1_list_project_preferences_response.py new file mode 100644 index 0000000..437809b --- /dev/null +++ b/test/test_v1beta1_list_project_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_preferences_response import V1beta1ListProjectPreferencesResponse + +class TestV1beta1ListProjectPreferencesResponse(unittest.TestCase): + """V1beta1ListProjectPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectPreferencesResponse: + """Test V1beta1ListProjectPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectPreferencesResponse` + """ + model = V1beta1ListProjectPreferencesResponse() + if include_optional: + return V1beta1ListProjectPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListProjectPreferencesResponse( + ) + """ + + def testV1beta1ListProjectPreferencesResponse(self): + """Test V1beta1ListProjectPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_resources_response.py b/test/test_v1beta1_list_project_resources_response.py new file mode 100644 index 0000000..a42a9c7 --- /dev/null +++ b/test/test_v1beta1_list_project_resources_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_resources_response import V1beta1ListProjectResourcesResponse + +class TestV1beta1ListProjectResourcesResponse(unittest.TestCase): + """V1beta1ListProjectResourcesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectResourcesResponse: + """Test V1beta1ListProjectResourcesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectResourcesResponse` + """ + model = V1beta1ListProjectResourcesResponse() + if include_optional: + return V1beta1ListProjectResourcesResponse( + resources = [ + frontier_api.models.v1beta1_resource.v1beta1Resource( + id = '', + name = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + urn = '', + project_id = '', + namespace = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', ) + ] + ) + else: + return V1beta1ListProjectResourcesResponse( + ) + """ + + def testV1beta1ListProjectResourcesResponse(self): + """Test V1beta1ListProjectResourcesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_service_users_response.py b/test/test_v1beta1_list_project_service_users_response.py new file mode 100644 index 0000000..ca13756 --- /dev/null +++ b/test/test_v1beta1_list_project_service_users_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_service_users_response import V1beta1ListProjectServiceUsersResponse + +class TestV1beta1ListProjectServiceUsersResponse(unittest.TestCase): + """V1beta1ListProjectServiceUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectServiceUsersResponse: + """Test V1beta1ListProjectServiceUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectServiceUsersResponse` + """ + model = V1beta1ListProjectServiceUsersResponse() + if include_optional: + return V1beta1ListProjectServiceUsersResponse( + serviceusers = [ + frontier_api.models.v1beta1_service_user.v1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '', ) + ], + role_pairs = [ + frontier_api.models.v1beta1_list_project_service_users_response_role_pair.v1beta1ListProjectServiceUsersResponseRolePair( + serviceuser_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ], ) + ] + ) + else: + return V1beta1ListProjectServiceUsersResponse( + ) + """ + + def testV1beta1ListProjectServiceUsersResponse(self): + """Test V1beta1ListProjectServiceUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_service_users_response_role_pair.py b/test/test_v1beta1_list_project_service_users_response_role_pair.py new file mode 100644 index 0000000..bf4f6e6 --- /dev/null +++ b/test/test_v1beta1_list_project_service_users_response_role_pair.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_service_users_response_role_pair import V1beta1ListProjectServiceUsersResponseRolePair + +class TestV1beta1ListProjectServiceUsersResponseRolePair(unittest.TestCase): + """V1beta1ListProjectServiceUsersResponseRolePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectServiceUsersResponseRolePair: + """Test V1beta1ListProjectServiceUsersResponseRolePair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectServiceUsersResponseRolePair` + """ + model = V1beta1ListProjectServiceUsersResponseRolePair() + if include_optional: + return V1beta1ListProjectServiceUsersResponseRolePair( + serviceuser_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListProjectServiceUsersResponseRolePair( + ) + """ + + def testV1beta1ListProjectServiceUsersResponseRolePair(self): + """Test V1beta1ListProjectServiceUsersResponseRolePair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_users_response.py b/test/test_v1beta1_list_project_users_response.py new file mode 100644 index 0000000..4b5f975 --- /dev/null +++ b/test/test_v1beta1_list_project_users_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_users_response import V1beta1ListProjectUsersResponse + +class TestV1beta1ListProjectUsersResponse(unittest.TestCase): + """V1beta1ListProjectUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectUsersResponse: + """Test V1beta1ListProjectUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectUsersResponse` + """ + model = V1beta1ListProjectUsersResponse() + if include_optional: + return V1beta1ListProjectUsersResponse( + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], + role_pairs = [ + frontier_api.models.v1beta1_list_project_users_response_role_pair.v1beta1ListProjectUsersResponseRolePair( + user_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ], ) + ] + ) + else: + return V1beta1ListProjectUsersResponse( + ) + """ + + def testV1beta1ListProjectUsersResponse(self): + """Test V1beta1ListProjectUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_project_users_response_role_pair.py b/test/test_v1beta1_list_project_users_response_role_pair.py new file mode 100644 index 0000000..3a31212 --- /dev/null +++ b/test/test_v1beta1_list_project_users_response_role_pair.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_project_users_response_role_pair import V1beta1ListProjectUsersResponseRolePair + +class TestV1beta1ListProjectUsersResponseRolePair(unittest.TestCase): + """V1beta1ListProjectUsersResponseRolePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectUsersResponseRolePair: + """Test V1beta1ListProjectUsersResponseRolePair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectUsersResponseRolePair` + """ + model = V1beta1ListProjectUsersResponseRolePair() + if include_optional: + return V1beta1ListProjectUsersResponseRolePair( + user_id = '', + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListProjectUsersResponseRolePair( + ) + """ + + def testV1beta1ListProjectUsersResponseRolePair(self): + """Test V1beta1ListProjectUsersResponseRolePair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_projects_by_current_user_response.py b/test/test_v1beta1_list_projects_by_current_user_response.py new file mode 100644 index 0000000..0a7f618 --- /dev/null +++ b/test/test_v1beta1_list_projects_by_current_user_response.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_projects_by_current_user_response import V1beta1ListProjectsByCurrentUserResponse + +class TestV1beta1ListProjectsByCurrentUserResponse(unittest.TestCase): + """V1beta1ListProjectsByCurrentUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectsByCurrentUserResponse: + """Test V1beta1ListProjectsByCurrentUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectsByCurrentUserResponse` + """ + model = V1beta1ListProjectsByCurrentUserResponse() + if include_optional: + return V1beta1ListProjectsByCurrentUserResponse( + projects = [ + frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ], + access_pairs = [ + frontier_api.models.v1beta1_list_projects_by_current_user_response_access_pair.v1beta1ListProjectsByCurrentUserResponseAccessPair( + project_id = '', + permissions = [ + '' + ], ) + ] + ) + else: + return V1beta1ListProjectsByCurrentUserResponse( + ) + """ + + def testV1beta1ListProjectsByCurrentUserResponse(self): + """Test V1beta1ListProjectsByCurrentUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_projects_by_current_user_response_access_pair.py b/test/test_v1beta1_list_projects_by_current_user_response_access_pair.py new file mode 100644 index 0000000..2168b6e --- /dev/null +++ b/test/test_v1beta1_list_projects_by_current_user_response_access_pair.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_projects_by_current_user_response_access_pair import V1beta1ListProjectsByCurrentUserResponseAccessPair + +class TestV1beta1ListProjectsByCurrentUserResponseAccessPair(unittest.TestCase): + """V1beta1ListProjectsByCurrentUserResponseAccessPair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectsByCurrentUserResponseAccessPair: + """Test V1beta1ListProjectsByCurrentUserResponseAccessPair + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectsByCurrentUserResponseAccessPair` + """ + model = V1beta1ListProjectsByCurrentUserResponseAccessPair() + if include_optional: + return V1beta1ListProjectsByCurrentUserResponseAccessPair( + project_id = '', + permissions = [ + '' + ] + ) + else: + return V1beta1ListProjectsByCurrentUserResponseAccessPair( + ) + """ + + def testV1beta1ListProjectsByCurrentUserResponseAccessPair(self): + """Test V1beta1ListProjectsByCurrentUserResponseAccessPair""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_projects_by_user_response.py b/test/test_v1beta1_list_projects_by_user_response.py new file mode 100644 index 0000000..7c419c0 --- /dev/null +++ b/test/test_v1beta1_list_projects_by_user_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_projects_by_user_response import V1beta1ListProjectsByUserResponse + +class TestV1beta1ListProjectsByUserResponse(unittest.TestCase): + """V1beta1ListProjectsByUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectsByUserResponse: + """Test V1beta1ListProjectsByUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectsByUserResponse` + """ + model = V1beta1ListProjectsByUserResponse() + if include_optional: + return V1beta1ListProjectsByUserResponse( + projects = [ + frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListProjectsByUserResponse( + ) + """ + + def testV1beta1ListProjectsByUserResponse(self): + """Test V1beta1ListProjectsByUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_projects_response.py b/test/test_v1beta1_list_projects_response.py new file mode 100644 index 0000000..d315fb4 --- /dev/null +++ b/test/test_v1beta1_list_projects_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_projects_response import V1beta1ListProjectsResponse + +class TestV1beta1ListProjectsResponse(unittest.TestCase): + """V1beta1ListProjectsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListProjectsResponse: + """Test V1beta1ListProjectsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListProjectsResponse` + """ + model = V1beta1ListProjectsResponse() + if include_optional: + return V1beta1ListProjectsResponse( + projects = [ + frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListProjectsResponse( + ) + """ + + def testV1beta1ListProjectsResponse(self): + """Test V1beta1ListProjectsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_relations_response.py b/test/test_v1beta1_list_relations_response.py new file mode 100644 index 0000000..a7e0122 --- /dev/null +++ b/test/test_v1beta1_list_relations_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_relations_response import V1beta1ListRelationsResponse + +class TestV1beta1ListRelationsResponse(unittest.TestCase): + """V1beta1ListRelationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListRelationsResponse: + """Test V1beta1ListRelationsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListRelationsResponse` + """ + model = V1beta1ListRelationsResponse() + if include_optional: + return V1beta1ListRelationsResponse( + relations = [ + frontier_api.models.v1beta1_relation.v1beta1Relation( + id = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + subject_sub_relation = '', + relation = '', + object = '', + subject = '', ) + ] + ) + else: + return V1beta1ListRelationsResponse( + ) + """ + + def testV1beta1ListRelationsResponse(self): + """Test V1beta1ListRelationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_resources_response.py b/test/test_v1beta1_list_resources_response.py new file mode 100644 index 0000000..acd1a34 --- /dev/null +++ b/test/test_v1beta1_list_resources_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_resources_response import V1beta1ListResourcesResponse + +class TestV1beta1ListResourcesResponse(unittest.TestCase): + """V1beta1ListResourcesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListResourcesResponse: + """Test V1beta1ListResourcesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListResourcesResponse` + """ + model = V1beta1ListResourcesResponse() + if include_optional: + return V1beta1ListResourcesResponse( + resources = [ + frontier_api.models.v1beta1_resource.v1beta1Resource( + id = '', + name = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + urn = '', + project_id = '', + namespace = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', ) + ] + ) + else: + return V1beta1ListResourcesResponse( + ) + """ + + def testV1beta1ListResourcesResponse(self): + """Test V1beta1ListResourcesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_roles_response.py b/test/test_v1beta1_list_roles_response.py new file mode 100644 index 0000000..73032a9 --- /dev/null +++ b/test/test_v1beta1_list_roles_response.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_roles_response import V1beta1ListRolesResponse + +class TestV1beta1ListRolesResponse(unittest.TestCase): + """V1beta1ListRolesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListRolesResponse: + """Test V1beta1ListRolesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListRolesResponse` + """ + model = V1beta1ListRolesResponse() + if include_optional: + return V1beta1ListRolesResponse( + roles = [ + frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ] + ) + else: + return V1beta1ListRolesResponse( + ) + """ + + def testV1beta1ListRolesResponse(self): + """Test V1beta1ListRolesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_service_user_keys_response.py b/test/test_v1beta1_list_service_user_keys_response.py new file mode 100644 index 0000000..cb287ed --- /dev/null +++ b/test/test_v1beta1_list_service_user_keys_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_service_user_keys_response import V1beta1ListServiceUserKeysResponse + +class TestV1beta1ListServiceUserKeysResponse(unittest.TestCase): + """V1beta1ListServiceUserKeysResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListServiceUserKeysResponse: + """Test V1beta1ListServiceUserKeysResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListServiceUserKeysResponse` + """ + model = V1beta1ListServiceUserKeysResponse() + if include_optional: + return V1beta1ListServiceUserKeysResponse( + keys = [ + frontier_api.models.v1beta1_service_user_key.v1beta1ServiceUserKey( + id = '', + title = '', + principal_id = '', + public_key = '', + created_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListServiceUserKeysResponse( + ) + """ + + def testV1beta1ListServiceUserKeysResponse(self): + """Test V1beta1ListServiceUserKeysResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_service_user_secrets_response.py b/test/test_v1beta1_list_service_user_secrets_response.py new file mode 100644 index 0000000..e91467e --- /dev/null +++ b/test/test_v1beta1_list_service_user_secrets_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_service_user_secrets_response import V1beta1ListServiceUserSecretsResponse + +class TestV1beta1ListServiceUserSecretsResponse(unittest.TestCase): + """V1beta1ListServiceUserSecretsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListServiceUserSecretsResponse: + """Test V1beta1ListServiceUserSecretsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListServiceUserSecretsResponse` + """ + model = V1beta1ListServiceUserSecretsResponse() + if include_optional: + return V1beta1ListServiceUserSecretsResponse( + secrets = [ + frontier_api.models.v1beta1_secret_credential.v1beta1SecretCredential( + id = '', + title = '', + secret = '', + created_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListServiceUserSecretsResponse( + ) + """ + + def testV1beta1ListServiceUserSecretsResponse(self): + """Test V1beta1ListServiceUserSecretsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_service_users_response.py b/test/test_v1beta1_list_service_users_response.py new file mode 100644 index 0000000..8f0ee11 --- /dev/null +++ b/test/test_v1beta1_list_service_users_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_service_users_response import V1beta1ListServiceUsersResponse + +class TestV1beta1ListServiceUsersResponse(unittest.TestCase): + """V1beta1ListServiceUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListServiceUsersResponse: + """Test V1beta1ListServiceUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListServiceUsersResponse` + """ + model = V1beta1ListServiceUsersResponse() + if include_optional: + return V1beta1ListServiceUsersResponse( + serviceusers = [ + frontier_api.models.v1beta1_service_user.v1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '', ) + ] + ) + else: + return V1beta1ListServiceUsersResponse( + ) + """ + + def testV1beta1ListServiceUsersResponse(self): + """Test V1beta1ListServiceUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_subscriptions_response.py b/test/test_v1beta1_list_subscriptions_response.py new file mode 100644 index 0000000..5d72bf9 --- /dev/null +++ b/test/test_v1beta1_list_subscriptions_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_subscriptions_response import V1beta1ListSubscriptionsResponse + +class TestV1beta1ListSubscriptionsResponse(unittest.TestCase): + """V1beta1ListSubscriptionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListSubscriptionsResponse: + """Test V1beta1ListSubscriptionsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListSubscriptionsResponse` + """ + model = V1beta1ListSubscriptionsResponse() + if include_optional: + return V1beta1ListSubscriptionsResponse( + subscriptions = [ + frontier_api.models.v1beta1_subscription.v1beta1Subscription( + id = '', + customer_id = '', + provider_id = '', + plan_id = '', + state = '', + trial_days = 56, + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + canceled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ] + ) + else: + return V1beta1ListSubscriptionsResponse( + ) + """ + + def testV1beta1ListSubscriptionsResponse(self): + """Test V1beta1ListSubscriptionsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_user_groups_response.py b/test/test_v1beta1_list_user_groups_response.py new file mode 100644 index 0000000..eb943a4 --- /dev/null +++ b/test/test_v1beta1_list_user_groups_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_user_groups_response import V1beta1ListUserGroupsResponse + +class TestV1beta1ListUserGroupsResponse(unittest.TestCase): + """V1beta1ListUserGroupsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListUserGroupsResponse: + """Test V1beta1ListUserGroupsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListUserGroupsResponse` + """ + model = V1beta1ListUserGroupsResponse() + if include_optional: + return V1beta1ListUserGroupsResponse( + groups = [ + frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ] + ) + else: + return V1beta1ListUserGroupsResponse( + ) + """ + + def testV1beta1ListUserGroupsResponse(self): + """Test V1beta1ListUserGroupsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_user_invitations_response.py b/test/test_v1beta1_list_user_invitations_response.py new file mode 100644 index 0000000..6a056e6 --- /dev/null +++ b/test/test_v1beta1_list_user_invitations_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_user_invitations_response import V1beta1ListUserInvitationsResponse + +class TestV1beta1ListUserInvitationsResponse(unittest.TestCase): + """V1beta1ListUserInvitationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListUserInvitationsResponse: + """Test V1beta1ListUserInvitationsResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListUserInvitationsResponse` + """ + model = V1beta1ListUserInvitationsResponse() + if include_optional: + return V1beta1ListUserInvitationsResponse( + invitations = [ + frontier_api.models.v1beta1_invitation.v1beta1Invitation( + id = 'k9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + user_id = 'john.doe@raystack.org', + org_id = 'b9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + group_ids = c9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, + metadata = {"key":"value"}, + created_at = '2023-06-07T05:39:56.961Z', + expires_at = '2023-06-07T05:39:56.961Z', + role_ids = d9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b, ) + ] + ) + else: + return V1beta1ListUserInvitationsResponse( + ) + """ + + def testV1beta1ListUserInvitationsResponse(self): + """Test V1beta1ListUserInvitationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_user_preferences_response.py b/test/test_v1beta1_list_user_preferences_response.py new file mode 100644 index 0000000..0755c1a --- /dev/null +++ b/test/test_v1beta1_list_user_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_user_preferences_response import V1beta1ListUserPreferencesResponse + +class TestV1beta1ListUserPreferencesResponse(unittest.TestCase): + """V1beta1ListUserPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListUserPreferencesResponse: + """Test V1beta1ListUserPreferencesResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListUserPreferencesResponse` + """ + model = V1beta1ListUserPreferencesResponse() + if include_optional: + return V1beta1ListUserPreferencesResponse( + preferences = [ + frontier_api.models.v1beta1_preference.v1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ] + ) + else: + return V1beta1ListUserPreferencesResponse( + ) + """ + + def testV1beta1ListUserPreferencesResponse(self): + """Test V1beta1ListUserPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_list_users_response.py b/test/test_v1beta1_list_users_response.py new file mode 100644 index 0000000..32491ac --- /dev/null +++ b/test/test_v1beta1_list_users_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_list_users_response import V1beta1ListUsersResponse + +class TestV1beta1ListUsersResponse(unittest.TestCase): + """V1beta1ListUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ListUsersResponse: + """Test V1beta1ListUsersResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ListUsersResponse` + """ + model = V1beta1ListUsersResponse() + if include_optional: + return V1beta1ListUsersResponse( + count = 56, + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ] + ) + else: + return V1beta1ListUsersResponse( + ) + """ + + def testV1beta1ListUsersResponse(self): + """Test V1beta1ListUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_meta_schema.py b/test/test_v1beta1_meta_schema.py new file mode 100644 index 0000000..fd20298 --- /dev/null +++ b/test/test_v1beta1_meta_schema.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_meta_schema import V1beta1MetaSchema + +class TestV1beta1MetaSchema(unittest.TestCase): + """V1beta1MetaSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1MetaSchema: + """Test V1beta1MetaSchema + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1MetaSchema` + """ + model = V1beta1MetaSchema() + if include_optional: + return V1beta1MetaSchema( + id = 'a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + name = '', + var_schema = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1MetaSchema( + ) + """ + + def testV1beta1MetaSchema(self): + """Test V1beta1MetaSchema""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_meta_schema_request_body.py b/test/test_v1beta1_meta_schema_request_body.py new file mode 100644 index 0000000..2cd75bf --- /dev/null +++ b/test/test_v1beta1_meta_schema_request_body.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_meta_schema_request_body import V1beta1MetaSchemaRequestBody + +class TestV1beta1MetaSchemaRequestBody(unittest.TestCase): + """V1beta1MetaSchemaRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1MetaSchemaRequestBody: + """Test V1beta1MetaSchemaRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1MetaSchemaRequestBody` + """ + model = V1beta1MetaSchemaRequestBody() + if include_optional: + return V1beta1MetaSchemaRequestBody( + name = '', + var_schema = '' + ) + else: + return V1beta1MetaSchemaRequestBody( + name = '', + var_schema = '', + ) + """ + + def testV1beta1MetaSchemaRequestBody(self): + """Test V1beta1MetaSchemaRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_namespace.py b/test/test_v1beta1_namespace.py new file mode 100644 index 0000000..bcce403 --- /dev/null +++ b/test/test_v1beta1_namespace.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_namespace import V1beta1Namespace + +class TestV1beta1Namespace(unittest.TestCase): + """V1beta1Namespace unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Namespace: + """Test V1beta1Namespace + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Namespace` + """ + model = V1beta1Namespace() + if include_optional: + return V1beta1Namespace( + id = '', + name = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1Namespace( + ) + """ + + def testV1beta1Namespace(self): + """Test V1beta1Namespace""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_organization.py b/test/test_v1beta1_organization.py new file mode 100644 index 0000000..f9faa35 --- /dev/null +++ b/test/test_v1beta1_organization.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_organization import V1beta1Organization + +class TestV1beta1Organization(unittest.TestCase): + """V1beta1Organization unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Organization: + """Test V1beta1Organization + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Organization` + """ + model = V1beta1Organization() + if include_optional: + return V1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '' + ) + else: + return V1beta1Organization( + ) + """ + + def testV1beta1Organization(self): + """Test V1beta1Organization""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_organization_request_body.py b/test/test_v1beta1_organization_request_body.py new file mode 100644 index 0000000..f57b8af --- /dev/null +++ b/test/test_v1beta1_organization_request_body.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_organization_request_body import V1beta1OrganizationRequestBody + +class TestV1beta1OrganizationRequestBody(unittest.TestCase): + """V1beta1OrganizationRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1OrganizationRequestBody: + """Test V1beta1OrganizationRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1OrganizationRequestBody` + """ + model = V1beta1OrganizationRequestBody() + if include_optional: + return V1beta1OrganizationRequestBody( + name = '', + title = '', + metadata = None, + avatar = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA' + ) + else: + return V1beta1OrganizationRequestBody( + name = '', + ) + """ + + def testV1beta1OrganizationRequestBody(self): + """Test V1beta1OrganizationRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_permission.py b/test/test_v1beta1_permission.py new file mode 100644 index 0000000..1b81be4 --- /dev/null +++ b/test/test_v1beta1_permission.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_permission import V1beta1Permission + +class TestV1beta1Permission(unittest.TestCase): + """V1beta1Permission unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Permission: + """Test V1beta1Permission + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Permission` + """ + model = V1beta1Permission() + if include_optional: + return V1beta1Permission( + id = '', + name = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + key = 'compute.instance.get' + ) + else: + return V1beta1Permission( + ) + """ + + def testV1beta1Permission(self): + """Test V1beta1Permission""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_permission_request_body.py b/test/test_v1beta1_permission_request_body.py new file mode 100644 index 0000000..27ee053 --- /dev/null +++ b/test/test_v1beta1_permission_request_body.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_permission_request_body import V1beta1PermissionRequestBody + +class TestV1beta1PermissionRequestBody(unittest.TestCase): + """V1beta1PermissionRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1PermissionRequestBody: + """Test V1beta1PermissionRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1PermissionRequestBody` + """ + model = V1beta1PermissionRequestBody() + if include_optional: + return V1beta1PermissionRequestBody( + name = '', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', + key = 'compute.instance.get' + ) + else: + return V1beta1PermissionRequestBody( + ) + """ + + def testV1beta1PermissionRequestBody(self): + """Test V1beta1PermissionRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_plan.py b/test/test_v1beta1_plan.py new file mode 100644 index 0000000..f6d384b --- /dev/null +++ b/test/test_v1beta1_plan.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_plan import V1beta1Plan + +class TestV1beta1Plan(unittest.TestCase): + """V1beta1Plan unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Plan: + """Test V1beta1Plan + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Plan` + """ + model = V1beta1Plan() + if include_optional: + return V1beta1Plan( + id = '', + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1Plan( + ) + """ + + def testV1beta1Plan(self): + """Test V1beta1Plan""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_plan_request_body.py b/test/test_v1beta1_plan_request_body.py new file mode 100644 index 0000000..9f2b720 --- /dev/null +++ b/test/test_v1beta1_plan_request_body.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_plan_request_body import V1beta1PlanRequestBody + +class TestV1beta1PlanRequestBody(unittest.TestCase): + """V1beta1PlanRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1PlanRequestBody: + """Test V1beta1PlanRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1PlanRequestBody` + """ + model = V1beta1PlanRequestBody() + if include_optional: + return V1beta1PlanRequestBody( + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata() + ) + else: + return V1beta1PlanRequestBody( + ) + """ + + def testV1beta1PlanRequestBody(self): + """Test V1beta1PlanRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_policy.py b/test/test_v1beta1_policy.py new file mode 100644 index 0000000..76eb2b4 --- /dev/null +++ b/test/test_v1beta1_policy.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_policy import V1beta1Policy + +class TestV1beta1Policy(unittest.TestCase): + """V1beta1Policy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Policy: + """Test V1beta1Policy + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Policy` + """ + model = V1beta1Policy() + if include_optional: + return V1beta1Policy( + id = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + role_id = '', + resource = '', + principal = '', + metadata = frontier_api.models.metadata.metadata() + ) + else: + return V1beta1Policy( + ) + """ + + def testV1beta1Policy(self): + """Test V1beta1Policy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_policy_request_body.py b/test/test_v1beta1_policy_request_body.py new file mode 100644 index 0000000..fc8b3ef --- /dev/null +++ b/test/test_v1beta1_policy_request_body.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_policy_request_body import V1beta1PolicyRequestBody + +class TestV1beta1PolicyRequestBody(unittest.TestCase): + """V1beta1PolicyRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1PolicyRequestBody: + """Test V1beta1PolicyRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1PolicyRequestBody` + """ + model = V1beta1PolicyRequestBody() + if include_optional: + return V1beta1PolicyRequestBody( + role_id = '', + title = '', + resource = '', + principal = '', + metadata = None + ) + else: + return V1beta1PolicyRequestBody( + role_id = '', + resource = '', + principal = '', + ) + """ + + def testV1beta1PolicyRequestBody(self): + """Test V1beta1PolicyRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_preference.py b/test/test_v1beta1_preference.py new file mode 100644 index 0000000..ce48ca4 --- /dev/null +++ b/test/test_v1beta1_preference.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_preference import V1beta1Preference + +class TestV1beta1Preference(unittest.TestCase): + """V1beta1Preference unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Preference: + """Test V1beta1Preference + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Preference` + """ + model = V1beta1Preference() + if include_optional: + return V1beta1Preference( + id = '', + name = '', + value = '', + resource_id = '', + resource_type = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1Preference( + ) + """ + + def testV1beta1Preference(self): + """Test V1beta1Preference""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_preference_request_body.py b/test/test_v1beta1_preference_request_body.py new file mode 100644 index 0000000..424cbcf --- /dev/null +++ b/test/test_v1beta1_preference_request_body.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_preference_request_body import V1beta1PreferenceRequestBody + +class TestV1beta1PreferenceRequestBody(unittest.TestCase): + """V1beta1PreferenceRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1PreferenceRequestBody: + """Test V1beta1PreferenceRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1PreferenceRequestBody` + """ + model = V1beta1PreferenceRequestBody() + if include_optional: + return V1beta1PreferenceRequestBody( + name = '', + value = '' + ) + else: + return V1beta1PreferenceRequestBody( + ) + """ + + def testV1beta1PreferenceRequestBody(self): + """Test V1beta1PreferenceRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_preference_trait.py b/test/test_v1beta1_preference_trait.py new file mode 100644 index 0000000..598b527 --- /dev/null +++ b/test/test_v1beta1_preference_trait.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_preference_trait import V1beta1PreferenceTrait + +class TestV1beta1PreferenceTrait(unittest.TestCase): + """V1beta1PreferenceTrait unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1PreferenceTrait: + """Test V1beta1PreferenceTrait + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1PreferenceTrait` + """ + model = V1beta1PreferenceTrait() + if include_optional: + return V1beta1PreferenceTrait( + resource_type = '', + name = '', + title = '', + description = '', + long_description = '', + heading = '', + sub_heading = '', + breadcrumb = '', + default = '', + input_hints = '', + text = '', + textarea = '', + select = '', + combobox = '', + checkbox = '', + multiselect = '', + number = '' + ) + else: + return V1beta1PreferenceTrait( + ) + """ + + def testV1beta1PreferenceTrait(self): + """Test V1beta1PreferenceTrait""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_price.py b/test/test_v1beta1_price.py new file mode 100644 index 0000000..dba2654 --- /dev/null +++ b/test/test_v1beta1_price.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_price import V1beta1Price + +class TestV1beta1Price(unittest.TestCase): + """V1beta1Price unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Price: + """Test V1beta1Price + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Price` + """ + model = V1beta1Price() + if include_optional: + return V1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1Price( + ) + """ + + def testV1beta1Price(self): + """Test V1beta1Price""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_project.py b/test/test_v1beta1_project.py new file mode 100644 index 0000000..b0b141a --- /dev/null +++ b/test/test_v1beta1_project.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_project import V1beta1Project + +class TestV1beta1Project(unittest.TestCase): + """V1beta1Project unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Project: + """Test V1beta1Project + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Project` + """ + model = V1beta1Project() + if include_optional: + return V1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1Project( + ) + """ + + def testV1beta1Project(self): + """Test V1beta1Project""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_project_request_body.py b/test/test_v1beta1_project_request_body.py new file mode 100644 index 0000000..a1cc4ba --- /dev/null +++ b/test/test_v1beta1_project_request_body.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_project_request_body import V1beta1ProjectRequestBody + +class TestV1beta1ProjectRequestBody(unittest.TestCase): + """V1beta1ProjectRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ProjectRequestBody: + """Test V1beta1ProjectRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ProjectRequestBody` + """ + model = V1beta1ProjectRequestBody() + if include_optional: + return V1beta1ProjectRequestBody( + name = '', + title = '', + metadata = None, + org_id = '' + ) + else: + return V1beta1ProjectRequestBody( + name = '', + org_id = '', + ) + """ + + def testV1beta1ProjectRequestBody(self): + """Test V1beta1ProjectRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_relation.py b/test/test_v1beta1_relation.py new file mode 100644 index 0000000..fa484a6 --- /dev/null +++ b/test/test_v1beta1_relation.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_relation import V1beta1Relation + +class TestV1beta1Relation(unittest.TestCase): + """V1beta1Relation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Relation: + """Test V1beta1Relation + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Relation` + """ + model = V1beta1Relation() + if include_optional: + return V1beta1Relation( + id = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + subject_sub_relation = '', + relation = '', + object = '', + subject = '' + ) + else: + return V1beta1Relation( + ) + """ + + def testV1beta1Relation(self): + """Test V1beta1Relation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_relation_request_body.py b/test/test_v1beta1_relation_request_body.py new file mode 100644 index 0000000..811c5bd --- /dev/null +++ b/test/test_v1beta1_relation_request_body.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_relation_request_body import V1beta1RelationRequestBody + +class TestV1beta1RelationRequestBody(unittest.TestCase): + """V1beta1RelationRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1RelationRequestBody: + """Test V1beta1RelationRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1RelationRequestBody` + """ + model = V1beta1RelationRequestBody() + if include_optional: + return V1beta1RelationRequestBody( + object = '', + subject = '', + relation = '', + subject_sub_relation = '' + ) + else: + return V1beta1RelationRequestBody( + ) + """ + + def testV1beta1RelationRequestBody(self): + """Test V1beta1RelationRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_resource.py b/test/test_v1beta1_resource.py new file mode 100644 index 0000000..52dd924 --- /dev/null +++ b/test/test_v1beta1_resource.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_resource import V1beta1Resource + +class TestV1beta1Resource(unittest.TestCase): + """V1beta1Resource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Resource: + """Test V1beta1Resource + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Resource` + """ + model = V1beta1Resource() + if include_optional: + return V1beta1Resource( + id = '', + name = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + urn = '', + project_id = '', + namespace = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), + title = '' + ) + else: + return V1beta1Resource( + ) + """ + + def testV1beta1Resource(self): + """Test V1beta1Resource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_resource_request_body.py b/test/test_v1beta1_resource_request_body.py new file mode 100644 index 0000000..ddd286d --- /dev/null +++ b/test/test_v1beta1_resource_request_body.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_resource_request_body import V1beta1ResourceRequestBody + +class TestV1beta1ResourceRequestBody(unittest.TestCase): + """V1beta1ResourceRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ResourceRequestBody: + """Test V1beta1ResourceRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ResourceRequestBody` + """ + model = V1beta1ResourceRequestBody() + if include_optional: + return V1beta1ResourceRequestBody( + name = '', + title = '', + namespace = '', + principal = '', + metadata = None + ) + else: + return V1beta1ResourceRequestBody( + name = '', + namespace = '', + ) + """ + + def testV1beta1ResourceRequestBody(self): + """Test V1beta1ResourceRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_role.py b/test/test_v1beta1_role.py new file mode 100644 index 0000000..9683733 --- /dev/null +++ b/test/test_v1beta1_role.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_role import V1beta1Role + +class TestV1beta1Role(unittest.TestCase): + """V1beta1Role unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Role: + """Test V1beta1Role + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Role` + """ + model = V1beta1Role() + if include_optional: + return V1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ] + ) + else: + return V1beta1Role( + ) + """ + + def testV1beta1Role(self): + """Test V1beta1Role""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_role_request_body.py b/test/test_v1beta1_role_request_body.py new file mode 100644 index 0000000..80ac03f --- /dev/null +++ b/test/test_v1beta1_role_request_body.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_role_request_body import V1beta1RoleRequestBody + +class TestV1beta1RoleRequestBody(unittest.TestCase): + """V1beta1RoleRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1RoleRequestBody: + """Test V1beta1RoleRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1RoleRequestBody` + """ + model = V1beta1RoleRequestBody() + if include_optional: + return V1beta1RoleRequestBody( + name = '', + permissions = [ + '' + ], + metadata = None, + title = '', + scopes = [ + '' + ] + ) + else: + return V1beta1RoleRequestBody( + ) + """ + + def testV1beta1RoleRequestBody(self): + """Test V1beta1RoleRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_secret_credential.py b/test/test_v1beta1_secret_credential.py new file mode 100644 index 0000000..ece8992 --- /dev/null +++ b/test/test_v1beta1_secret_credential.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_secret_credential import V1beta1SecretCredential + +class TestV1beta1SecretCredential(unittest.TestCase): + """V1beta1SecretCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1SecretCredential: + """Test V1beta1SecretCredential + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1SecretCredential` + """ + model = V1beta1SecretCredential() + if include_optional: + return V1beta1SecretCredential( + id = '', + title = '', + secret = '', + created_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1SecretCredential( + ) + """ + + def testV1beta1SecretCredential(self): + """Test V1beta1SecretCredential""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_service_user.py b/test/test_v1beta1_service_user.py new file mode 100644 index 0000000..c2b8a9a --- /dev/null +++ b/test/test_v1beta1_service_user.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_service_user import V1beta1ServiceUser + +class TestV1beta1ServiceUser(unittest.TestCase): + """V1beta1ServiceUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ServiceUser: + """Test V1beta1ServiceUser + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ServiceUser` + """ + model = V1beta1ServiceUser() + if include_optional: + return V1beta1ServiceUser( + id = '', + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = '', + org_id = '' + ) + else: + return V1beta1ServiceUser( + ) + """ + + def testV1beta1ServiceUser(self): + """Test V1beta1ServiceUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_service_user_key.py b/test/test_v1beta1_service_user_key.py new file mode 100644 index 0000000..7011f14 --- /dev/null +++ b/test/test_v1beta1_service_user_key.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_service_user_key import V1beta1ServiceUserKey + +class TestV1beta1ServiceUserKey(unittest.TestCase): + """V1beta1ServiceUserKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ServiceUserKey: + """Test V1beta1ServiceUserKey + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ServiceUserKey` + """ + model = V1beta1ServiceUserKey() + if include_optional: + return V1beta1ServiceUserKey( + id = '', + title = '', + principal_id = '', + public_key = '', + created_at = '2023-06-07T05:39:56.961Z' + ) + else: + return V1beta1ServiceUserKey( + ) + """ + + def testV1beta1ServiceUserKey(self): + """Test V1beta1ServiceUserKey""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_service_user_request_body.py b/test/test_v1beta1_service_user_request_body.py new file mode 100644 index 0000000..808f146 --- /dev/null +++ b/test/test_v1beta1_service_user_request_body.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_service_user_request_body import V1beta1ServiceUserRequestBody + +class TestV1beta1ServiceUserRequestBody(unittest.TestCase): + """V1beta1ServiceUserRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1ServiceUserRequestBody: + """Test V1beta1ServiceUserRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1ServiceUserRequestBody` + """ + model = V1beta1ServiceUserRequestBody() + if include_optional: + return V1beta1ServiceUserRequestBody( + title = 'Order Service', + metadata = frontier_api.models.metadata.metadata() + ) + else: + return V1beta1ServiceUserRequestBody( + ) + """ + + def testV1beta1ServiceUserRequestBody(self): + """Test V1beta1ServiceUserRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_subscription.py b/test/test_v1beta1_subscription.py new file mode 100644 index 0000000..89789dd --- /dev/null +++ b/test/test_v1beta1_subscription.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_subscription import V1beta1Subscription + +class TestV1beta1Subscription(unittest.TestCase): + """V1beta1Subscription unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Subscription: + """Test V1beta1Subscription + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Subscription` + """ + model = V1beta1Subscription() + if include_optional: + return V1beta1Subscription( + id = '', + customer_id = '', + provider_id = '', + plan_id = '', + state = '', + trial_days = 56, + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + canceled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1Subscription( + ) + """ + + def testV1beta1Subscription(self): + """Test V1beta1Subscription""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_billing_account_response.py b/test/test_v1beta1_update_billing_account_response.py new file mode 100644 index 0000000..97a239c --- /dev/null +++ b/test/test_v1beta1_update_billing_account_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_billing_account_response import V1beta1UpdateBillingAccountResponse + +class TestV1beta1UpdateBillingAccountResponse(unittest.TestCase): + """V1beta1UpdateBillingAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateBillingAccountResponse: + """Test V1beta1UpdateBillingAccountResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateBillingAccountResponse` + """ + model = V1beta1UpdateBillingAccountResponse() + if include_optional: + return V1beta1UpdateBillingAccountResponse( + billing_account = frontier_api.models.v1beta1_billing_account.v1beta1BillingAccount( + id = '', + org_id = '', + name = '', + email = '', + phone = '', + address = frontier_api.models.billing_account_address.BillingAccountAddress( + line1 = '', + line2 = '', + city = '', + state = '', + postal_code = '', + country = '', ), + provider_id = '', + provider = '', + currency = '', + state = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1UpdateBillingAccountResponse( + ) + """ + + def testV1beta1UpdateBillingAccountResponse(self): + """Test V1beta1UpdateBillingAccountResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_current_user_response.py b/test/test_v1beta1_update_current_user_response.py new file mode 100644 index 0000000..c57bd60 --- /dev/null +++ b/test/test_v1beta1_update_current_user_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_current_user_response import V1beta1UpdateCurrentUserResponse + +class TestV1beta1UpdateCurrentUserResponse(unittest.TestCase): + """V1beta1UpdateCurrentUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateCurrentUserResponse: + """Test V1beta1UpdateCurrentUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateCurrentUserResponse` + """ + model = V1beta1UpdateCurrentUserResponse() + if include_optional: + return V1beta1UpdateCurrentUserResponse( + user = frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1UpdateCurrentUserResponse( + ) + """ + + def testV1beta1UpdateCurrentUserResponse(self): + """Test V1beta1UpdateCurrentUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_feature_response.py b/test/test_v1beta1_update_feature_response.py new file mode 100644 index 0000000..e6008bc --- /dev/null +++ b/test/test_v1beta1_update_feature_response.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_feature_response import V1beta1UpdateFeatureResponse + +class TestV1beta1UpdateFeatureResponse(unittest.TestCase): + """V1beta1UpdateFeatureResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateFeatureResponse: + """Test V1beta1UpdateFeatureResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateFeatureResponse` + """ + model = V1beta1UpdateFeatureResponse() + if include_optional: + return V1beta1UpdateFeatureResponse( + feature = frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1UpdateFeatureResponse( + ) + """ + + def testV1beta1UpdateFeatureResponse(self): + """Test V1beta1UpdateFeatureResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_group_response.py b/test/test_v1beta1_update_group_response.py new file mode 100644 index 0000000..67e1411 --- /dev/null +++ b/test/test_v1beta1_update_group_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_group_response import V1beta1UpdateGroupResponse + +class TestV1beta1UpdateGroupResponse(unittest.TestCase): + """V1beta1UpdateGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateGroupResponse: + """Test V1beta1UpdateGroupResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateGroupResponse` + """ + model = V1beta1UpdateGroupResponse() + if include_optional: + return V1beta1UpdateGroupResponse( + group = frontier_api.models.v1beta1_group.v1beta1Group( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + users = [ + frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ], ) + ) + else: + return V1beta1UpdateGroupResponse( + ) + """ + + def testV1beta1UpdateGroupResponse(self): + """Test V1beta1UpdateGroupResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_meta_schema_response.py b/test/test_v1beta1_update_meta_schema_response.py new file mode 100644 index 0000000..c25d184 --- /dev/null +++ b/test/test_v1beta1_update_meta_schema_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_meta_schema_response import V1beta1UpdateMetaSchemaResponse + +class TestV1beta1UpdateMetaSchemaResponse(unittest.TestCase): + """V1beta1UpdateMetaSchemaResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateMetaSchemaResponse: + """Test V1beta1UpdateMetaSchemaResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateMetaSchemaResponse` + """ + model = V1beta1UpdateMetaSchemaResponse() + if include_optional: + return V1beta1UpdateMetaSchemaResponse( + metaschema = frontier_api.models.v1beta1_meta_schema.v1beta1MetaSchema( + id = 'a9c4f4e2-9b9a-4c1a-8f1a-2b9b9b9b9b9b', + name = '', + schema = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1UpdateMetaSchemaResponse( + ) + """ + + def testV1beta1UpdateMetaSchemaResponse(self): + """Test V1beta1UpdateMetaSchemaResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_organization_response.py b/test/test_v1beta1_update_organization_response.py new file mode 100644 index 0000000..e8eac99 --- /dev/null +++ b/test/test_v1beta1_update_organization_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_organization_response import V1beta1UpdateOrganizationResponse + +class TestV1beta1UpdateOrganizationResponse(unittest.TestCase): + """V1beta1UpdateOrganizationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateOrganizationResponse: + """Test V1beta1UpdateOrganizationResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateOrganizationResponse` + """ + model = V1beta1UpdateOrganizationResponse() + if include_optional: + return V1beta1UpdateOrganizationResponse( + organization = frontier_api.models.v1beta1_organization.v1beta1Organization( + id = '', + name = '', + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1UpdateOrganizationResponse( + ) + """ + + def testV1beta1UpdateOrganizationResponse(self): + """Test V1beta1UpdateOrganizationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_organization_role_response.py b/test/test_v1beta1_update_organization_role_response.py new file mode 100644 index 0000000..6f2d3fc --- /dev/null +++ b/test/test_v1beta1_update_organization_role_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_organization_role_response import V1beta1UpdateOrganizationRoleResponse + +class TestV1beta1UpdateOrganizationRoleResponse(unittest.TestCase): + """V1beta1UpdateOrganizationRoleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateOrganizationRoleResponse: + """Test V1beta1UpdateOrganizationRoleResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateOrganizationRoleResponse` + """ + model = V1beta1UpdateOrganizationRoleResponse() + if include_optional: + return V1beta1UpdateOrganizationRoleResponse( + role = frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ) + else: + return V1beta1UpdateOrganizationRoleResponse( + ) + """ + + def testV1beta1UpdateOrganizationRoleResponse(self): + """Test V1beta1UpdateOrganizationRoleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_permission_response.py b/test/test_v1beta1_update_permission_response.py new file mode 100644 index 0000000..a98e457 --- /dev/null +++ b/test/test_v1beta1_update_permission_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_permission_response import V1beta1UpdatePermissionResponse + +class TestV1beta1UpdatePermissionResponse(unittest.TestCase): + """V1beta1UpdatePermissionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdatePermissionResponse: + """Test V1beta1UpdatePermissionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdatePermissionResponse` + """ + model = V1beta1UpdatePermissionResponse() + if include_optional: + return V1beta1UpdatePermissionResponse( + permission = frontier_api.models.v1beta1_permission.v1beta1Permission( + id = '', + name = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + namespace = '', + metadata = frontier_api.models.metadata.metadata(), + key = 'compute.instance.get', ) + ) + else: + return V1beta1UpdatePermissionResponse( + ) + """ + + def testV1beta1UpdatePermissionResponse(self): + """Test V1beta1UpdatePermissionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_plan_response.py b/test/test_v1beta1_update_plan_response.py new file mode 100644 index 0000000..8256778 --- /dev/null +++ b/test/test_v1beta1_update_plan_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_plan_response import V1beta1UpdatePlanResponse + +class TestV1beta1UpdatePlanResponse(unittest.TestCase): + """V1beta1UpdatePlanResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdatePlanResponse: + """Test V1beta1UpdatePlanResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdatePlanResponse` + """ + model = V1beta1UpdatePlanResponse() + if include_optional: + return V1beta1UpdatePlanResponse( + plan = frontier_api.models.v1beta1_plan.v1beta1Plan( + id = '', + name = '', + title = '', + description = '', + features = [ + frontier_api.models.v1beta1_feature.v1beta1Feature( + id = '', + name = '', + title = '', + description = '', + plan_ids = [ + '' + ], + state = '', + prices = [ + frontier_api.models.v1beta1_price.v1beta1Price( + id = '', + feature_id = '', + provider_id = '', + name = '', + interval = '', + usage_type = '', + billing_scheme = '', + state = '', + currency = '', + amount = '', + metered_aggregate = '', + tier_mode = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + credit_amount = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + interval = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1UpdatePlanResponse( + ) + """ + + def testV1beta1UpdatePlanResponse(self): + """Test V1beta1UpdatePlanResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_policy_response.py b/test/test_v1beta1_update_policy_response.py new file mode 100644 index 0000000..585119b --- /dev/null +++ b/test/test_v1beta1_update_policy_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_policy_response import V1beta1UpdatePolicyResponse + +class TestV1beta1UpdatePolicyResponse(unittest.TestCase): + """V1beta1UpdatePolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdatePolicyResponse: + """Test V1beta1UpdatePolicyResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdatePolicyResponse` + """ + model = V1beta1UpdatePolicyResponse() + if include_optional: + return V1beta1UpdatePolicyResponse( + policies = [ + frontier_api.models.v1beta1_policy.v1beta1Policy( + id = '', + title = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + role_id = '', + resource = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), ) + ] + ) + else: + return V1beta1UpdatePolicyResponse( + ) + """ + + def testV1beta1UpdatePolicyResponse(self): + """Test V1beta1UpdatePolicyResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_project_resource_response.py b/test/test_v1beta1_update_project_resource_response.py new file mode 100644 index 0000000..6a0ad37 --- /dev/null +++ b/test/test_v1beta1_update_project_resource_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_project_resource_response import V1beta1UpdateProjectResourceResponse + +class TestV1beta1UpdateProjectResourceResponse(unittest.TestCase): + """V1beta1UpdateProjectResourceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateProjectResourceResponse: + """Test V1beta1UpdateProjectResourceResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateProjectResourceResponse` + """ + model = V1beta1UpdateProjectResourceResponse() + if include_optional: + return V1beta1UpdateProjectResourceResponse( + resource = frontier_api.models.v1beta1_resource.v1beta1Resource( + id = '', + name = '', + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + urn = '', + project_id = '', + namespace = '', + principal = '', + metadata = frontier_api.models.metadata.metadata(), + title = '', ) + ) + else: + return V1beta1UpdateProjectResourceResponse( + ) + """ + + def testV1beta1UpdateProjectResourceResponse(self): + """Test V1beta1UpdateProjectResourceResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_project_response.py b/test/test_v1beta1_update_project_response.py new file mode 100644 index 0000000..c7c16c5 --- /dev/null +++ b/test/test_v1beta1_update_project_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_project_response import V1beta1UpdateProjectResponse + +class TestV1beta1UpdateProjectResponse(unittest.TestCase): + """V1beta1UpdateProjectResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateProjectResponse: + """Test V1beta1UpdateProjectResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateProjectResponse` + """ + model = V1beta1UpdateProjectResponse() + if include_optional: + return V1beta1UpdateProjectResponse( + project = frontier_api.models.v1beta1_project.v1beta1Project( + id = '', + name = '', + title = '', + org_id = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', ) + ) + else: + return V1beta1UpdateProjectResponse( + ) + """ + + def testV1beta1UpdateProjectResponse(self): + """Test V1beta1UpdateProjectResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_role_response.py b/test/test_v1beta1_update_role_response.py new file mode 100644 index 0000000..f4219e7 --- /dev/null +++ b/test/test_v1beta1_update_role_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_role_response import V1beta1UpdateRoleResponse + +class TestV1beta1UpdateRoleResponse(unittest.TestCase): + """V1beta1UpdateRoleResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateRoleResponse: + """Test V1beta1UpdateRoleResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateRoleResponse` + """ + model = V1beta1UpdateRoleResponse() + if include_optional: + return V1beta1UpdateRoleResponse( + role = frontier_api.models.v1beta1_role.v1beta1Role( + id = '', + name = '', + permissions = [ + '' + ], + title = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + org_id = '', + state = '', + scopes = [ + '' + ], ) + ) + else: + return V1beta1UpdateRoleResponse( + ) + """ + + def testV1beta1UpdateRoleResponse(self): + """Test V1beta1UpdateRoleResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_subscription_response.py b/test/test_v1beta1_update_subscription_response.py new file mode 100644 index 0000000..a8b5122 --- /dev/null +++ b/test/test_v1beta1_update_subscription_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_subscription_response import V1beta1UpdateSubscriptionResponse + +class TestV1beta1UpdateSubscriptionResponse(unittest.TestCase): + """V1beta1UpdateSubscriptionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateSubscriptionResponse: + """Test V1beta1UpdateSubscriptionResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateSubscriptionResponse` + """ + model = V1beta1UpdateSubscriptionResponse() + if include_optional: + return V1beta1UpdateSubscriptionResponse( + subscription = frontier_api.models.v1beta1_subscription.v1beta1Subscription( + id = '', + customer_id = '', + provider_id = '', + plan_id = '', + state = '', + trial_days = 56, + metadata = frontier_api.models.metadata.metadata(), + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + canceled_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return V1beta1UpdateSubscriptionResponse( + ) + """ + + def testV1beta1UpdateSubscriptionResponse(self): + """Test V1beta1UpdateSubscriptionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_update_user_response.py b/test/test_v1beta1_update_user_response.py new file mode 100644 index 0000000..b1d3c34 --- /dev/null +++ b/test/test_v1beta1_update_user_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_update_user_response import V1beta1UpdateUserResponse + +class TestV1beta1UpdateUserResponse(unittest.TestCase): + """V1beta1UpdateUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UpdateUserResponse: + """Test V1beta1UpdateUserResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UpdateUserResponse` + """ + model = V1beta1UpdateUserResponse() + if include_optional: + return V1beta1UpdateUserResponse( + user = frontier_api.models.v1beta1_user.v1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '', ) + ) + else: + return V1beta1UpdateUserResponse( + ) + """ + + def testV1beta1UpdateUserResponse(self): + """Test V1beta1UpdateUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_usage.py b/test/test_v1beta1_usage.py new file mode 100644 index 0000000..ac5d716 --- /dev/null +++ b/test/test_v1beta1_usage.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_usage import V1beta1Usage + +class TestV1beta1Usage(unittest.TestCase): + """V1beta1Usage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1Usage: + """Test V1beta1Usage + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1Usage` + """ + model = V1beta1Usage() + if include_optional: + return V1beta1Usage( + id = '', + customer_id = '', + source = '', + description = '', + type = '', + amount = '', + metadata = None, + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return V1beta1Usage( + ) + """ + + def testV1beta1Usage(self): + """Test V1beta1Usage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_user.py b/test/test_v1beta1_user.py new file mode 100644 index 0000000..13dff3c --- /dev/null +++ b/test/test_v1beta1_user.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_user import V1beta1User + +class TestV1beta1User(unittest.TestCase): + """V1beta1User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1User: + """Test V1beta1User + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1User` + """ + model = V1beta1User() + if include_optional: + return V1beta1User( + id = '', + name = 'johndoe', + title = 'John Doe', + email = '', + metadata = frontier_api.models.metadata.metadata(), + created_at = '2023-06-07T05:39:56.961Z', + updated_at = '2023-06-07T05:39:56.961Z', + state = 'enabled', + avatar = '' + ) + else: + return V1beta1User( + ) + """ + + def testV1beta1User(self): + """Test V1beta1User""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_user_request_body.py b/test/test_v1beta1_user_request_body.py new file mode 100644 index 0000000..53a2ac4 --- /dev/null +++ b/test/test_v1beta1_user_request_body.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_user_request_body import V1beta1UserRequestBody + +class TestV1beta1UserRequestBody(unittest.TestCase): + """V1beta1UserRequestBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1UserRequestBody: + """Test V1beta1UserRequestBody + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1UserRequestBody` + """ + model = V1beta1UserRequestBody() + if include_optional: + return V1beta1UserRequestBody( + name = '', + email = '', + metadata = None, + title = '', + avatar = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA' + ) + else: + return V1beta1UserRequestBody( + email = '', + ) + """ + + def testV1beta1UserRequestBody(self): + """Test V1beta1UserRequestBody""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_verify_organization_domain_response.py b/test/test_v1beta1_verify_organization_domain_response.py new file mode 100644 index 0000000..030fd9d --- /dev/null +++ b/test/test_v1beta1_verify_organization_domain_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Frontier Administration API + + The Frontier APIs adhere to the OpenAPI specification, also known as Swagger, which provides a standardized approach for designing, documenting, and consuming RESTful APIs. With OpenAPI, you gain a clear understanding of the API endpoints, request/response structures, and authentication mechanisms supported by the Frontier APIs. By leveraging the OpenAPI specification, developers can easily explore and interact with the Frontier APIs using a variety of tools and libraries. The OpenAPI specification enables automatic code generation, interactive API documentation, and seamless integration with API testing frameworks, making it easier than ever to integrate Frontier into your existing applications and workflows. + + The version of the OpenAPI document: 0.2.0 + Contact: hello@raystack.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from frontier_api.models.v1beta1_verify_organization_domain_response import V1beta1VerifyOrganizationDomainResponse + +class TestV1beta1VerifyOrganizationDomainResponse(unittest.TestCase): + """V1beta1VerifyOrganizationDomainResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1beta1VerifyOrganizationDomainResponse: + """Test V1beta1VerifyOrganizationDomainResponse + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1beta1VerifyOrganizationDomainResponse` + """ + model = V1beta1VerifyOrganizationDomainResponse() + if include_optional: + return V1beta1VerifyOrganizationDomainResponse( + state = '' + ) + else: + return V1beta1VerifyOrganizationDomainResponse( + ) + """ + + def testV1beta1VerifyOrganizationDomainResponse(self): + """Test V1beta1VerifyOrganizationDomainResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini index 8188f68..2dede3b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,7 @@ [tox] -envlist = py37 +envlist = py3 [testenv] -passenv = PYTHON_VERSION deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt